[英]VSCode esp-idf wont link my component folder to project
首先, managed_components
目錄由IDF Component Manager使用,因此您應該想出一個不同的名稱。
其次,考慮是否真的需要多個組件目錄。 你知道你可以在components
目錄中為每個組件創建子目錄嗎? 例如:
cd components/
idf.py create-component new_component
最后,如果您確實想添加額外的組件目錄,請編輯項目根目錄中的CMakeLists.txt
文件並添加如下一行:
set(EXTRA_COMPONENT_DIRS my_extra_components)
請參閱此示例CMakeLists.txt 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.