I have created a recipe for to add the Azure libraries to a Yocto image.  I see 
the libraries are included in the the Azure rpm file and the .so’s and include 
files in the dev rpm.  I second recipe to test being able to link to the 
libraries also builds and links correctly.  However, in the do_rootfs stage I 
get the above error message.

I have also looked in the azure log.do_package file and find these lines:

In the build/tmp/work/…/azure/1.0-r0/package/usr/lib directory I see:

lrwxrwxrwx. 1 jpeters jpeters     15  Aug 16 09:24 libuamqp.so -> 
libuamqp.so.1.1
lrwxrwxrwx. 1 jpeters jpeters     15  Aug 16 09:24 libuamqp.so.1 -> 
libuamqp.so.1.1
-rwxr-xr-x. 2 jpeters jpeters 699588 Aug 16 09:24 libuamqp.so.1.1
lrwxrwxrwx. 1 jpeters jpeters     15  Aug 16 09:24 libumock.so -> 
libumock.so.1.1
lrwxrwxrwx. 1 jpeters jpeters     15  Aug 16 09:24 libumock.so.1 -> 
libumock.so.1.1
-rwxr-xr-x. 2 jpeters jpeters 390736 Aug 16 09:24 libumock.so.1.1
lrwxrwxrwx. 1 jpeters jpeters     15  Aug 16 09:24 libumqtt.so -> 
libumqtt.so.1.1
lrwxrwxrwx. 1 jpeters jpeters     15  Aug 16 09:24 libumqtt.so.1 -> 
libumqtt.so.1.1
-rwxr-xr-x. 2 jpeters jpeters  77704 Aug 16 09:24 libumqtt.so.1.1

Which would seem to be correct but in log.do_package I see some lines I do not 
find correct:

DEBUG: azure-dev contains dangling link /usr/lib/libumqtt.so.1.1
DEBUG: target found in azure
DEBUG: azure-dev contains dangling link /usr/lib/libuamqp.so.1.1
DEBUG: target found in azure
DEBUG: azure-dev contains dangling link /usr/lib/libumock.so.1.1
DEBUG: target found in azure

DEBUG: LIBNAMES: pkg azure-staticdev libs 0 bins 0 sonames []
DEBUG: LIBNAMES: pkg azure-locale libs 0 bins 0 sonames []
DEBUG: LIBNAMES: pkg azure-doc libs 0 bins 0 sonames []
DEBUG: LIBNAMES: pkg azure-dev libs 1 bins 0 sonames []
DEBUG: LIBNAMES: pkg azure-dbg libs 0 bins 0 sonames []
DEBUG: LIBNAMES: pkg azure libs 1 bins 0 sonames []

And finally here is my azure.bb file:

SUMMARY = "Miscrosoft Azure"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4283671594edec4c13aeb073c219237a"

SRCREV_base = "bef3995f64da33f3aeb5b98d359cf8feebeee903"

SRC_URI = " \
    git://github.com/Azure/azure-iot-sdks.git;destsuffix=${S};name=base \
    file://Makefile \
    file://Makefile.umqtt \
    file://Makefile.uamqp \
    file://Makefile.umock \
"

inherit autotools pkgconfig

B = "${S}"

do_compile_prepend () {
    cd ${B}; git submodule update --init --recursive
    cp ${WORKDIR}/Makefile ${S}/Makefile
    cp ${WORKDIR}/Makefile.umqtt ${S}/c/azure-umqtt-c/src/Makefile
    cp ${WORKDIR}/Makefile.uamqp ${S}/c/azure-uamqp-c/src/Makefile
    cp ${WORKDIR}/Makefile.umock 
${S}/c/azure-uamqp-c/azure-c-shared-utility/src/Makefile
}

INHIBIT_PACKAGE_STRIP = “1"

#FILES_${PN} = "${libdir}/lib*${SOLIBS}"
#FILES_${PN}-dev = "${libdir}/lib*${SOLIBSDEV} ${includedir}/azure/*/*”

One additional note, I added the INHIBIT_PACKAGE_STRIP because I found the 
libraries had been stripped.

What doi I need to do to correct this situation?

Johnnie


-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to