Copying Static library to libdir of YOCTO
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
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