The repo you ask to compile to use openmilight_pi is deprecated.
It was replaced by https://github.com/mysensors/MySensors.git. (cf. this tutorial).
Thus far I installed mysensors using this tutorial (I wasn't able to build the Raspberry previous version) and I get the following output when building openmilitght_pi :
# make
g++ -c -Wall -o openmilight.o openmilight.cpp
openmilight.cpp: In function 'void fade(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
openmilight.cpp:123:17: error: 'usleep' was not declared in this scope
usleep(20000);
^
openmilight.cpp: In function 'void strobe(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
openmilight.cpp:132:17: error: 'usleep' was not declared in this scope
usleep(50000);
^
openmilight.cpp: In function 'int main(int, char**)':
openmilight.cpp:504:40: error: 'getopt' was not declared in this scope
while((c = getopt(argc, argv, options)) != -1){
^
openmilight.cpp:529:23: error: 'optarg' was not declared in this scope
tmp = strtoll(optarg, NULL, 10);
^~~~~~
openmilight.cpp:565:12: error: 'optopt' was not declared in this scope
if(optopt == 'n' || optopt == 'p' || optopt == 'q' ||
^~~~~~
make: *** [Makefile:14: openmilight.o] Error 1
Thanks for your feedback. The compile issues should be resolved by including unistd.h explicitly. I'll have a look at the updated MySensors if I continue this project at some point.
Hello,
The repo you ask to compile to use openmilight_pi is deprecated. It was replaced by
https://github.com/mysensors/MySensors.git
. (cf. this tutorial).Thus far I installed mysensors using this tutorial (I wasn't able to build the Raspberry previous version) and I get the following output when building openmilitght_pi :