<?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>Compiling the BLE mesh examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65618/compiling-the-ble-mesh-examples</link><description>Hello, 
 I am trying to compile the samples from SDK_for_mesh_v4.2.0 but i have problem with my environment set-up. I am following closely the documentation but I think something is missing that i could not figure it out. I had installed all tools. But</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Sep 2020 15:46:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65618/compiling-the-ble-mesh-examples" /><item><title>RE: Compiling the BLE mesh examples</title><link>https://devzone.nordicsemi.com/thread/269042?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 15:46:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e33596b1-ef4f-4fed-8132-d9c6878a65c0</guid><dc:creator>Lakay</dc:creator><description>&lt;p&gt;Thanks for providing inputs. I had played around and doing trial and error and now I am able to build when i moved the environment variable from user to system. It&amp;#39;s weird but yeah after doing that I can now build. But I still see the warning on the patch that It can not find the &amp;#39;patch&amp;#39; executable, What is the &amp;#39;patch executable&amp;#39; for? It might be part of the culprit if it has something to do with setting up or updating configurations. I also see that Doxygen is missing but I know doxygen and i don&amp;#39;t need it.&amp;nbsp;Below is part of the log.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-- Configuring CMake for nRF5 SDK for Bluetooth Mesh 4.2.0&lt;br /&gt;-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)&lt;br /&gt;CMake Warning at CMake/FindSDK.cmake:24 (message):&lt;br /&gt; Could not find `patch` executable. Automatic patching of the nRF5 SDK not&lt;br /&gt; supported. See for diff to apply.&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; CMakeLists.txt:49 (include)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling the BLE mesh examples</title><link>https://devzone.nordicsemi.com/thread/269029?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 14:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74cced58-1819-4298-a4fa-51bd949ff793</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;What happens if you remove the SDK_ROOT&amp;nbsp;&lt;span&gt;user environment variable and then try to run the command?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling the BLE mesh examples</title><link>https://devzone.nordicsemi.com/thread/268774?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 13:33:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84675cae-67ee-46e8-bc42-00baff9da2f8</guid><dc:creator>Lakay</dc:creator><description>&lt;p&gt;hi Mttrinh, yes&amp;nbsp;that is the exact files in the folder&amp;nbsp;&lt;span&gt;nRF5_SDK_17. It is newly downloaded sdk. I copy pasted the path when i set the user environment variable so i im sure there is no typo there. Even if I let it download the SDK. the SDK 16 is actually downloaded by the command nRF5_SDK. For testing, how can I actually set the SDK_ROOT absolute directory in the&amp;nbsp;CMakeLists.txt? It looks its not looking at the environment variable.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling the BLE mesh examples</title><link>https://devzone.nordicsemi.com/thread/268755?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 12:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24c026a2-4254-4eaa-a7ef-9fd8300f4d16</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;What are your subfolders inside nRF5_SDK_17?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-115abe2582f74430a7b0735d48971d76/Capture.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Is it like this in the folder?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling the BLE mesh examples</title><link>https://devzone.nordicsemi.com/thread/268585?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 15:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fde71e8-4785-4af6-9669-46c62fce7d8c</guid><dc:creator>Lakay</dc:creator><description>&lt;p&gt;yes I made a build directory&amp;nbsp;nrf5_SDK_for_Mesh_v4.2.0\build and I am running the command here. Here is the log. I also tried to run ninja help that might give you a hint.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS D:\Mago\nrf5_SDK_for_Mesh_v4.2.0\build&amp;gt; cmake -G Ninja ..&lt;br /&gt;-- Configuring CMake for nRF5 SDK for Bluetooth Mesh 4.2.0&lt;br /&gt;-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) &lt;br /&gt;CMake Warning at CMake/FindSDK.cmake:24 (message):&lt;br /&gt; Could not find `patch` executable. Automatic patching of the nRF5 SDK not&lt;br /&gt; supported. See for diff to apply.&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; CMakeLists.txt:49 (include)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;CMake Warning at CMake/FindSDK.cmake:56 (message):&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; Could not find the nRF5 SDK. The build will fail.&lt;br /&gt; Please run the nRF5_SDK target to download it or provide the correct path&lt;br /&gt; using the -DSDK_ROOT option or setting the SDK_ROOT environment variable.&lt;br /&gt; After the download is complete, re-run `cmake`.&lt;/p&gt;
&lt;p&gt;Call Stack (most recent call first):&lt;br /&gt; CMakeLists.txt:49 (include)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;-- Configuring done&lt;br /&gt;-- Generating done&lt;br /&gt;-- Build files have been written to: D:/Mago/nrf5_SDK_for_Mesh_v4.2.0/build&lt;br /&gt;PS D:\Mago\nrf5_SDK_for_Mesh_v4.2.0\build&amp;gt; ninja help&lt;br /&gt;[1/1] All primary targets available:&lt;br /&gt;nRF5_SDK: phony&lt;br /&gt;edit_cache: phony&lt;br /&gt;rebuild_cache: phony&lt;br /&gt;all: phony&lt;br /&gt;build.ninja: RERUN_CMAKE&lt;br /&gt;clean: CLEAN&lt;br /&gt;help: HELP&lt;br /&gt;PS D:\Mago\nrf5_SDK_for_Mesh_v4.2.0\build&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling the BLE mesh examples</title><link>https://devzone.nordicsemi.com/thread/268448?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 08:49:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f91c1b2c-fd98-4e26-a422-0a42d359eec2</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Did you make a build folder in the root of the Mesh SDK? Then run the command:&lt;/p&gt;
&lt;p&gt;cmake -G Ninja ..&lt;/p&gt;
&lt;p&gt;inside this build folder?&lt;/p&gt;
&lt;p&gt;Can you upload the whole log after you entered that command?&lt;/p&gt;
&lt;p&gt;Double check for typos in your path.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling the BLE mesh examples</title><link>https://devzone.nordicsemi.com/thread/268386?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 03:39:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0fc57df-7538-476e-90b0-fef35847e10a</guid><dc:creator>Lakay</dc:creator><description>&lt;p&gt;Hi, thanks for reaching out. I am trying to follow the documentation on&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/struct_sdk/struct/sdk_mesh_latest.html"&gt;nRF5 SDK for Mesh v4.2.0&lt;/a&gt;&lt;span&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.2.0/md_doc_getting_started_getting_started.html"&gt;Getting started&lt;/a&gt;&amp;nbsp;&lt;span&gt;Building the mesh stack and examples. I have downloaded SDK for mesh 4.2.0 and SDK 17 ans shown in the folder structure above. I have nRF5x command line tool, CMAKE,&amp;nbsp;GNU ARM, ninja installed. But when I can the command&amp;nbsp;&lt;/span&gt;cmake -G Ninja .., I get the below warning.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1599535667575v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;as suggested in the warning, I run&amp;nbsp;nRF5_SDK and so the&amp;nbsp;nRF5_SDK_16.0.0_98a08e2 was also in my directory as shown on my initial post. But after that, I still get the same error. on my PC, I set the environment variable&amp;nbsp;SDK_ROOT to the directory of&amp;nbsp; nRF5_SDK_17 (also tried&amp;nbsp;nRF5_SDK_16.0.0_98a08e2) but still I get the same error.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1599536066872v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It looks the ninja tools doesn&amp;#39;t know the directory of the SDK_ROOT.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There is also a tutorial in&amp;nbsp;&lt;a href="https://wiki.makerdiary.com/nrf52840-mdk/mesh/"&gt;https://wiki.makerdiary.com/nrf52840-mdk/mesh/&lt;/a&gt;&amp;nbsp;but i&amp;#39;m still not able to successfully build.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling the BLE mesh examples</title><link>https://devzone.nordicsemi.com/thread/268318?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 12:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b94cfc2-562b-4ea8-82be-cd970f93f8f9</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you walk me through step-by-step what you have done so far? What command did you run to get the above message?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling the BLE mesh examples</title><link>https://devzone.nordicsemi.com/thread/268156?ContentTypeID=1</link><pubDate>Sun, 06 Sep 2020 16:32:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e71288a5-e726-4de7-8dcb-85de54f3f809</guid><dc:creator>Lakay</dc:creator><description>&lt;p&gt;Update, I updated the environment variable to nRF5_SDK_17 and new error is below.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1599409890792v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;How could I set these options?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>