Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5026

SDK • Cmake can't find compiler: "No CMAKE_CXX_COMPILER could be found"

$
0
0
I'm following the instructions from this page:
https://www.raspberrypi.com/documentati ... wn-project

I've followed the steps exactly, but when I `make`, I get the following output:

Code:

[  1%] Building ASM object pico-sdk/src/rp2_common/boot_stage2/CMakeFiles/bs2_default.dir/compile_time_choice.S.obj...-- Detecting C compile features - doneCMake Error at CMakeLists.txt:2 (project):  No CMAKE_CXX_COMPILER could be found.  Tell CMake where to find the compiler by setting either the environment  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path  to the compiler, or to the compiler name if it is in the PATH.-- Configuring incomplete, errors occurred!make[3]: *** [CMakeFiles/ELF2UF2Build.dir/build.make:91: elf2uf2/src/ELF2UF2Build-stamp/ELF2UF2Build-configure] Error 1make[2]: *** [CMakeFiles/Makefile2:1535: CMakeFiles/ELF2UF2Build.dir/all] Error 2make[1]: *** [CMakeFiles/Makefile2:1516: CMakeFiles/main.dir/rule] Error 2make: *** [Makefile:124: main] Error 2
I'm not too familiar with Cmake, so not sure how to remedy this. I ran into a similar issue going through the Getting Started pdf. Neither guide has mentioned anything about setting a CXX variable.

I'm on Fedora 39, I have installed the arm toolchain using the instructions on this page:
https://github.com/johnwalicki/RaspPi-P ... les-Fedora

Code:

sudo dnf install gcc-arm-linux-gnu \ arm-none-eabi-gcc-cs-c++ \ arm-none-eabi-gcc-cs \ arm-none-eabi-binutils \ arm-none-eabi-newlib

Statistics: Posted by LBTables — Thu Mar 28, 2024 12:45 am



Viewing all articles
Browse latest Browse all 5026

Trending Articles