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

Problem with ZephyrOS build and CMake (CPLUSPLUS C++)

Hello,

I want to build firmware with ZephyrOS for nRF52840. I set up the toolchain (on Windows) and everything works so far (Pyhton, West, CMake..). I can even build the most programs with "cmake -GNinja -DBOARD=nrf52840_pca10056".

But there is a problem with programs who need C++ (CONFIG_CPLUSPLUS=y). When I try to build the "echo_server" sample vom samples/net/socket/echo_server with "cmake -GNinja -DBOARD=nrf52840_pca10056 -DCONF_FILE="prj.conf overlay-ot.conf" .." eveything seams to work so far:

But, when I then run "ninja" to create .hex-File I get an Error:

"The command ".\bootstrap" can not be found or is written wrong"

 

I thing it has something to do with my Complier and C++ because wenn I change "CONFIG_CPLUSPLUS" to "n" in the .conf-File for CMake it builds the binarys with no errors. The problem is, that without C++-support I can not use some features I wanna use (Openthread), because they depent on C++.

I'm using GNU_ARM_Embedded_Toolchain. I set Environment variables like this:

I also tried to install C++ runtimes but nothing happened.

I work with Windows 10 and with Tools like in the Getting Started Guide from Zephyr (Python3, pip, west, Ninja, CMake).

Hope you have some ideas, thanks for your help!

 

With best regards

Sebastian

Related