Skip to contentSkip to conversation

Copying Static library to libdir of YOCTO

DISCUSSION Surya 2 participants 2 messages Mar 28, 2017

lore
Share & tools
lore

Surya

author
#0 lore raw

Hello ,

I am facing some issues , when trying to copy static libraries like libaccess.a & liblang.a to ${libdir} of rootfs.

I can see those libraries in the "usr/lib" directory of that particular package which is generated in "tmp/work" folder . But somehow these libraries are not copied to rootfs "/usr/lib" directory.

I am using below instructions:

        install -d ${D}${libdir}/
        install -m 0755 ${S}/accesslib_new/libaccess.a ${D}${libdir}

        install -d ${D}${libdir}/
        install -m 0755 ${S}/WebServices_LanguageLibrary/liblang.a 

${D}${libdir}

Any suggestion...

Thanks & regards
Surya

#1 lore raw
Quoted 4 lines · Surya

I can see those libraries in the "usr/lib" directory of that particular package which is generated in "tmp/work" folder . But somehow these libraries are not copied to rootfs "/usr/lib" directory.

Static libraries are part of the ${PN}-staticdev package, so won't be installed if you just install the ${PN}-dev package.

Ross