[poky] compile application header file missing
Richard Purdie
richard.purdie at linuxfoundation.org
Wed Mar 16 09:08:08 PDT 2011
On Tue, 2011-03-15 at 16:03 +0100, Gerard van den Bosch wrote:
> I am indeed using the Green release.
>
> The TARGET_CFLAGS are indeed the same as the CFLAGS. The system is
> using the default CC and not the BUILD_CC, thanks for pointing out the
> difference.
>
> I have added the --sysroot option pointing to the arm sysroot to the
> CFLAGS in my recipe, with compilation it now looks like this:
> arm-poky-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon
> -mfloat-abi=softfp -fno-tree-vectorize -fexpensive-optimizations
> -fomit-frame-pointer -frename-registers -O2 -ggdb
> -feliminate-unused-debug-types
> --sysroot=/home/gerard/green-3.3/build/tmp/sysroots/armv7a-poky-linux-gnueabi/ libxmlpcp.c -o libxmlpcp.o
>
> This removes the missing SLP.h error.
>
> Is this problem related to my recipe or did I broke my build
> environment?
To be honest, I don't know. The compiler should have been defaulting to
that already so I don't understand why it wasn't working. We now
explictly set this in master to allow for toolchain relocation and the
machine specific sysroots support. You could try backporting the piece
of code I previously referred to which should also fix the problem.
If that option were missing from the toolchain I'd have expected you to
see other errors rather than just this isolated problem...
> My recipe looks like this:
> DESCRIPTION = "libxmlpcp"
> SECTION = "examples"
> DEPENDS = "openslp libxml2"
> LICENSE = "LGPL"
>
> SRC_URI = "file://libxmlpcp.tar.gz"
>
> CFLAGS += --sysroot=/home/gerard/green-3.3/build/tmp/sysroots/armv7a-poky-linux-gnueabi/
>
> do_install() {
> install -d ${D}${libdir}
> install -d ${D}${includedir}
> oe_runmake 'INSTALLHEADERDIR=${D}${includedir}' 'INSTALLLIBDIR=${D}${libdir}' \
> install
> }
That all looks reasonable enough...
Cheers,
Richard
More information about the poky
mailing list