nirenjan / libx52

Saitek X52/X52pro drivers & controller mapping software for Linux
https://nirenjan.github.io/libx52
GNU General Public License v2.0
115 stars 14 forks source link

Compiling for macOS #9

Closed ryandrake08 closed 8 years ago

ryandrake08 commented 8 years ago

Excellent library! Despite having -linux in its name, I found this software to work beautifully on macOS as well with a single change: Apple does not have ELIBACC, so you need to ./configure with -DELIBACC=EINVAL (or whatever error code you want to use that macOS supports). Other than that, it works! Feel free to conditionalize the use of ELIBACC on Linux or don't bother since the workaround is trivial.

Mange commented 8 years ago

(Don't mind me. I didn't look at the repo name and accidentally though this was on another project that I maintain. It was completely unrelated to this repo and I apologize for it. Comment has been removed.)

nirenjan commented 8 years ago

@ryandrake08, would you be willing to raise a PR for this? I haven't really tried to run this on OSX, so any help would be appreciated. I do think I want to translate the libusb error code into a standard errno.

ryandrake08 commented 8 years ago

Please review: https://github.com/nirenjan/x52pro-linux/pull/10