Creating new components within the project
Posted: 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?
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?