Re: Compiling and packaging libraries


Khem Raj
 

On 9/6/20 1:53 AM, majid.nasiry65@... wrote:
Hi
I wrote a recipe for adding a library to my image it compile correctly but I have issues in installing it and I got "-dev package contains non-symlink .so" error.
I know default method for install libraries is versioned mode and I need to make symbolic links, but I don't know how?
in library's build system you want to use symbol versioning during linker stage. Then you can create using ln cmd to creating symlink to lib.so and lib.so.<major_version> see [1]

Another question is what is difference between -dev and -dbg output?
dev packages contain, development headers and libraries which are useful for building packages on target

dbg packages contain debug info, which is useful if you are debugging on target.


[1] http://www.microhowto.info/howto/build_a_shared_library_using_gcc.html

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.