Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake error #1

Open
jrsims2 opened this issue Dec 26, 2022 · 1 comment
Open

cmake error #1

jrsims2 opened this issue Dec 26, 2022 · 1 comment

Comments

@jrsims2
Copy link

jrsims2 commented Dec 26, 2022

Really appreciate running across your code. Very new to coding. When I followed your steps I got this error

Defaulting PICO_PLATFORM to rp2040 since not specified.
Defaulting PICO platform compiler to pico_arm_gcc since not specified.
-- Defaulting build type to 'Release' since not specified.
PICO compiler is pico_arm_gcc
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
CMake Error at CMakeLists.txt:7 (project):
The CMAKE_C_COMPILER:

fullPathToCompiler

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:7 (project):
The CMAKE_CXX_COMPILER:

fullPathToCompiler

is not a full path and was not found in the PATH.

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!
See also "/home/jackandjohn/mlx90640-RPI-Pico/build/CMakeFiles/CMakeOutput.log".
See also "/home/jackandjohn/mlx90640-RPI-Pico/build/CMakeFiles/CMakeError.log".

@VianPatel
Copy link
Owner

This error occurs because fullPathToCompiler has to be changed to the compiler's path.
With your current setup, you should run the following command:

cmake -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH="/usr/bin/arm-none-eabi-gcc" -DCMAKE_CXX_COMPILER:FILEPATH="/usr/bin/arm-none-eabi-g++" ..

On a related note, I just committed some changes to this repo that make it more clear how to use this project.
Assuming you want to test the thermal camera's functionality you'll want to compile and run the sample code as described in the README.md.
And eventually if you choose to use this code in a project, you might want to check out the ThermalCamera.h header only library as it provides an easy to use wrapper over the API.

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants