[yocto] QA Issue: -dev package contains non-symlink .so

使用yocto编译库文件到设备中时报错, QA Issue: -dev package contains non-symlink .so

经过搜索发现下面的解释最符合该问题

Default packaging rules assumes that libraries are versioned, and your libraries are not.

Either install versioned libraries, or if you really don't want to https://wiki.yoctoproject.org/wiki/TipsAndTricks/Packaging_Prebuilt_Libraries#Non-versioned_Libraries shows you how to manipulate the rules.

进入到上面的链接,参考 3.13.3 Non-Versioned Libraries

只需要在bb文件中增加一行

FILES_${PN}-dev = ""

就可以解决该问题

你可能感兴趣的:(linux,基础,issue,yocto)