我有一个平台项目。我想在特定提交中包含一个库。
所以,我使用了platformio的命令行界面:
platformio lib --storage-dir lib install https://github.com/th0br0/iota.lib.c.git#fd193af198628759da39cf6a930fa352c012ba4b
这很好用。我现在可以通过以下方式包含库:
#include <iota/iota.h>
但是这个库也有依赖关系,这些依赖关系没有得到解决。因此,我还导入了依赖项的依赖项:
platformio lib --storage-dir lib install https://github.com/th0br0/ccurl.git#c8cd1f87def10ebf0f31483dcc42c3b95473c982
与其他库相比,我无法通过以下方式包含此库
#include <curl.h>
当我部署我的项目时,我看到第二个库不会包含在构建项目中
Library Dependency Graph ( [BITLY_LINK] )
|-- <iota.lib.c> #31d0a89
|-- <avr-enc28j60>
[BITLY_LINK] 品脱到http://docs.platformio.org/en/latest/librarymanager/ldf.html
我的 CMakeLists:https ://pastebin.com/eeY756SN
我的 CMakeListsPrivate:https ://pastebin.com/14W23BxZ
我在 CMakeListsPrivate 中包含以下内容:
include_directories("$ENV{HOME}/git/c/BlinkExample/lib/iota.lib.c/external/ccurl/src/lib")
我的 IDE 现在可以找到 curl.h,但我仍然收到编译器错误。
src/main.c:7:18: fatal error: curl.h: No such file or directory