all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Need help building Emacs
@ 2015-11-21 22:58 Xue Fuqiao
  2015-11-21 23:32 ` Paul Eggert
  0 siblings, 1 reply; 5+ messages in thread
From: Xue Fuqiao @ 2015-11-21 22:58 UTC (permalink / raw)
  To: Emacs-devel

Hi,

I'm not sure if this kind of post is considered on-topic on
emacs-devel.  If not, I can move it elsewhere (help-gnu-emacs,
perhaps?).

I just tried to build the latest emacs-25 branch on OS X 10.11.1, but failed:

   $ make install
[...]
     CC       xml.o
   xml.c:23:10: fatal error: 'libxml/tree.h' file not found
   #include <libxml/tree.h>
            ^
   1 error generated.
   make[1]: *** [xml.o] Error 1
   make: *** [src] Error 2

Among the output of my `./configure':

   [...]
   checking for LIBXML2... yes
   checking for htmlReadMemory in -lxml2... yes
   [...]
   Does Emacs use -lxml2?                                  yes
   [...]

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?  How to troubleshoot
this kind of problem?

TIA



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need help building Emacs
  2015-11-21 22:58 Need help building Emacs Xue Fuqiao
@ 2015-11-21 23:32 ` Paul Eggert
  2015-11-22  3:07   ` Xue Fuqiao
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggert @ 2015-11-21 23:32 UTC (permalink / raw)
  To: Xue Fuqiao, Emacs-devel

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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need help building Emacs
  2015-11-21 23:32 ` Paul Eggert
@ 2015-11-22  3:07   ` Xue Fuqiao
  2015-11-22  3:17     ` daniel sutton
  0 siblings, 1 reply; 5+ messages in thread
From: Xue Fuqiao @ 2015-11-22  3:07 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Emacs-devel

On Sun, Nov 22, 2015 at 7:32 AM, Paul Eggert <eggert@cs.ucla.edu> 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?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need help building Emacs
  2015-11-22  3:07   ` Xue Fuqiao
@ 2015-11-22  3:17     ` daniel sutton
  2015-11-22  7:09       ` Xue Fuqiao
  0 siblings, 1 reply; 5+ messages in thread
From: daniel sutton @ 2015-11-22  3:17 UTC (permalink / raw)
  To: Xue Fuqiao; +Cc: Paul Eggert, Emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]

you are missing the command line tools for OSX. Try running `xcode-select
--install` from the command line

On Sat, Nov 21, 2015 at 9:07 PM, Xue Fuqiao <xfq.free@gmail.com> wrote:

> On Sun, Nov 22, 2015 at 7:32 AM, Paul Eggert <eggert@cs.ucla.edu> 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?
>
>

[-- Attachment #2: Type: text/html, Size: 2205 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need help building Emacs
  2015-11-22  3:17     ` daniel sutton
@ 2015-11-22  7:09       ` Xue Fuqiao
  0 siblings, 0 replies; 5+ messages in thread
From: Xue Fuqiao @ 2015-11-22  7:09 UTC (permalink / raw)
  To: daniel sutton; +Cc: Paul Eggert, Emacs-devel

On Sun, Nov 22, 2015 at 11:17 AM, daniel sutton
<danielsutton01@gmail.com> wrote:
> you are missing the command line tools for OSX. Try running `xcode-select
> --install` from the command line

Thanks.  I confirm that All Goes Well now.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-22  7:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-21 22:58 Need help building Emacs Xue Fuqiao
2015-11-21 23:32 ` Paul Eggert
2015-11-22  3:07   ` Xue Fuqiao
2015-11-22  3:17     ` daniel sutton
2015-11-22  7:09       ` Xue Fuqiao

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.