Home>

The CMakeLists.txt file looks like this:

cmake_minimum_required(VERSION 3.14)
project(Test)
set(CMAKE_CXX_COMPILER "/usr/bin/arm-linux-gnueabi-g++ ")
set(CMAKE_CXX_FLAGS " -Wall --static -marm -march=armv5tej -std=c++17 -pthread ")
add_subdirectory(Code)

However, when trying to execute the make.sh script, the code of which is:

mkdir BuildOut
cd Build Out
cmake ..
make

The terminal gives an error message -" The CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabi-g++ is not a full path to an existing compiler tool.Tell CMake where to find the compiler by setting either the environment variabe "CXX " or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compier nae if it is in the PATH."

However, the specified file exists in the specified path, and it was previously possible to build another project with the specified compiler variables. And even run on the board. What could be the problem?

smake.org/smake/help/latest/manual/…

user78606702022-02-12 21:09:13

extra space in the path?

Pavel Gridin2022-02-12 21:09:13

Okay. I removed the space, but there was a loop in the processing of the CMakeLists.txt file while the make.sh script was running

NeutralBBName2022-02-12 21:09:13