[Buildroot] location of libxml2 header files ?
Peter Korsgaard
jacmet at uclibc.org
Wed Oct 2 20:27:20 UTC 2013
>>>>> "Sagaert" == Sagaert Johan <sagaert.johan at skynet.be> writes:
Sagaert> Hi
Sagaert> I was wondering why the libxml2 header files are under ...staging/usr/include/libxml2/libxml
Sagaert> instead of just ...staging/usr/include/libxml/
Because that's where upstream (make install) puts it. If I look on
E.G. Debian, that's also where they put them:
dpkg -L libxml2-dev | grep '\.h' | head
/usr/include/libxml2/libxml/relaxng.h
/usr/include/libxml2/libxml/xmlautomata.h
/usr/include/libxml2/libxml/xmlIO.h
/usr/include/libxml2/libxml/parserInternals.h
/usr/include/libxml2/libxml/nanohttp.h
/usr/include/libxml2/libxml/c14n.h
/usr/include/libxml2/libxml/tree.h
/usr/include/libxml2/libxml/valid.h
/usr/include/libxml2/libxml/xmlmemory.h
/usr/include/libxml2/libxml/xmlsave.h
Sagaert> I have some problems in an autotools project where the
Sagaert> compiler can't locate the libxml header files.
autotools normally should use pkg-config to get the proper
compiler/linker flags:
./output/hosr/usr/bin/pkg-config --cflags libxml-2.0
-I/home/peko/source/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/libxml2
Sagaert> (My eclipse project was building fine, but the conversion to an autotools project gives me this problem.)
Sagaert> Note that in my non-autotools eclipse project I had to add that libxml2 directory to the include list (-I)
Sagaert> Coincedance or not, i found this in the gettext-tools/config.log:
Sagaert> (this is the same error that I encounter in my autotools project.)
Sagaert> snip from output/build/gettext-0.18.3.1/gettext-tools/config.log ...
Sagaert> | # include <unistd.h>
Sagaert> | #endif
Sagaert> |
Sagaert> | #include <libcroco-0.6/libcroco/libcroco-config.h>
Sagaert> configure:17429: result: no
Sagaert> configure:17429: checking for libxml2/libxml/xmlexports.h
Sagaert> configure:17429: /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -std=gnu99 -c -D_LARGEFILE_SOURCE
Sagaert> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -pipe -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
Sagaert> conftest.c >&5
Sagaert> conftest.c:81:39: fatal error: libxml2/libxml/xmlexports.h: No such file or directory
I have xmlexports.h here. Did you perhaps forget to add libxml2 to the
dependencies so it's built before this package?
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list