<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to create static library and how to include that library in our Project in nrf-Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102977/how-to-create-static-library-and-how-to-include-that-library-in-our-project-in-nrf-connect-sdk</link><description>Hi, 
 can somebody help me out how to create the static library? 
 I am using nrf-Connect SDK and VS Code. I did&amp;#39;nt find any help regarding this topic. 
 
 Thanks &amp;amp; Regards 
 Thanuha</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Aug 2023 11:34:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102977/how-to-create-static-library-and-how-to-include-that-library-in-our-project-in-nrf-connect-sdk" /><item><title>RE: How to create static library and how to include that library in our Project in nrf-Connect SDK</title><link>https://devzone.nordicsemi.com/thread/443709?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2023 11:34:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4159b881-4b43-41a5-b1f1-43f8ac1948ae</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Thanuha"]&lt;p&gt;Now I am able to create and use lib files separately in 2 projects.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote user="Thanuha"]&lt;p&gt;Now my next target is how can I make lib file for my Edge Impulse generated folder. its a bundle of directories and subdirectories written in C++. already I am able to compile this but my requirement is to make a static lib file from this and use and spread it to others&lt;/p&gt;
&lt;p&gt;can you please assist me here?&lt;/p&gt;[/quote]
&lt;p&gt;Maybe this edge impulse lib can be useful here. See e.g. this file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/lib/edge_impulse/CMakeLists.txt"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/lib/edge_impulse/CMakeLists.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create static library and how to include that library in our Project in nrf-Connect SDK</title><link>https://devzone.nordicsemi.com/thread/443655?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2023 07:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a555f72-c030-46bf-ad28-a75e93b2fd5c</guid><dc:creator>Thanuha</dc:creator><description>&lt;p&gt;Hi Sigurd,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I am able to create and use lib files separately in 2 projects.&lt;/p&gt;
&lt;p&gt;Now my next target is how can I make lib file for my Edge Impulse generated folder. its a bundle of directories and subdirectories written in C++. already I am able to compile this but my requirement is to make a static lib file from this and use and spread it to others&lt;/p&gt;
&lt;p&gt;can you please assist me here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create static library and how to include that library in our Project in nrf-Connect SDK</title><link>https://devzone.nordicsemi.com/thread/443564?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 13:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb294935-9f1a-4045-9112-7076735281a1</guid><dc:creator>Thanuha</dc:creator><description>&lt;p&gt;Thanks a lot Sigurd.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;now it is compiled successfully. I am little bit confused here what static lib it is taking as input and what it is generating as output static lib.&lt;/p&gt;
&lt;p&gt;this example given above provides the idea of creating and using static library in a single project. I am not much familiar about this cmake file keywords.&lt;/p&gt;
&lt;p&gt;can you please&amp;nbsp;assist me how to create the static library and how to use it in 2 separate projects. what to&amp;nbsp;follow the steps for creation and what to&amp;nbsp;follow&amp;nbsp;for using it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks &amp;amp; regards&lt;/p&gt;
&lt;p&gt;Thanuha&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create static library and how to include that library in our Project in nrf-Connect SDK</title><link>https://devzone.nordicsemi.com/thread/442241?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 09:17:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b013b360-39cb-4384-ab37-9662fa28759a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;This sample requires make. Looks like you don&amp;#39;t have make installed. See e.g.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/32127524/how-to-install-and-use-make-in-windows"&gt;https://stackoverflow.com/questions/32127524/how-to-install-and-use-make-in-windows&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create static library and how to include that library in our Project in nrf-Connect SDK</title><link>https://devzone.nordicsemi.com/thread/442196?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 05:56:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccbfecd7-8069-49e9-b8fb-96144f8ffa5b</guid><dc:creator>Thanuha</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am doing it through the same way using bash terminal but it still same error seems to me as below&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692597362864v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;and same error is seen through VS Code Building as below&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692598755098v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create static library and how to include that library in our Project in nrf-Connect SDK</title><link>https://devzone.nordicsemi.com/thread/442065?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 11:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe09516-dc2d-4fd7-b824-881d63de9653</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is a sample in Zephyr that shows you how to do this. Take a look at that.&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/application_development/external_lib"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/application_development/external_lib&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>