<?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 a static library on nRF Connect SDK/Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92801/how-to-create-a-static-library-on-nrf-connect-sdk-zephyr</link><description>Hi, 
 I am using nrF52840 with nRF Connect, Visual Code Studio (Zephyr) 
 Is there any guide or a tutorial with an example that shows how to create a static library on nRF Connect SDK/Zephyr? 
 There are some topics opened related to this, but none of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Oct 2022 10:02:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92801/how-to-create-a-static-library-on-nrf-connect-sdk-zephyr" /><item><title>RE: How to create a static library on nRF Connect SDK/Zephyr</title><link>https://devzone.nordicsemi.com/thread/391833?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 10:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48a74fa8-4975-485b-bc05-5f310969c26c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you search for &amp;quot;makefile static library&amp;quot;, you&amp;#39;ll get dedicated threads on this specific matter, like this one:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/31421616/c-creating-static-library-and-linking-using-a-makefile"&gt;https://stackoverflow.com/questions/31421616/c-creating-static-library-and-linking-using-a-makefile&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a static library on nRF Connect SDK/Zephyr</title><link>https://devzone.nordicsemi.com/thread/391825?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 09:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53a07be3-d591-49fd-a0a2-976ea6762797</guid><dc:creator>akif</dc:creator><description>&lt;p&gt;Thank you&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&amp;nbsp;I will continue with bash until your last solution is released.&lt;/p&gt;
&lt;p&gt;I have a related question. Current example only one .c and .h file. I want to create&lt;span style="text-decoration:underline;"&gt; only one .a file&lt;/span&gt;. with &lt;span style="text-decoration:underline;"&gt;multiple .c and .h files.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can you help on this?&lt;/p&gt;
&lt;p&gt;I made these changes on file but it didn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PREFIX ?= .
OBJ_DIR ?= $(PREFIX)/obj
LIB_DIR ?= $(PREFIX)/lib

all:
	mkdir -p $(OBJ_DIR) $(LIB_DIR)
	$(CC) -c $(CFLAGS) -MD -Iinclude src/mylib.c src/mylib_led.c -o $(OBJ_DIR)/mylib.o $(OBJ_DIR)/mylib_led.o
	$(AR) -rcs $(LIB_DIR)/libmylib.a $(OBJ_DIR)/mylib.o $(OBJ_DIR)/mylib_led.o

clean:
	rm -rf $(OBJ_DIR) $(LIB_DIR)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a static library on nRF Connect SDK/Zephyr</title><link>https://devzone.nordicsemi.com/thread/390790?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 10:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f287375-fc42-43ce-9068-4cf7f7101f83</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The problem is that the makefile includes unix specific commands. Here&amp;#39;s a pull-request to zephyr which should fix this in the future:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/51292"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/51292&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can apply this manually if you&amp;#39;d like, or build the project via bash on windows.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a static library on nRF Connect SDK/Zephyr</title><link>https://devzone.nordicsemi.com/thread/390784?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 10:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce9b09fb-434f-4302-96c3-91f8757a4b9e</guid><dc:creator>akif</dc:creator><description>&lt;p&gt;Thank you for help. Now it builds with bash terminal but still I get build error on VS Code.&lt;/p&gt;
&lt;p&gt;I restarted the PC and I assumed VS Code doesn&amp;#39;t see the PATH so, I changed VS Code Preferences&amp;gt; Settings&amp;gt; Features&amp;gt;Terminal&amp;gt;Default Profile Windows to PowerShell(tried Command Prompt and nRF Connect from dropdown menu as well), but still I couldn&amp;#39;t build on VS Code.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:119px;max-width:645px;" height="119" src="https://devzone.nordicsemi.com/resized-image/__size/1290x238/__key/communityserver-discussions-components-files/4/pastedimage1665743512790v1.png" width="645" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What I should do to build on VS Code?&lt;/p&gt;
&lt;p&gt;Thank you for asking, my intentions are&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;creating a static library in a project&lt;/span&gt; and later &lt;span style="text-decoration:underline;"&gt;using this static library in another project&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a static library on nRF Connect SDK/Zephyr</title><link>https://devzone.nordicsemi.com/thread/390756?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 08:01:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a40d8889-ba99-4e29-8767-221eebe1f2aa</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The sample unfortunately relies on &amp;quot;make&amp;quot; for creating the static library.&lt;/p&gt;
&lt;p&gt;Your system does not have &amp;quot;make&amp;quot; - which you can get from mingw32 for instance:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://sourceforge.net/projects/mingw/files/MinGW/Extension/make/mingw32-make-3.80-3/"&gt;https://sourceforge.net/projects/mingw/files/MinGW/Extension/make/mingw32-make-3.80-3/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(note: put it in path and rename to &amp;quot;make&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is your intention to&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;&lt;em&gt;create a library&lt;/em&gt;&lt;/span&gt; or to include a static library? If it&amp;#39;s the latter, please see my post on how to easier include a static library to your project.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a static library on nRF Connect SDK/Zephyr</title><link>https://devzone.nordicsemi.com/thread/390708?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 20:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15da4118-6bc7-450e-9384-2b4879385a3e</guid><dc:creator>akif</dc:creator><description>&lt;p&gt;Actually I couldn&amp;#39;t build external_lib and I couldnt find any reliable information related creating a static library. That is why I have opened this ticket.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thank you for extra information, I think your information will help me if I can build&amp;nbsp;&lt;span&gt;external_lib. Please see the error I get (example in my workspace):&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt; *  Executing task: nRF Connect: Generate config nrf52dk_nrf52832 for c:\nordic\myapps\external_lib 

Building external_lib
west build --build-dir c:\nordic\myapps\external_lib\build c:\nordic\myapps\external_lib --pristine --board nrf52dk_nrf52832 -- -DNCS_TOOLCHAIN_VERSION:STRING=&amp;quot;NONE&amp;quot; -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT:STRING=&amp;quot;c:/nordic/myapps/ledagif/led_ws2812&amp;quot;

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/nordic/myapps/external_lib
-- Found Python3: C:/ncs/toolchains/v2.1.0/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: C:/ncs/v2.0.2/zephyr/.cache
-- Zephyr version: 3.0.99 (C:/ncs/v2.0.2/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52dk_nrf52832
-- Found host-tools: zephyr 0.14.1 (C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk)
-- Found dtc: C:/ncs/toolchains/v2.1.0/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: zephyr 0.14.1 (C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk)
-- Found BOARD.dts: C:/ncs/v2.0.2/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts
-- Generated zephyr.dts: C:/nordic/myapps/external_lib/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/nordic/myapps/external_lib/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/nordic/myapps/external_lib/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/nordic/myapps/external_lib/build/zephyr/dts.cmake
Parsing C:/ncs/v2.0.2/zephyr/Kconfig
Loaded configuration &amp;#39;C:/ncs/v2.0.2/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832_defconfig&amp;#39;
Merged configuration &amp;#39;C:/nordic/myapps/external_lib/prj.conf&amp;#39;
Merged configuration &amp;#39;C:/nordic/myapps/external_lib/build/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;C:/nordic/myapps/external_lib/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;C:/nordic/myapps/external_lib/build/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: C:/nordic/myapps/external_lib/build
-- west build: building application
[1/173] Generating include/generated/version.h
-- Zephyr version: 3.0.99 (C:/ncs/v2.0.2/zephyr), build: v3.0.99-ncs1-1
[2/173] Creating directories for &amp;#39;mylib_project&amp;#39;
[3/173] No download step for &amp;#39;mylib_project&amp;#39;
[4/173] No update step for &amp;#39;mylib_project&amp;#39;
[5/173] No patch step for &amp;#39;mylib_project&amp;#39;
[6/173] No configure step for &amp;#39;mylib_project&amp;#39;
[7/173] Performing build step for &amp;#39;mylib_project&amp;#39;
FAILED: mylib/src/mylib_project-stamp/mylib_project-build mylib/lib/libmylib.a 
cmd.exe /C &amp;quot;cd /D C:\nordic\myapps\external_lib\mylib &amp;amp;&amp;amp; make PREFIX=C:/nordic/myapps/external_lib/build/mylib CC=C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe AR=C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-ar.exe &amp;quot;CFLAGS=-IC:/ncs/v2.0.2/zephyr/include/zephyr -IC:/ncs/v2.0.2/zephyr/include -IC:/nordic/myapps/external_lib/build/zephyr/include/generated -IC:/ncs/v2.0.2/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.0.2/zephyr/lib/libc/minimal/include -IC:/ncs/v2.0.2/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.0.2/nrf/include -IC:/ncs/v2.0.2/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.0.2/modules/hal/nordic/nrfx -IC:/ncs/v2.0.2/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.0.2/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.0.2/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.0.2/modules/debug/segger/SEGGER -IC:/ncs/v2.0.2/modules/debug/segger/Config -IC:/ncs/v2.0.2/zephyr/modules/segger/. -Ic:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -Ic:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -DKERNEL -D__ZEPHYR__=1 -D_FORTIFY_SOURCE=2 -DUSE_PARTITION_MANAGER=0 -D__PROGRAM_START -DNRF52832_XXAA -DNRF52832_XXAA -Og -imacros C:/nordic/myapps/external_lib/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/ncs/v2.0.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/nordic/myapps/external_lib=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.0.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.0.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -isystemC:/ncs/v2.0.2/zephyr/lib/libc/minimal/include -isystemc:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystemc:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed&amp;quot; &amp;amp;&amp;amp; C:\ncs\toolchains\v2.1.0\opt\bin\cmake.exe -E touch C:/nordic/myapps/external_lib/build/mylib/src/mylib_project-stamp/mylib_project-build&amp;quot;
&amp;#39;make&amp;#39; is not recognized as an internal or external command,
operable program or batch file.
[8/173] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: &amp;#39;c:\ncs\toolchains\v2.1.0\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\nordic\myapps\external_lib\build&amp;#39;

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. &lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also tried with bash command with the example in SDK examples like mentioned in&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70189/external_lib-not-compiling-out-of-the-box"&gt;external_lib not compiling out of the box&lt;/a&gt;&amp;nbsp;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get the same error. I have&amp;nbsp;C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\ in my PATH.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What it could be the reason of the error?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a static library on nRF Connect SDK/Zephyr</title><link>https://devzone.nordicsemi.com/thread/390401?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 10:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab2fc611-5e8b-4cdd-94d6-8b01ef96485c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;To include a lib and to create a lib are two different operations. The below sample shows both.&lt;/p&gt;
&lt;p&gt;If you want to include a precompiled static library, you can shorten the whole thing, similar to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(external_lib)

target_sources(app PRIVATE src/main.c)

include(ExternalProject)

# Add an external project to be able download and build the third
# party library. In this case downloading is not necessary as it has
# been committed to the repository.

set(MYLIB_LIB_DIR     ${CMAKE_CURRENT_SOURCE_DIR}/lib)
set(MYLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/mylib/include)

# Create a wrapper CMake library that our app can link with
add_library(mylib_lib STATIC IMPORTED GLOBAL)
add_dependencies(
  mylib_lib
  mylib_project
  )
set_target_properties(mylib_lib PROPERTIES IMPORTED_LOCATION             ${MYLIB_LIB_DIR}/libmylib.a)
set_target_properties(mylib_lib PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${MYLIB_INCLUDE_DIR})

target_link_libraries(app PUBLIC mylib_lib)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a static library on nRF Connect SDK/Zephyr</title><link>https://devzone.nordicsemi.com/thread/390400?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 10:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:612efb52-0e8c-4770-a5e4-ac8ccf59a765</guid><dc:creator>Torje</dc:creator><description>&lt;p&gt;Hello H&amp;aring;kon and Akif,&lt;/p&gt;
&lt;p&gt;I feel like that sample does a lot more than what&amp;#39;s necessary to simply include a lib. Wouldn&amp;#39;t these lines added to the cmake be enough?&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;zephyr_include_directories(src/lib)
target_sources(app PRIVATE src/lib/libname.c)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I remember having a hard time implementing one my self, and that sample confused me more than it helped.&lt;/p&gt;
&lt;p&gt;Please correct me if I&amp;#39;m wrong, but it works for me!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a static library on nRF Connect SDK/Zephyr</title><link>https://devzone.nordicsemi.com/thread/390399?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 10:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c2518af-2304-49bf-abf0-a2400c52a790</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you looked at this sample in zephyr?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/application_development/external_lib/CMakeLists.txt"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/application_development/external_lib/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This sample both builds and links with a static library.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>