[MacPorts] #62187: freetype @2.10.4: fatal error: 'ft2build.h' file not found

MacPorts noreply at macports.org
Sun Jan 31 00:23:32 UTC 2021


#62187: freetype @2.10.4: fatal error: 'ft2build.h' file not found
-----------------------+------------------------
  Reporter:  nsklaus   |      Owner:  ryandesign
      Type:  defect    |     Status:  closed
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.4
Resolution:  invalid   |   Keywords:
      Port:  freetype  |
-----------------------+------------------------
Changes (by ryandesign):

 * status:  assigned => closed
 * resolution:   => invalid


Comment:

 wine is available in MacPorts and builds fine. It is out of date but I
 will update it eventually. dwm is not but you could submit a portfile for
 it if you like.

 Anytime you build software outside of MacPorts using MacPorts libraries
 and headers, you'll need to tell it how to find the MacPorts files. You'll
 have to consult the documentation of each project to find out how to do
 that. (And of course the whole point of MacPorts is to offer easy-to-
 install packages where someone has already figured those details out for
 you.) Some build systems use pkg-config to find dependencies, in which
 case they should be able to find MacPorts files automatically; this may be
 the case for wine. If they don't, often adding `-I/opt/local/include` to
 CPPFLAGS and `-L/opt/local/lib` to LDFLAGS is enough (i.e.
 `CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure`).
 In the case of dwm, which I'm guessing doesn't have a configure script, it
 sounds like they've made the provision for you to specify `FREETYPEINC` on
 the command line to locate the headers (i.e. `make
 FREETYPEINC=/opt/local/include/freetype2`). You may need to do something
 similar to locate the library. Or if they do have a configure script, look
 at the output of `./configure --help` to discover if they offer any
 options for specifying the location of dependencies' files.

-- 
Ticket URL: <https://trac.macports.org/ticket/62187#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list