[poky] compile application header file missing
Khem Raj
raj.khem at gmail.com
Thu Mar 17 00:52:36 PDT 2011
> DESCRIPTION = "libxmlpcp"
> SECTION = "libs"
> DEPENDS = "openslp libxml2"
> LICENSE = "LGPL"
>
> SRC_URI = "file://libxmlpcp.tar.gz"
>
> EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -fPIC -c -I${OPIEDIR}${includedir}/libxml2' 'LDFLAGS=${LDFLAGS} -shared -lxml2 -lslp'"
>
> do_install() {
> install -d ${D}${libdir}
> install -d ${D}${includedir}
> oe_runmake 'INSTALLHEADERDIR=${D}${includedir}' 'INSTALLLIBDIR=${D}${libdir}' \
> install
> }
>
> But when build is done I can not find the lib in the actual rootfs, looking at the date the rootfs is being regenerated.
>
> The lib file exists in the build tree on the following places:
> tmp/work/armv7a-poky-linux-gnueabi/libxmlpcp-0.1.0-r0/image/usr/lib
> tmp/sysroots/armv7a-poky-linux-gnueabi/usr/lib
> libxmlpcp-dbg_0.1.0-r0_armv7a.ipk and libxmlpcp-dev_0.1.0-r0_armv7a.ipk in the tmp/deploy/ipk/armv7a folder.
>
> I only get a "strip" error, can this be the reason it isn't included in the rootfs?
> ERROR: runstrip: ''arm-poky-linux-gnueabi-strip' --remove-section=.comment --remove-section=.note --strip-unneeded '/home/gerard/green-3.3/build/tmp/work/armv7a-poky-linux-gnueabi/libxmlpcp-0.1.0-r0/package/usr/lib/libxmlpcp.so'' strip command failed
It could very well be. Can you run file or readelf -e over libxmlpcp.so
and see if it is for ARM architecture ?
-Khem
More information about the poky
mailing list