[oe] User Application with Shared Library - do_rootfs fails

Thomas Besemer thomas.besemer at gmail.com
Tue Feb 5 00:34:12 UTC 2013


I am generating some source code in the OE/Yocto world.  This work requires
that a shared library exist.  I am able to to build the shared library, and
maybe install it, and then build the test code against it.  Both these
builds work.  Final assembly of Root FS fails.

Below are my two recipes.  Appears that the <libgcpy_gc6016sa.so> does not
get installed correctly (does build).  The recipe for <gcpytest> does work,
but it does find the library during build.

If I build each indepdent of the other, it's fine.  But, once I try to
build <core-image-minimal> it complains that the library is not there.


| error: Failed dependencies:

| libgcpy_gc6016.so.1 is needed by gcpytest-1-r0.armv7a_vfp_neon

---

<gcpy-dev.bb>

DESCRIPTION = "GCPY Server application"

SECTION = "gcsim"

LICENSE = "MIT"

LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

PR = "r0"

SRC_URI = "file://gcpy-dev.tar"

S = "${WORKDIR}"

do_compile() {

oe_runmake

}

do_install() {

oe_libinstall -so libgcpy_gc6016 ${STAGING_LIBDIR}

install -m 0644 ${S}/gcpy_target_lib.h ${STAGING_INCDIR}

oe_libinstall -so libgcpy_gc6016.so ${D}${libdir}

}

 EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH}
GC5330_TOOL_PREFIX=${TARGET_PREFIX} SKIP_STRIP=y"

FILES_${PN}-dev = "${D}${libdir}/libgcpy_gc6016.so"

---

<gcpytest.bb>

DESCRIPTION = "Simple GCPY Test application"

SECTION = "gcsim"

LICENSE = "MIT"

LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

PR = "r0"

SRC_URI = "file://gcpytest.c"

S = "${WORKDIR}"

do_compile() {

${CC} gcpytest.c -o gcpytest -lgcpy_gc6016 -lrt

}

do_install() {

install -d ${D}${bindir}

install -m 0755 gcpytest ${D}${bindir}

}

REQUIRES = " gcpy-dev"



More information about the Openembedded-devel mailing list