<?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>thingy52-provisioning-demo not compiling with cmake</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44197/thingy52-provisioning-demo-not-compiling-with-cmake</link><description>Hi, 
 I am currently having issues compiling the thingy52-mesh-provisioning demo from github with cmake. The Readme talks about using SES to compile it, which works fine, but i am trying to make a script to compile it all at once with other demos. The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Mar 2019 17:28:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44197/thingy52-provisioning-demo-not-compiling-with-cmake" /><item><title>RE: thingy52-provisioning-demo not compiling with cmake</title><link>https://devzone.nordicsemi.com/thread/173769?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 17:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53aa16c1-e156-4776-a077-cfd3789573c5</guid><dc:creator>tmwinjy</dc:creator><description>&lt;p&gt;That makes a lot of sense. I was wondering why I needed so many modifications to the CMakeLists.txt. Thanks for the reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52-provisioning-demo not compiling with cmake</title><link>https://devzone.nordicsemi.com/thread/173680?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 11:04:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ecf85bb-a162-41d3-b7ed-120aef433148</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The CMakeLists.txt was there by mistake. It&amp;#39;s from the light switch example that we cloned from. We will remove the file.&lt;/p&gt;
&lt;p&gt;But I don&amp;#39;t see any reason it wouldn&amp;#39;t work with Cmake as long as you follow what we have in the SES project closely.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52-provisioning-demo not compiling with cmake</title><link>https://devzone.nordicsemi.com/thread/173574?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 21:55:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24d6ae0e-a410-4e05-b335-cad1819fa4c6</guid><dc:creator>tmwinjy</dc:creator><description>&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Without making changes to any of the source .c or .h files, I modified the CMakeLists.txt file for the thingy52-provisioning-demo to include the correct generic_on_off model (CMakeLists.txt currently tries to use Simple_on_off_model), as well as the missing source codes and include files. But when I flash just the application to the thingy52 DK, it does not boot. The same occurs when I flash the Softdevice and Application. The same result with the Softdevice, Application and Bootloader. (Softdevice and bootloader nrf52 v6.0.0 from the bin folder).&lt;/p&gt;
&lt;p&gt;Did I skip any steps? What could be the reason my DK does not boot as it does when I flash it through SES?&lt;/p&gt;
&lt;p&gt;PS* I have tried both the armcc and the gccarmemb Bootloaders But I do not think they are necessary as the SES project does not flash a bootloader to the DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52-provisioning-demo not compiling with cmake</title><link>https://devzone.nordicsemi.com/thread/173321?ContentTypeID=1</link><pubDate>Wed, 27 Feb 2019 19:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d77d69f-984d-447c-8232-4dbfc4fbb179</guid><dc:creator>tmwinjy</dc:creator><description>&lt;p&gt;I am getting different errors at different stages. for example with the unchanged code after running cmake and then make I get the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Scanning dependencies of target uECC_nrf52832_xxAA
[  0%] Building C object external/micro-ecc/CMakeFiles/uECC_nrf52832_xxAA.dir/uECC.c.obj
[ 14%] Linking C static library libuECC_nrf52832_xxAA.a
[ 14%] Built target uECC_nrf52832_xxAA
Scanning dependencies of target rtt_nrf52832_xxAA
[ 14%] Building C object external/rtt/CMakeFiles/rtt_nrf52832_xxAA.dir/src/SEGGER_RTT.c.obj
[ 14%] Building C object external/rtt/CMakeFiles/rtt_nrf52832_xxAA.dir/src/SEGGER_RTT_printf.c.obj
[ 14%] Linking C static library librtt_nrf52832_xxAA.a
[ 14%] Built target rtt_nrf52832_xxAA
Scanning dependencies of target mesh-provisioning-demo
[ 14%] Building C object examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh-provisioning-demo.dir/src/main.c.obj
/home/takunda/Mesh SDK v2.2.0/examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/src/main.c:42:10: fatal error: generic_on_off_server.h: No such file or directory
 #include &amp;quot;generic_on_off_server.h&amp;quot;
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh-provisioning-demo.dir/build.make:62: recipe for target &amp;#39;examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh-provisioning-demo.dir/src/main.c.obj&amp;#39; failed
make[3]: *** [examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh-provisioning-demo.dir/src/main.c.obj] Error 1
CMakeFiles/Makefile2:1359: recipe for target &amp;#39;examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh-provisioning-demo.dir/all&amp;#39; failed
make[2]: *** [examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh-provisioning-demo.dir/all] Error 2
CMakeFiles/Makefile2:1371: recipe for target &amp;#39;examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh-provisioning-demo.dir/rule&amp;#39; failed
make[1]: *** [examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh-provisioning-demo.dir/rule] Error 2
Makefile:300: recipe for target &amp;#39;mesh-provisioning-demo&amp;#39; failed
make: *** [mesh-provisioning-demo] Error 2
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;SES has no dependancies on the cmake as it already came with its project and session files in the demo. It shows the way it compiles the files yes, but does not help me understand why my cmake&amp;nbsp; is not doing the same. For example, upon fixing header file issues or adding the missing files, I run into linking errors as below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[100%] Linking C executable mesh_provisioning_demo.elf
CMakeFiles/mesh_provisioning_demo.dir/src/main.c.obj: In function `board_init&amp;#39;:
/home/takunda/Mesh SDK v2.2.0/examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/src/main.c:556: undefined reference to `support_func_configure_io_startup&amp;#39;
CMakeFiles/mesh_provisioning_demo.dir/__/__/__/external/ThingySDKv2.1/source/drivers/drv_ext_light.c.obj: In function `m_ioext_led_drv_ctrl&amp;#39;:
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_ext_light.c:541: undefined reference to `sx150x_led_drv_calc_fade_supp&amp;#39;
CMakeFiles/mesh_provisioning_demo.dir/__/__/__/external/ThingySDKv2.1/source/drivers/drv_ext_light.c.obj: In function `m_ioext_cmd_process&amp;#39;:
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_ext_light.c:696: undefined reference to `sx150x_led_drv_calc_convert&amp;#39;
CMakeFiles/mesh_provisioning_demo.dir/__/__/__/external/ThingySDKv2.1/source/drivers/drv_ext_light.c.obj: In function `drv_ext_light_init&amp;#39;:
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_ext_light.c:994: undefined reference to `sx150x_led_drv_calc_init&amp;#39;
CMakeFiles/mesh_provisioning_demo.dir/__/__/__/external/ThingySDKv2.1/source/drivers/drv_sx1509.c.obj: In function `reg_set&amp;#39;:
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_sx1509.c:166: undefined reference to `nrf_drv_twi_tx&amp;#39;
CMakeFiles/mesh_provisioning_demo.dir/__/__/__/external/ThingySDKv2.1/source/drivers/drv_sx1509.c.obj: In function `reg_get&amp;#39;:
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_sx1509.c:180: undefined reference to `nrf_drv_twi_tx&amp;#39;
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_sx1509.c:181: undefined reference to `nrf_drv_twi_rx&amp;#39;
CMakeFiles/mesh_provisioning_demo.dir/__/__/__/external/ThingySDKv2.1/source/drivers/drv_sx1509.c.obj: In function `multi_byte_register_set&amp;#39;:
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_sx1509.c:240: undefined reference to `nrf_drv_twi_tx&amp;#39;
CMakeFiles/mesh_provisioning_demo.dir/__/__/__/external/ThingySDKv2.1/source/drivers/drv_sx1509.c.obj: In function `drv_sx1509_open&amp;#39;:
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_sx1509.c:267: undefined reference to `twi_manager_request&amp;#39;
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_sx1509.c:269: undefined reference to `nrf_drv_twi_enable&amp;#39;
CMakeFiles/mesh_provisioning_demo.dir/__/__/__/external/ThingySDKv2.1/source/drivers/drv_sx1509.c.obj: In function `drv_sx1509_close&amp;#39;:
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_sx1509.c:1232: undefined reference to `nrf_drv_twi_disable&amp;#39;
/home/takunda/Mesh SDK v2.2.0/external/ThingySDKv2.1/source/drivers/drv_sx1509.c:1233: undefined reference to `nrf_drv_twi_uninit&amp;#39;
collect2: error: ld returned 1 exit status
examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh_provisioning_demo.dir/build.make:1607: recipe for target &amp;#39;examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/mesh_provisioning_demo.elf&amp;#39; failed
make[3]: *** [examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/mesh_provisioning_demo.elf] Error 1
CMakeFiles/Makefile2:1361: recipe for target &amp;#39;examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh_provisioning_demo.dir/all&amp;#39; failed
make[2]: *** [examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh_provisioning_demo.dir/all] Error 2
CMakeFiles/Makefile2:1373: recipe for target &amp;#39;examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh_provisioning_demo.dir/rule&amp;#39; failed
make[1]: *** [examples/light_switch/thingy_provisioning_demo_generic_OnOff_BLINK/CMakeFiles/mesh_provisioning_demo.dir/rule] Error 2
Makefile:300: recipe for target &amp;#39;mesh_provisioning_demo&amp;#39; failed
make: *** [mesh_provisioning_demo] Error 2
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The CMakelists does not seem to locate any of the files found in the ThingySDKv2.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52-provisioning-demo not compiling with cmake</title><link>https://devzone.nordicsemi.com/thread/173317?ContentTypeID=1</link><pubDate>Wed, 27 Feb 2019 19:22:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36823f7d-3a95-44fc-8a61-86da4ec6ec47</guid><dc:creator>awneil</dc:creator><description>[quote userid="76781" url="~/f/nordic-q-a/44197/thingy52-provisioning-demo-not-compiling-with-cmake"]Would anyone know a fix[/quote]
&lt;p&gt;You haven&amp;#39;t said what errors you&amp;#39;re getting - so impossible to say how to fix them!&lt;/p&gt;
[quote userid="76781" url="~/f/nordic-q-a/44197/thingy52-provisioning-demo-not-compiling-with-cmake"]using SES to compile it, which works fine[/quote]
&lt;p&gt;SES shows you all of the commands it uses to do its build - so compare that against what your CMake build is doing ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>