Configure CLion to use ESP-IDF
Posted: Mon Mar 23, 2020 10:25 am
Hello,
I am trying to use the ESP-IDF with CLion, but I have some problems with the configuration. Has anybody some advice to make it running and can explain which settings in the Preferences menu are necessary? I installed everything as written in the ESP-IDF documentation on macOS and it works running the terminal.
I added the IDF_PATH/ PATH in the environment table + CMake options and I linked the toolchain as you can see on the attachments.
When loading the hello_world project into CLion I am getting the message:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: xtensa-esp32-elf-gcc
and a CMake Error for each compiler like this one:
The CMAKE_CXX_COMPILER:
xtensa-esp32-elf-g++
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.
It is probably easy to fix, but I'm stuck at the moment and can't find a solution.
Thanks for your help
I am trying to use the ESP-IDF with CLion, but I have some problems with the configuration. Has anybody some advice to make it running and can explain which settings in the Preferences menu are necessary? I installed everything as written in the ESP-IDF documentation on macOS and it works running the terminal.
I added the IDF_PATH/ PATH in the environment table + CMake options and I linked the toolchain as you can see on the attachments.
When loading the hello_world project into CLion I am getting the message:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: xtensa-esp32-elf-gcc
and a CMake Error for each compiler like this one:
The CMAKE_CXX_COMPILER:
xtensa-esp32-elf-g++
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.
It is probably easy to fix, but I'm stuck at the moment and can't find a solution.
Thanks for your help