[已解决] IDF构建

chenyananee
Posts: 30
Joined: Sun Mar 21, 2021 9:35 am

[已解决] IDF构建

Postby chenyananee » Mon Nov 01, 2021 2:55 am

hi all,
在我构建IDF项目时,并没有使用默认的main组件,而是自定义的目录结构,并且按照文档在顶层Cmakelist里更改了EXTRA_COMPONENT_DIRS 的值 并在“EXTRA_COMPONENT_DIRS”对应的目录中调用了idf_component_register,但是任然会报错“Called idf_component_register from a non-component directory.”
Attachments
无标题.png
this is cmakelist file
无标题.png (68.55 KiB) Viewed 3085 times

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: IDF构建

Postby ESP_ICY » Mon Nov 01, 2021 6:18 am


chenyananee
Posts: 30
Joined: Sun Mar 21, 2021 9:35 am

Re: IDF构建

Postby chenyananee » Mon Nov 01, 2021 8:37 am

thanks for comment,

已经更改了构建方式,cmake文件由idf_as_lib例子更改而来,过程中问出现文件写入权限问题。调用idf_build_process时BUILD_DIR设置为工程路径,但是在idf_build_process内部增加输出信息发现内部build_dir为根目录,这个是否是一个sdk的bug。
Attachments
无标题.png
无标题.png (104.67 KiB) Viewed 3044 times

chenyananee
Posts: 30
Joined: Sun Mar 21, 2021 9:35 am

Re: IDF构建

Postby chenyananee » Mon Nov 01, 2021 9:32 am

can be work!!!!!

需要使用build.sh 而非idf.py来编译

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 70 guests