|
From: | daniel sutton |
Subject: | Re: Need help building Emacs |
Date: | Sat, 21 Nov 2015 21:17:56 -0600 |
On Sun, Nov 22, 2015 at 7:32 AM, Paul Eggert <address@hidden> wrote:
Hi Paul,
Thanks for the hint!
> Xue Fuqiao wrote:
>>
>> IIRC OS X already provides libxml2, so I don't need to install one. But
>> it seems that `make' cannot find `libxml/tree.h' in my header search
>> path. Can anyone point me in the right direction?
>
> I suggest looking in the file configure.ac for the strings "xcsdkdir" and
> "libxml2", and checking src/Makefile for its LIBXML2_CFLAGS setting.
In configure.ac:
xcsdkdir=`$XCRUN --show-sdk-path 2>/dev/null`
[...]
LIBXML2_CFLAGS="-I'$xcsdkdir/usr/include/libxml2'"
My $XCRUN is empty (I don't know why), therefore, in src/Makefile:
LIBXML2_CFLAGS = -I/usr/include/libxml2
But I don't even have the /usr/include/ directory. With GNU findutils
(find / -regex '.*xml.*') I found that libxml2 is in
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include,
instead of /usr/include/.
What should I do now? `sudo ln -s' looks like an ugly hack. Any suggestions?
[Prev in Thread] | Current Thread | [Next in Thread] |