101Things icon indicating copy to clipboard operation
101Things copied to clipboard

CMake error

Open w9ran opened this issue 1 year ago • 0 comments

Jon, when building 18_transmitter using VSCode the following error occurs. I'll wait to hear your response before hacking up the cmake.txt file on my own, thanks.

Bob

[main] Building folder: 18_transmitter [main] Configuring project: 18_transmitter [proc] Executing command: "C:\Program Files\Raspberry Pi\Pico SDK v1.5.1\cmake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -SC:/Users/User/Downloads/101Things-master(1)/101Things-master/18_transmitter -Bc:/Users/User/Downloads/101Things-master(1)/101Things-master/18_transmitter/build -G Ninja [cmake] Not searching for unused variables given on the command line. [cmake] CMake Warning (dev) in CMakeLists.txt: [cmake] No project() command is present. The top-level CMakeLists.txt file must [cmake] contain a literal, direct call to the project() command. Add a line of [cmake] code such as [cmake] [cmake] project(ProjectName) [cmake] [cmake] near the top of the file, but after cmake_minimum_required(). [cmake] [cmake] CMake is pretending there is a "project(Project)" command on the first [cmake] line. [cmake] This warning is for project developers. Use -Wno-dev to suppress it. [cmake] [cmake] -- The C compiler identification is unknown [cmake] -- The CXX compiler identification is unknown [cmake] CMake Error in CMakeLists.txt: [cmake] No CMAKE_C_COMPILER could be found. [cmake] [cmake] Tell CMake where to find the compiler by setting either the environment [cmake] variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to [cmake] the compiler, or to the compiler name if it is in the PATH. [cmake] [cmake] [cmake] CMake Error in CMakeLists.txt: [cmake] No CMAKE_CXX_COMPILER could be found. [cmake] [cmake] Tell CMake where to find the compiler by setting either the environment [cmake] variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path [cmake] to the compiler, or to the compiler name if it is in the PATH. [cmake] [cmake] [cmake] CMake Warning (dev) in CMakeLists.txt: [cmake] No cmake_minimum_required command is present. A line of code such as [cmake] [cmake] cmake_minimum_required(VERSION 3.25) [cmake] [cmake] should be added at the top of the file. The version specified may be lower [cmake] if you wish to support older CMake versions for this project. For more [cmake] information run "cmake --help-policy CMP0000". [cmake] This warning is for project developers. Use -Wno-dev to suppress it. [cmake] [cmake] -- Configuring incomplete, errors occurred! [cmake] See also "C:/Users/User/Downloads/101Things-master(1)/101Things-master/18_transmitter/build/CMakeFiles/CMakeOutput.log". [cmake] See also "C:/Users/User/Downloads/101Things-master(1)/101Things-master/18_transmitter/build/CMakeFiles/CMakeError.log". [proc] The command: "C:\Program Files\Raspberry Pi\Pico SDK v1.5.1\cmake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -SC:/Users/User/Downloads/101Things-master(1)/101Things-master/18_transmitter -Bc:/Users/User/Downloads/101Things-master(1)/101Things-master/18_transmitter/build -G Ninja exited with code: 1

w9ran avatar Jun 15 '24 17:06 w9ran