APS
APS

Reputation: 59

cmocka.h: No such file or directory though cmocka installed -- IBM watson embedded C Client Library

I'm trying to compile Embedded C Client Library example for IBM watson.

I'm referring to https://github.com/ibm-watson-iot/iot-embeddedc for instructions.

While compiling I'm getting error as cmocka.h not found. I copied cmocka.h file manually to /home/amruta/iot-embeddedc/test but still getting same error.

Path of cmocka.h :

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

path of test_gatewayclient.c :

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

Build path :

/home/amruta/iot-embeddedc/build

Error :

[ 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

Upvotes: 0

Views: 685

Answers (0)

Related Questions