cn-uofbasel / ccn-lite

CCN-lite, a lightweight implementation of the CCNx protocol and its variations
ISC License
74 stars 63 forks source link

cmocka.h cannot be found #299

Closed mfrey closed 6 years ago

mfrey commented 6 years ago

User @ericxiao77 reported an issue on compiling tests for ccn-lite. A snippet from the shell output

[ 95%] Building C object test/ccnl-core/CMakeFiles/test_interest.dir/test_interest.c.o
/home/pi0/ccn-lite/test/ccnl-core/test_interest.c:4:20: fatal error: cmocka.h: 
No such file or directory compilation terminated.
test/ccnl-core/CMakeFiles/test_interest.dir/build.make:62: recipe for target 
'test/ccnl-core/CMakeFiles/test_interest.dir/test_interest.c.o' failed
make[2]: *** [test/ccnl-core/CMakeFiles/test_interest.dir/test_interest.c.o] Error 1
CMakeFiles/Makefile2:985: recipe for target
 'test/ccnl-core/CMakeFiles/test_interest.dir/all' failed
make[1]: *** [test/ccnl-core/CMakeFiles/test_interest.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
mfrey commented 6 years ago

fatal error: cmocka.h: No such file or directory compilation terminated.

@ericxiao77 have you installed cmocka on your system?

ericxiao77 commented 6 years ago

I checked the system and did not install cmocka, now I build properly.I am a newcomer to ccn-lite, thank you for your patience and your help!

mfrey commented 6 years ago

I checked the system and did not install cmocka, now I build properly.I am a newcomer to ccn-lite, thank you for your patience and your help!

No worries!