This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Compiling the BLE mesh examples

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 when I ran cmake -G Ninja .., I see a warning that it could not fine nRF5_SDK. I did the recommendation to run nRF5_SDK but I get the same error after that. I set an environment variable SDK_ROOT with value nRF5_SDK_16.0.0_98a08e2 because that is my SDK but still the same. I could not find the documentation where else I should set that. Sorry it looks a stupid question but it took me 2 days with out success. I am new to cmake/make/gcc etc. by the way, I was able to compile examples from nRF SDK v17 but I'm interested in BLE mesh. Below is my folder structure.

Thanks

Parents Reply
  • Hi, thanks for reaching out. I am trying to follow the documentation on  nRF5 SDK for Mesh v4.2.0 > Getting started 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, GNU ARM, ninja installed. But when I can the command cmake -G Ninja .., I get the below warning.

    as suggested in the warning, I run nRF5_SDK and so the 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 SDK_ROOT to the directory of  nRF5_SDK_17 (also tried nRF5_SDK_16.0.0_98a08e2) but still I get the same error.

    It looks the ninja tools doesn't know the directory of the SDK_ROOT.

    There is also a tutorial in https://wiki.makerdiary.com/nrf52840-mdk/mesh/ but i'm still not able to successfully build. 

Children
No Data
Related