#42928: xft not found when building emacs from source ------------------------------+-------------------------------- Reporter: holtzermann17@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: invalid | Keywords: Port: Xft2 | ------------------------------+-------------------------------- Comment (by holtzermann17@…): Further update: I got some help from the Emacs devs WRT setting required environment variables. But, unless I apply my patch, I still get a rather similar error to the one I mentioned before: {{{ In file included from /opt/local/include/X11/Xft/Xft.h:39: /opt/X11/include/ft2build.h:56:10: fatal error: 'freetype/config/ftheader.h' file not found }}} According to one of the Emacs devs:
It looks to me like the {{{/opt/local}}} version is mistakenly including an {{{/opt/X11}}} version; but I'm not familiar with MacPorts.
Is this really a mistake? Here's how I built it: {{{ $ export CFLAGS='-I/opt/local/include/ -I/opt/X11/include/ -I/opt/local/lib/' $ export LDFLAGS='-I/opt/local/include/ -I/opt/X11/include/ -I/opt/local/lib/' $ export CPPFLAGS='-I/opt/local/include/ -I/opt/X11/include/ -I/opt/local/lib/' $ ./configure $ make bootstrap }}} As a good sign, with this extra pre-configuration step, {{{./configure}}} now finds jpeg and gif libraries that it didn't find before. But Xft still presents a problem. He cautions me:
Perhaps those are not the right settings. Perhaps these days you also need to export PKG_CONFIG_PATH pointing to the right MacPorts location. I'd consult MacPorts documentation related to building software.
TBH, given the evidence about the other libraries, it seems to me that these ''are'' the right settings, but if you also think that the configuration isn't right, could you please point me to the relevant doc? -- Ticket URL: <https://trac.macports.org/ticket/42928#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X