You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
pfink
added a commit
to pfink/openmilight_pi
that referenced
this issue
Dec 31, 2020
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 :
The text was updated successfully, but these errors were encountered: