Search found 5 matches

by jaffer
Thu Jun 08, 2023 10:00 am
Forum: General Discussion
Topic: '%02d' directive output may be truncated writing between 2 and 11 bytes into a region of size between 9 and 16 [-Werror=
Replies: 1
Views: 1620

Re: '%02d' directive output may be truncated writing between 2 and 11 bytes into a region of size between 9 and 16 [-Wer

I had the same problem and solved it with the following the solution. Add the following command to CMakeLists on the corresponding components: target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") -------------------------------------------------------------------- 我遇到了同样的问题,并通过以下方案解决了此问题: ...
by jaffer
Mon Mar 27, 2023 4:11 pm
Forum: ESP-IDF 中文讨论版
Topic: ESP32 使用powershell搭建好了环境,执行build编译helloworld例程,报ninja错误
Replies: 2
Views: 1130

Re: ESP32 使用powershell搭建好了环境,执行build编译helloworld例程,报ninja错误

感谢您的回复

我切换到v5.0.1分支之后没有运行git status检查分区是否干净,遗漏了子模块未同步导致,我重新运行 git submodule update --init --recursive 后解决了

关于环境的完整细节,我整理为了一份博客分享,欢迎其他有需要的人查阅参考
https://blog.csdn.net/weixin_44821644/a ... /107893487
by jaffer
Sun Mar 26, 2023 3:23 pm
Forum: ESP-IDF 中文讨论版
Topic: ESP32 使用powershell搭建好了环境,执行build编译helloworld例程,报ninja错误
Replies: 2
Views: 1130

ESP32 使用powershell搭建好了环境,执行build编译helloworld例程,报ninja错误

我在windows11上刚配置完esp32编译环境(使用powershell方案),之后进行测试发现编译helloworld例程时报ninja错误; 我的编译环境配置是这样的: 1. git clone esp-idf project 2. git checkout v5.0.1 3. 打开powershell,运行./install.bat 4. 运行 ./export.ps1 导入环境变量 5. 进入helloworld例程目录 相对路径为“esp-idf\examples\get-started\hello_world” 6. 运行 idf.py build之后ninja报错,报错信息如...
by jaffer
Mon Feb 27, 2023 11:32 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32 IDF如何查看项目内的组件
Replies: 2
Views: 958

ESP32 IDF如何查看项目内的组件

开发环境: vscode + IDF (ubuntu 20.04)

IDF版本:V5.0


问题描述:

如何查看工程项目内已经存在的组件?

由于在创建自己组件的时候,如何不小心与工程内已有的组件名重复,将会导致组件被覆盖,因此需要查看工程内已有的组件名有哪些。

根据IDF编程指南内的描述,COMPONENT_DIRS:组件的搜索目录;COMPONENTS:要构建进项目中的组件名称列表。因此我在项目的CMakeLists.txt内增加打印,将上述两个变量打印出来,但是打印出来的是空值。

2023-02-27_19-30.png
2023-02-27_19-30.png (184.12 KiB) Viewed 958 times