Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysensors/Raspberry.git deprecated #1

Open
vmonteco opened this issue Dec 3, 2016 · 1 comment
Open

mysensors/Raspberry.git deprecated #1

vmonteco opened this issue Dec 3, 2016 · 1 comment

Comments

@vmonteco
Copy link

vmonteco commented Dec 3, 2016

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 :

# 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
@bakkerr
Copy link
Owner

bakkerr commented Jan 17, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants