Re: [yocto] static libraries missing from sdk

2018-02-09 Thread Mircea Gliga
Hi > I am not sure it makes sense to build and add both the static and dynamic libs to an SDK. The idea is that I want everything that is needed to build the app in the SDK and I don't want to individually specify what goes in because it's error prone and you can forget something. Some pkgs

Re: [yocto] static libraries missing from sdk

2018-02-07 Thread Robert Berger
Hi, I played around a bit with my autotooled lib, which produces only a static lib. 1) My preferred approach is this: I add to local.conf: TOOLCHAIN_TARGET_TASK_append = " libhw-a-staticdev libhw-a-dev" The recipe looks like this: https://pastebin.com/YLUvQSSx 2) But your approach works

Re: [yocto] static libraries missing from sdk

2018-02-07 Thread Robert Berger
Hi, On 2018-02-07 16:01, Mircea Gliga wrote: With this line you try to add -dev (.so), -dbg and staticdev (.a) for **all** packages:     SDKIMAGE_FEATURES += "dev-pkgs dbg-pkgs staticdev-pkgs" I am not sure it makes sense to build and add both the static and dynamic libs to an SDK. Do

Re: [yocto] static libraries missing from sdk

2018-02-07 Thread Robert Berger
Hi, OK I think I understood. You want a static library and apparently .h and friends as well as the .a file should end up in the SDK and nothing on the rootfs. If you enable staticdev-pkgs in the SDKIMAGE_FEATURES *all* the staticdev pkgs should end up in the SDK (I assume), but you need to

Re: [yocto] static libraries missing from sdk

2018-02-07 Thread Mircea Gliga
Hi This is the directory tree from the recipes packages-split/ folder, notice the empty main pkg, empty dbg etc $ /usr/bin/tree . ├── fmt ├── fmt-dbg ├── fmt-dev │   └── usr │   ├── include │   │   └── fmt │   │   ├── format.cc │   │   ├── format.h │   │   ├──

Re: [yocto] static libraries missing from sdk

2018-02-07 Thread Robert Berger
Hi, On 2018-02-07 09:46, Mircea Gliga wrote: Thanks for your answer. I already have the ALLOW_EMPTY_${PN} = "1" in the recipe What I still don't get is why the -dev gets installed but the -staticdev doesn't, even though the dependency is satisfied (the empty pkg exists). Just to

Re: [yocto] static libraries missing from sdk

2018-02-06 Thread Mircea Gliga
Thanks for your answer. I already have the ALLOW_EMPTY_${PN} = "1" in the recipe What I still don't get is why the -dev gets installed but the -staticdev doesn't, even though the dependency is satisfied (the empty pkg exists). On 06/02/18 22:25, Robert Berger wrote: Hi, On 2018-02-06

Re: [yocto] static libraries missing from sdk

2018-02-06 Thread Robert Berger
Hi, On 2018-02-06 14:53, Mircea Gliga wrote: Hello, I have a problem providing a static library in the SDK: I have a recipe that builds a library. It outputs an -dev pkg with the /usr/{include,lib} libs in it and a -staticdev pkg with the static library. The main pkg is empty, in my recipe I