M17-Project / m17-tools

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

Changes to allow compilation on macOS (Try #3) #27

Closed vk1kcm closed 5 months ago

vk1kcm commented 5 months ago

Attempt #3. Apologies for the request spam.

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 under Sonoma, but it should be fine on an older x64 Macs as well.

Fixed the windows build breakage (due to having an unneeded library define)