[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help building Emacs
From: |
Xue Fuqiao |
Subject: |
Re: Need help building Emacs |
Date: |
Sun, 22 Nov 2015 11:07:58 +0800 |
On Sun, Nov 22, 2015 at 7:32 AM, Paul Eggert <address@hidden> wrote:
Hi Paul,
> 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.
Thanks for the hint!
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?