Include could not find load file

rglissmann
Posts: 10
Joined: Wed Feb 19, 2020 1:08 am

Include could not find load file

Postby rglissmann » Sun Mar 01, 2020 4:04 am

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?

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Include could not find load file

Postby ESP_Angus » Mon Mar 02, 2020 12:16 am

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.

rglissmann
Posts: 10
Joined: Wed Feb 19, 2020 1:08 am

Re: Include could not find load file

Postby rglissmann » Mon Mar 02, 2020 1:29 am

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.

Who is online

Users browsing this forum: nopnop2002 and 70 guests