Page 1 of 1

Building ESP32 using CMAKE

Posted: Sat Mar 06, 2021 8:12 pm
by mfawzy79
Hello,

what is the needed command line to compile the ESP23 project using the CMAKE not the idf.py

Thanks,

Re: Building ESP32 using CMAKE

Posted: Sun Mar 07, 2021 6:04 am
by ESP_Sprite
Just use idf.py; it uses cmake under the hood so you get all the cmake advantages.

Re: Building ESP32 using CMAKE

Posted: Sun Mar 07, 2021 6:45 pm
by mfawzy79
actually, invoking idf.py from my tool is returning
'idf.py' is not recognized as an internal or external command,
operable program or batch file.

Re: Building ESP32 using CMAKE

Posted: Sun Mar 07, 2021 10:59 pm
by jimas13
Hello, you should use the terminal window that gets setup upon installation of the framework.
Once you open the esp-idf-terminal all of the paths needed in order to run the IDF.py and such commands are added to the session and you can utilise all of the python scripts, at your disposal

Re: Building ESP32 using CMAKE

Posted: Mon Mar 08, 2021 1:54 am
by ESP_Sprite
It sounds like you haven't installed esp-idf correctly (or haven't set it up correctly, indeed). If you can't run idf.py from the command line, multiple other things will be broken and using cmake manually is not going to save you. Suggest you figure out what's wrong with your install first.