-
Notifications
You must be signed in to change notification settings - Fork 15
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
Compiling on OSX #20
Comments
Hello, It shold be possible to port the program to MacOSX. As I don't have a mac I can't really support you. Just getting it to compile will not be enough. The serial port code also needs to be adapted. |
I just did some searches; it might just work, if you add
to the top of SerialPort.cpp. However, I am pretty certain that the "port autodetection" won't work. So you certainly will need to specify the Please try the "libgen.h" and tell if its working. |
I just pushed some changes, please pull the latest source and try again. |
Thanks for following up. Even after adding libgen.h, it's not compiling: SerialPort.cpp:22:2: error: Unsupported Platform. Please file a bug report with details about your compiler and platform Also, I think unrelatedly, I get a number of warnings similar to this: |
Oh I see. I made a typo in the ifdef, please try again with the version I just pushed. |
Here's what my compiler reports: Sorry for the delay. Let me know what else I can do to help. |
Did you try a recent version of my code? I made some "wishful thinking" fixes. |
If you can spare some time, there would be a topic where you could support me: Travis CI, the continuous testing I use here, allows to compile and test for macos. http://docs.travis-ci.com/user/osx-ci-environment/ Can you investigate how to build and test linux+macos? |
I will take a look and at Travis and see what I can find. Btw, I tried compiling your latest commit. Here's a snippet of what I get: ./SerialPortMacOSX.inc:54:3: warning: serial port enumeration not yet implemented for Mac OS X [-W#warnings] |
Please try
|
It compiles! I don't have my watch sync cable on me, so will need to test later. Right now I'm getting a serial port autodetection error (no surprise), but at least it now compiles and runs. |
Perfect. I will add the #include to the mainline source tomorrow. Thank you for keeping me posted |
No luck... The error message comes after hanging for maybe 2-3 minutes. Seems like a timeout message. FWIW, I have a New Balance NX 990. GPSMaster has been compatible with it, including the Mac version I stumbled upon. However, none of the GPSMaster versions seem to export heart rate when there's little/no GPS data. |
Any suggestions on whether it would be possible to compile this for Mac? I get this error while doing make.
SerialPort.cpp:176:34: error: use of undeclared identifier 'basename'
std::string driver = basename(link.c_str());
The text was updated successfully, but these errors were encountered: