OK, I'm still having trouble configuring the toolchain within CLion.
I can build the hello_world example using cmake from the command line, but I can't seem to configure it to build from within CLion.
In the Build,Execution,Deployment->Toolchains config (shown in the image above which I suspect won't get rendered).
What values should I be using for:
- Environment]
- Make]
- C Compiler]
- C++ Compiler]
- Debugger]
I don't particularly want to use Cygwin, it's just what it defaulted to. But it seems to think that the source is in "/cygdrive/e/Source/esp32/hello_world" which it is not.
Reminder: this is on Windows.
Code: Select all
E:\Dev\CMake\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_C_COMPILER=E:/Dev/Espressif/ESP-IDF Tools/tools/bin/xtensa-esp32-elf-gcc.exe" "-DCMAKE_CXX_COMPILER=E:/Dev/Espressif/ESP-IDF Tools/tools/bin/xtensa-esp32-elf-c++.exe" -G "CodeBlocks - Unix Makefiles" /cygdrive/e/Source/esp32/hello_world
CMake Error: The source directory "/cygdrive/e/Source/esp32/hello_world" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
CMake Error:
------------------------------------------------------------------------------------
Selected CMake might be incompatible with the Cygwin environment.
In order to run on Cygwin, CMake needs to be specially compiled.
Please select either CMake bundled with CLion or CMake from the Cygwin installation.
------------------------------------------------------------------------------------
[Previous CMake output restored: 23/04/2019 2:34 PM]