* Compiling and packaging libraries
@ 2020-09-06 8:53 majid.nasiry65
2020-09-09 19:19 ` [yocto] " Khem Raj
[not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.34d84742-1089-4763-8e30-ab523fa9ada9@emailsignatures365.codetwo.com>
0 siblings, 2 replies; 3+ messages in thread
From: majid.nasiry65 @ 2020-09-06 8:53 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 358 bytes --]
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?
Another question is what is difference between -dev and -dbg output?
[-- Attachment #2: Type: text/html, Size: 394 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] Compiling and packaging libraries
2020-09-06 8:53 Compiling and packaging libraries majid.nasiry65
@ 2020-09-09 19:19 ` Khem Raj
[not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.34d84742-1089-4763-8e30-ab523fa9ada9@emailsignatures365.codetwo.com>
1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2020-09-09 19:19 UTC (permalink / raw)
To: majid.nasiry65, yocto
On 9/6/20 1:53 AM, majid.nasiry65@gmail.com 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] Compiling and packaging libraries
[not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.0d2bd5fa-15cc-4b27-b94e-83614f9e5b38.d1275142-5af0-40b3-8a70-fad8249e939a@emailsignatures365.codetwo.com>
@ 2020-09-10 5:34 ` Mike Looijmans
0 siblings, 0 replies; 3+ messages in thread
From: Mike Looijmans @ 2020-09-10 5:34 UTC (permalink / raw)
To: yocto
The simplest solution is to use autotools or Cmake for your project. That will
automatically "do the right thing" to get the library properly installed and
registered.
Even if your project is just one C file and a header, putting that in
autotools or cmake is less work than getting all the nitty bits in a
hand-crafted Makefile right.
Met vriendelijke groet / kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands
T: +31 (0) 499 33 69 69
E: mike.looijmans@topicproducts.com
W: www.topicproducts.com
Please consider the environment before printing this e-mail
On 06-09-2020 10:53, majid.nasiry65 via lists.yoctoproject.org 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?
> Another question is what is difference between -dev and -dbg output?
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-10 5:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-06 8:53 Compiling and packaging libraries majid.nasiry65
2020-09-09 19:19 ` [yocto] " Khem Raj
[not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.34d84742-1089-4763-8e30-ab523fa9ada9@emailsignatures365.codetwo.com>
[not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.0d2bd5fa-15cc-4b27-b94e-83614f9e5b38.d1275142-5af0-40b3-8a70-fad8249e939a@emailsignatures365.codetwo.com>
2020-09-10 5:34 ` Mike Looijmans
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.