Building ESP32 using CMAKE

mfawzy79
Posts: 17
Joined: Thu Feb 18, 2021 11:21 pm

Building ESP32 using CMAKE

Postby mfawzy79 » Sat Mar 06, 2021 8:12 pm

Hello,

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

Thanks,

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Building ESP32 using CMAKE

Postby ESP_Sprite » Sun Mar 07, 2021 6:04 am

Just use idf.py; it uses cmake under the hood so you get all the cmake advantages.

mfawzy79
Posts: 17
Joined: Thu Feb 18, 2021 11:21 pm

Re: Building ESP32 using CMAKE

Postby mfawzy79 » Sun Mar 07, 2021 6:45 pm

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.

jimas13
Posts: 6
Joined: Tue Jan 19, 2021 8:36 am

Re: Building ESP32 using CMAKE

Postby jimas13 » Sun Mar 07, 2021 10:59 pm

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

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Building ESP32 using CMAKE

Postby ESP_Sprite » Mon Mar 08, 2021 1:54 am

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.

Who is online

Users browsing this forum: ignisuti and 82 guests