Open ShaunLeMouton opened 3 years ago
Sorry for the lack of support. I have been putting-off my upgrade to IDF 4 since I'm happily working on 3.3 on Windows. Have you resolved it? If so please provide PR.
This problem occurs on Windows when CMakeLists.txt contains environment variable expansion like this:
include("$ENV{IDF_PATH}/tools/cmake/project.cmake")
CMake is complaining about the first backlash in the path:
c:\dev\ESP32\tools\python_env\idf4.0_py3.8_env\Scripts\python.exe
CMake suggests using file(TO_CMAKE_PATH "<path>" <variable>)
: https://cmake.org/cmake/help/latest/command/file.html#to-cmake-path
I used the 4.0 esp idf with python 3.8 at windows 10 with visual studio code:
`Make Error at C:/dev/ESP32/esp-idf/esp-idf/tools/cmake/component.cmake:222 (message): CMake Warning (dev) at build_properties.temp.cmake:2 (set):
Call Stack (most recent call first):
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at C:/dev/ESP32/tools/tools/cmake/3.13.4/share/cmake-3.13/Modules/CheckCSourceCompiles.cmake:98 (try_compile):
Call Stack (most recent call first):
Call Stack (most recent call first): C:/dev/ESP32/esp-idf/esp-idf/tools/cmake/build.cmake:404 (__component_get_requirements) C:/dev/ESP32/esp-idf/esp-idf/tools/cmake/project.cmake:348 (idf_build_process) CMakeLists.txt:27 (project)
-- Configuring incomplete, errors occurred! See also "C:/dev/ESP32/esphttpd-freertos/build/bootloader/CMakeFiles/CMakeOutput.log". [76/274] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/time.c.obj ninja: build stopped: subcommand failed.