I realise that this may be a bit tricky to convey as I'm running into a few different problems.
One issue I have is that the docs here don't exist:
https://docs.espressif.com/projects/esp ... index.html - so I'm using a mixture of 3.2 and master to get by.
In my original project, I was using a pyenv-managed virtualenv with python 3.7.3, but I didn't set the PYTHON cmake variable. I just set this now (to the path to my virtualenv's python binary) and that seems to have cleared up the Python issue, so thats OK.
However, I now see two problems. The first only occurs with my custom project that has some components brought in as simple git submodules (with their own CMakeLists.txt file at the root of each). This error is:
Code: Select all
/snap/clion/73/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/meowsqueak/esp32/projects/myproj
-- Could NOT find Git (missing: GIT_EXECUTABLE)
CMake Warning at /home/meowsqueak/esp32/esp-idf-v3.3-beta3/tools/cmake/git_submodules.cmake:4 (message):
Git executable was not found. Git submodule checks will not be executed.
If you have any build issues at all, start by adding git executable to the
PATH and rerun cmake to not see this warning again.
Call Stack (most recent call first):
/home/meowsqueak/esp32/esp-idf-v3.3-beta3/tools/cmake/idf_functions.cmake:27 (include)
/home/meowsqueak/esp32/esp-idf-v3.3-beta3/tools/cmake/project.cmake:5 (include)
CMakeLists.txt:5 (include)
I've also tried with the hello_world example from 3.3-beta3 and I do not see this error there, although that project doesn't use git submodules so perhaps that is why?
The second error happens with both projects (I tried v3.2 here, hence the version number change):
Code: Select all
-- Checking Python dependencies...
Python requirements from /home/meowsqueak/esp32/esp-idf-v3.2/requirements.txt are satisfied.
-- Building empty aws_iot component due to configuration
-- Component names: soc log heap xtensa-debug-module app_trace freertos vfs newlib esp_ringbuf driver esp_event ethernet lwip tcpip_adapter partition_table app_update spi_flash mbedtls micro-ecc bootloader_support nvs_flash pthread smartconfig_ack wpa_supplicant esp32 cxx esp32-rotary-encoder esp32-smbus esp8266_wrapper i2c-master lis3mdl asio jsmn aws_iot bootloader bt coap console nghttp esp-tls esp_adc_cal tcp_transport esp_http_client esp_http_server esp_https_ota esptool_py expat wear_levelling sdmmc fatfs freemodbus idf_test json libsodium mdns mqtt openssl protobuf-c protocomm spiffs ulp wifi_provisioning main
-- Component paths: /home/meowsqueak/esp32/esp-idf-v3.2/components/soc;/home/meowsqueak/esp32/esp-idf-v3.2/components/log;/home/meowsqueak/esp32/esp-idf-v3.2/components/heap;/home/meowsqueak/esp32/esp-idf-v3.2/components/xtensa-debug-module;/home/meowsqueak/esp32/esp-idf-v3.2/components/app_trace;/home/meowsqueak/esp32/esp-idf-v3.2/components/freertos;/home/meowsqueak/esp32/esp-idf-v3.2/components/vfs;/home/meowsqueak/esp32/esp-idf-v3.2/components/newlib;/home/meowsqueak/esp32/esp-idf-v3.2/components/esp_ringbuf;/home/meowsqueak/esp32/esp-idf-v3.2/components/driver;/home/meowsqueak/esp32/esp-idf-v3.2/components/esp_event;/home/meowsqueak/esp32/esp-idf-v3.2/components/ethernet;/home/meowsqueak/esp32/esp-idf-v3.2/components/lwip;/home/meowsqueak/esp32/esp-idf-v3.2/components/tcpip_adapter;/home/meowsqueak/esp32/esp-idf-v3.2/components/partition_table;/home/meowsqueak/esp32/esp-idf-v3.2/components/app_update;/home/meowsqueak/esp32/esp-idf-v3.2/components/spi_flash;/home/meowsqueak/esp32/esp-idf-v3.2/components/mbedtls;/home/meowsqueak/esp32/esp-idf-v3.2/components/micro-ecc;/home/meowsqueak/esp32/esp-idf-v3.2/components/bootloader_support;/home/meowsqueak/esp32/esp-idf-v3.2/components/nvs_flash;/home/meowsqueak/esp32/esp-idf-v3.2/components/pthread;/home/meowsqueak/esp32/esp-idf-v3.2/components/smartconfig_ack;/home/meowsqueak/esp32/esp-idf-v3.2/components/wpa_supplicant;/home/meowsqueak/esp32/esp-idf-v3.2/components/esp32;/home/meowsqueak/esp32/esp-idf-v3.2/components/cxx;/home/meowsqueak/esp32/projects/myproj/components/esp32-rotary-encoder;/home/meowsqueak/esp32/projects/myproj/components/esp32-smbus;/home/meowsqueak/esp32/projects/myproj/components/esp8266_wrapper;/home/meowsqueak/esp32/projects/myproj/components/i2c-master;/home/meowsqueak/esp32/projects/myproj/components/lis3mdl;/home/meowsqueak/esp32/esp-idf-v3.2/components/asio;/home/meowsqueak/esp32/esp-idf-v3.2/components/jsmn;/home/meowsqueak/esp32/esp-idf-v3.2/components/aws_iot;/home/meowsqueak/esp32/esp-idf-v3.2/components/bootloader;/home/meowsqueak/esp32/esp-idf-v3.2/components/bt;/home/meowsqueak/esp32/esp-idf-v3.2/components/coap;/home/meowsqueak/esp32/esp-idf-v3.2/components/console;/home/meowsqueak/esp32/esp-idf-v3.2/components/nghttp;/home/meowsqueak/esp32/esp-idf-v3.2/components/esp-tls;/home/meowsqueak/esp32/esp-idf-v3.2/components/esp_adc_cal;/home/meowsqueak/esp32/esp-idf-v3.2/components/tcp_transport;/home/meowsqueak/esp32/esp-idf-v3.2/components/esp_http_client;/home/meowsqueak/esp32/esp-idf-v3.2/components/esp_http_server;/home/meowsqueak/esp32/esp-idf-v3.2/components/esp_https_ota;/home/meowsqueak/esp32/esp-idf-v3.2/components/esptool_py;/home/meowsqueak/esp32/esp-idf-v3.2/components/expat;/home/meowsqueak/esp32/esp-idf-v3.2/components/wear_levelling;/home/meowsqueak/esp32/esp-idf-v3.2/components/sdmmc;/home/meowsqueak/esp32/esp-idf-v3.2/components/fatfs;/home/meowsqueak/esp32/esp-idf-v3.2/components/freemodbus;/home/meowsqueak/esp32/esp-idf-v3.2/components/idf_test;/home/meowsqueak/esp32/esp-idf-v3.2/components/json;/home/meowsqueak/esp32/esp-idf-v3.2/components/libsodium;/home/meowsqueak/esp32/esp-idf-v3.2/components/mdns;/home/meowsqueak/esp32/esp-idf-v3.2/components/mqtt;/home/meowsqueak/esp32/esp-idf-v3.2/components/openssl;/home/meowsqueak/esp32/esp-idf-v3.2/components/protobuf-c;/home/meowsqueak/esp32/esp-idf-v3.2/components/protocomm;/home/meowsqueak/esp32/esp-idf-v3.2/components/spiffs;/home/meowsqueak/esp32/esp-idf-v3.2/components/ulp;/home/meowsqueak/esp32/esp-idf-v3.2/components/wifi_provisioning;/home/meowsqueak/esp32/projects/myproj/main
CMake Error at /home/meowsqueak/esp32/esp-idf-v3.2/tools/cmake/idf_functions.cmake:162 (message):
Internal error, toolchain has not been set correctly by project (or an
invalid CMakeCache.txt file has been generated somehow)
Call Stack (most recent call first):
/home/meowsqueak/esp32/esp-idf-v3.2/tools/cmake/project.cmake:117 (idf_verify_environment)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "/home/meowsqueak/esp32/projects/myproj/cmake-build-debug/CMakeFiles/CMakeOutput.log".
The CMakeOutput.log file is lengthy but doesn't seem to contain any failures, errors or warnings.
My top-level CMakeLists.txt looks like this:
Code: Select all
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(myproj)
I haven't explicitly set a toolchain in the project because I thought that setting IDF_PATH would do that - perhaps that's the problem here?
I'm building on Ubuntu Linux 16.04 with cmake 3.10.3, CLion 2019.1.