[MacPorts] #42928: xft not found when building emacs from source
MacPorts
noreply at macports.org
Wed Mar 26 12:46:00 PDT 2014
#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 ryandesign@…):
Replying to [comment:14 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?
Yes, that would be a mistake. Don't mix MacPorts libraries in /opt/local
with Xquartz libraries in /opt/X11.
> 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
> }}}
`-I` flags belong in CPPFLAGS only, and should only reference include
directories. [[br]]
`-L` flags belong in LDFLAGS only, and should only reference lib
directories.
Try these settings:
{{{
export LDFLAGS="-L/opt/local/lib"
export CPPFLAGS="-I/opt/local/include"
}}}
--
Ticket URL: <https://trac.macports.org/ticket/42928#comment:15>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list