0

我正在尝试为 IBM watson 编译嵌入式 C 客户端库示例。

我指的是https://github.com/ibm-watson-iot/iot-embeddedc以获取说明。

编译时出现cmocka.h未找到的错误。cmocka.h我手动将文件复制到/home/amruta/iot-embeddedc/test但仍然出现相同的错误。

cmocka.h 的路径:

/home/amruta/cmocka-1.1.0/include/cmocka.h

test_gatewayclient.c 的路径:

/home/amruta/iot-embeddedc/test/test_gatewayclient.c

构建路径:

/home/amruta/iot-embeddedc/build

错误 :

[ 81%] Building C object test/CMakeFiles/test_gatewayclient.dir/test_gatewayclient.c.o
/home/amruta/iot-embeddedc/test/test_gatewayclient.c:5:20: fatal error: cmocka.h: No such file or directory
compilation terminated.
test/CMakeFiles/test_gatewayclient.dir/build.make:62: recipe for target 'test/CMakeFiles/test_gatewayclient.dir/test_gatewayclient.c.o' failed
make[2]: *** [test/CMakeFiles/test_gatewayclient.dir/test_gatewayclient.c.o] Error 1
CMakeFiles/Makefile2:96: recipe for target 'test/CMakeFiles/test_gatewayclient.dir/all' failed
make[1]: *** [test/CMakeFiles/test_gatewayclient.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
4

0 回答 0