Creating new components within the project

ihouses
Posts: 19
Joined: Sun Jul 09, 2017 1:41 pm

Creating new components within the project

Postby ihouses » Mon Dec 21, 2020 11:54 pm

Hi,

I am trying to execute the code:

idf.py -C components create-component my_component

That is described in the documentation.

My expectation when I execute this in an empty folder named "components" is that it will create the subfolder audio plus the file CMakeLists.txt and other things, but what I get is:

PS C:\Users\Jose\Documents\esp32_projects\idf_thing\element_sdcard_mp3> idf.py -C components create-component audio
Executing action: create-component
CMakeLists.txt not found in project directory c:\users\jose\documents\esp32_projects\idf_thing\element_sdcard_mp3\components
PS C:\Users\Jose\Documents\esp32_projects\idf_thing\element_sdcard_mp3>]


I tried to add an empy CMakeLists.txt file within the components folder but then I get just more errors and some non expected subfolders created.

What is the right way of doing that?


Who is online

Users browsing this forum: No registered users and 102 guests