You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Ondrej Pilat <on...@ozobot.com> on 2019/09/18 19:07:57 UTC
cmake support or link with a static library
Dear mynewt developers,
I tried to find information how to use mynewt with cmake or link with a
static library. Unfortunately I failed. Where can I find more
information or is it possible to integrate mynewt with a cmake project?
Our cmake project creates static library and we would like to link a
mynewt project with it.
Regards
Ondrej Pilat
p.s. Link https://mynewt.apache.org/faq/answers doesn't work.
--
Re: cmake support or link with a static library
Posted by Christopher Collins <ch...@runtime.io>.
Hi Ondrej,
On Wed, Sep 18, 2019 at 09:07:57PM +0200, Ondrej Pilat wrote:
> Dear mynewt developers,
>
> I tried to find information how to use mynewt with cmake or link with a
> static library. Unfortunately I failed. Where can I find more
> information or is it possible to integrate mynewt with a cmake project?
>
> Our cmake project creates static library and we would like to link a
> mynewt project with it.
You can put your `.a` files in a Mynewt package's `src` directory. When
newt links the final binary, it includes these `.a` files. You can put
these files in an existing package, or you can create a new one just for
this purpose.
For example:
apps/blinky/src/mylib.a
> p.s. Link https://mynewt.apache.org/faq/answers doesn't work.
Thanks for the heads up! The FAQ can be found here:
https://mynewt.apache.org/latest/mynewt_faq/index.html
Do you remember where you found that bad link?
Chris