Reputation: 61
I am trying to copy some of the precompiled libraries to my core-image-minimal using a recipe. I am getting error below
-dev package contains non-symlink .so:scripts-dev path '/work/armv7ahf-neon-poky-linux-gnueabi/scripts/1.0-r0/packages-split/scripts-dev/usr/lib/libasm-0.148.so'
I am having some libraries like libasm-0.148.so, few .so which are not having any softlink to respective versioned libraries.
SOLIBS = ".so"
SOLIBS += ".so.*"
FILES_SOLIBSDEV = ""
INSANE_SKIP_${PN} += "dev-so"
I tried many changes in the recipe like below still getting same error or different error like added to package but not shipped. Above flags I tried in the recipe.
Upvotes: 4
Views: 10810
Reputation: 437
When dealing with pre-compiled packages take a look at: https://docs.yoctoproject.org/dev/dev-manual/prebuilt-libraries.html#working-with-pre-built-libraries
Usually the following configs fix this type of issue:
INSANE_SKIP_${PN} += " ldflags"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
SOLIBS = ".so"
FILES_SOLIBSDEV = ""
Upvotes: 3