esp-idf v4.1 SDK使用cjson时编译报错
Posted: Tue Mar 09, 2021 9:50 am
你好,最近准备从ESP-IDF V3.3迁移到V4.1,现在添加了cJSON后,工程编译不过去,我查看了SDK中是有这个component的,我在工程中也添加了头文件,但不知道为何编译不过去,麻烦帮忙看一下是什么问题,万分感激!
附上报错log:
../components/tcp_handle/tcp_handle.c:22:10: fatal error: cJSON.h: No such file or directory
#include "cJSON.h"
^~~~~~~~~
compilation terminated.
[5/12] Building C object esp-idf/components/CMakeFiles/__idf_components.dir/ir_handle/app_ir_tx.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
附上报错log:
../components/tcp_handle/tcp_handle.c:22:10: fatal error: cJSON.h: No such file or directory
#include "cJSON.h"
^~~~~~~~~
compilation terminated.
[5/12] Building C object esp-idf/components/CMakeFiles/__idf_components.dir/ir_handle/app_ir_tx.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1