Page 1 of 1

Include could not find load file

Posted: Sun Mar 01, 2020 4:04 am
by rglissmann
CMakeLists.txt has the following: include ($ENV{IDF_PATH}/tools/cmake/project.cmake)

My IDF_PATH is C:\Users\Randy\Desktop\esp-idf

When I try to build, I get "Include could not find load file:"
C:\Users\Randy\esp-idf/tools/cmake/project.cmake

It's missing Desktop and the slashes are screwed up. What needs to be corrected?

Re: Include could not find load file

Posted: Mon Mar 02, 2020 12:16 am
by ESP_Angus
Are you sure your IDF_PATH environment variable is set to C:\Users\Randy\Desktop\esp-idf and not C:\Users\Randy\esp-idf ? (can check with "echo %IDF_PATH%")

The mixed slashes aren't a problem, CMake will figure this out on its own.

Re: Include could not find load file

Posted: Mon Mar 02, 2020 1:29 am
by rglissmann
Yes, I confirmed again that it's C:\Users\Randy\Desktop\esp-idf . I can build without errors from the IDF command prompt. When I build in Visual Studio, I get this problem.