Skip to content

Instantly share code, notes, and snippets.

@jamieparkinson
Created August 17, 2019 14:59
Show Gist options
  • Save jamieparkinson/6846857cc67a8363c9e2f66c8ba6e520 to your computer and use it in GitHub Desktop.
Save jamieparkinson/6846857cc67a8363c9e2f66c8ba6e520 to your computer and use it in GitHub Desktop.
ESP-IDF CLion/CMake setup

ESP-IDF CLion CMake setup

  1. Open project directory which contains a CMakeLists.txt
  2. Set environment variables (Settings > Build, Execution, Deployment > CMake):
    • Ensure IDF_PATH is present & correct
    • Ensure PATH includes xtensa-esp32-elf's bin directory ($IDF_TOOLS_PATH/tools/xtensa-esp32-elf/esp32-<version>/xtensa-esp32-elf/bin)
    • Add the python2.7 virtualenv's bin directory to PATH ($IDF_TOOLS_PATH/python_env/<version>/bin)
    • Add a PYTHONPATH variable pointing at the virtualenv's site-packages ($IDF_TOOLS_PATH/python_env/<version>/lib/python2.7/site-packages)
  3. Set the 'Generation path' to build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment