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 Mttrinh, yes that is the exact files in the folder 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 CMakeLists.txt? It looks its not looking at the environment variable.

Children
No Data
Related