M17-Project / m17-tools

A set of M17 tools
GNU General Public License v3.0
29 stars 3 forks source link

Change to make it compile on MacOS #25

Closed vk1kcm closed 5 months ago

vk1kcm commented 5 months ago

macOS doesn't use .so libraries, so had to change the cmake to point to the .dylib instead. Also macOS doesn't have /proc/serial/drivers so added an overly simple directory enumeration for /dev/cu.* devices so it can find macOS serial ports.

It compiles and runs, and things seem to happen. I'm not sure it's working properly, but at least others can test on macOS if anyone cares.

This is the first time I've touched C++ so...

Oh, work done on an M1 Mac MacBook Pro, but it should be fine on an older x64 Mac as well.

vk1kcm commented 5 months ago

Updated the readme as well, so see the later pull request.