<?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>CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):   No SOURCES given to target: app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101444/cmake-error-at-c-ncs-v2-4-0-zephyr-cmake-modules-extensions-cmake-424-add_library-no-sources-given-to-target-app</link><description>Hi Team, NCS v2.4.0 I want to try TARGET example samples/bluetooth/mesh/mesh_dfu/target , but the example compiles with errors. I attach the log in a file: What should I do to make the project compile successfully? Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jul 2023 22:07:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101444/cmake-error-at-c-ncs-v2-4-0-zephyr-cmake-modules-extensions-cmake-424-add_library-no-sources-given-to-target-app" /><item><title>RE: CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):   No SOURCES given to target: app</title><link>https://devzone.nordicsemi.com/thread/435813?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 22:07:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:829d9146-1005-490c-bd69-e74d040959f8</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Serhii,&lt;/p&gt;
&lt;p&gt;It looks like you are able to compile the sample now, that&amp;#39;s great.&lt;/p&gt;
&lt;p&gt;At first glance, I can&amp;#39;t tell what would cause this error. But, can I ask you to open a new ticket for this new issue? We try to keep unrelated questions in separate threads so that DevZone is easier to search for other users.&lt;/p&gt;
&lt;p&gt;Please create a ticket and if you have made any changes to your prj.conf, please add that info to the case.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):   No SOURCES given to target: app</title><link>https://devzone.nordicsemi.com/thread/435364?ContentTypeID=1</link><pubDate>Sun, 09 Jul 2023 21:08:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30b3f536-f1ab-41a1-add5-7e4b612b06d3</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;RTT from Target example&lt;br /&gt;&lt;br /&gt;00&amp;gt; *** Booting Zephyr OS build v3.3.99-ncs1 ***&lt;br /&gt;00&amp;gt; Initializing...&lt;br /&gt;00&amp;gt; Current image version: 1.0.0+0&lt;br /&gt;00&amp;gt; [00:00:00.001,098] &amp;lt;err&amp;gt; bt_settings: settings_subsys_init failed (err -45)&lt;br /&gt;00&amp;gt; Bluetooth init failed (err -45)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):   No SOURCES given to target: app</title><link>https://devzone.nordicsemi.com/thread/435324?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 16:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e653bceb-d8af-47e3-be20-f2fba0bf5749</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi again!&lt;/p&gt;
&lt;p&gt;You were right to suggest those pull requests, they fix some warnings that are unrelated to this dfu mesh sample.&lt;/p&gt;
&lt;p&gt;The remaining issue can be fixed by copying the &amp;quot;common&amp;quot; folder here:&lt;/p&gt;
&lt;p&gt;C:\ncs\v2.4.0\nrf\samples\bluetooth\mesh\dfu\common\&lt;/p&gt;
&lt;p&gt;And placing it next to the &amp;quot;target&amp;quot; folder that you are currently trying to build.&lt;/p&gt;
&lt;p&gt;I assume you have used the VS Code extension to create a new application based on the dfu mesh target sample. Unfortunately the extension doesn&amp;#39;t pick up that this particular sample has a &amp;quot;common&amp;quot; folder with necessary source files, which should ideally be copied over as well.&lt;/p&gt;
&lt;p&gt;So this sample will either build if you build it in it&amp;#39;s original location, or if you copy the common folder as I suggested above.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll inform our developers that we should do this automatically in the future.&lt;/p&gt;
&lt;p&gt;Thanks for your patience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):   No SOURCES given to target: app</title><link>https://devzone.nordicsemi.com/thread/434936?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 11:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddf39957-f14d-47bf-89d7-864ae02c8770</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;Thank you.&amp;nbsp;&lt;span&gt;I&amp;#39;m waiting for your help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):   No SOURCES given to target: app</title><link>https://devzone.nordicsemi.com/thread/434805?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 22:35:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55baf2c6-5526-42bd-b47e-ee7103602038</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Serhii, sorry to let you wait. We are going into our summer vacation period where we have less staffing. I&amp;#39;ll try to answer you soon, hopefully tomorrow!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):   No SOURCES given to target: app</title><link>https://devzone.nordicsemi.com/thread/434548?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 19:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0f92022-1025-4a25-b1d8-a2f616acabf2</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;I&amp;#39;m waiting for your help.&lt;br /&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):   No SOURCES given to target: app</title><link>https://devzone.nordicsemi.com/thread/434284?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 16:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c38ce9a2-8f05-47af-9c24-8433fa592939</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;Add this:&lt;a id="" href="https://github.com/zephyrproject-rtos/zephyr/pull/57886"&gt;&lt;br /&gt;https://github.com/zephyrproject-rtos/zephyr/pull/57886&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/zephyrproject-rtos/zephyr/pull/56309/commits/2094e19a3c58297125c1289ea0ddec89db317f96"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/56309/commits/2094e19a3c58297125c1289ea0ddec89db317f96&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-zephyr/commit/b57a7488aa3a49fe71b9a042a3d54f2d463b352b"&gt;https://github.com/nrfconnect/sdk-zephyr/commit/b57a7488aa3a49fe71b9a042a3d54f2d463b352b&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;remained:&lt;/p&gt;
&lt;p&gt;CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):&lt;br /&gt; Cannot find source file:&lt;/p&gt;
&lt;p&gt;C:/my/common/src/dfu_target.c&lt;/p&gt;
&lt;p&gt;Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++&lt;br /&gt; .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; C:/ncs/v2.4.0/zephyr/cmake/modules/kernel.cmake:210 (zephyr_library_named)&lt;br /&gt; C:/ncs/v2.4.0/zephyr/cmake/modules/zephyr_default.cmake:124 (include)&lt;br /&gt; C:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; C:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:4 (find_package)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):&lt;br /&gt; No SOURCES given to target: app&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; C:/ncs/v2.4.0/zephyr/cmake/modules/kernel.cmake:210 (zephyr_library_named)&lt;br /&gt; C:/ncs/v2.4.0/zephyr/cmake/modules/zephyr_default.cmake:124 (include)&lt;br /&gt; C:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; C:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:4 (find_package)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>