lib60870
lib60870 copied to clipboard
Linker issues on MacOS
When running "make" on MacOS Catalina (and prior), which are "BSD", on final stages of build process, linker fails with messages:
The problem is that there is no "serial port HAL" library for BSD:
But, if we just point to Linux library ./hal/serial/linux/serial_port_linux.c as a library to be used for BSD, it compiles and works perfectly.
Is this a bug or an upcoming feature? :)
We have switched to "submodule" of your library in our project, so we can't make those fixes any more. It's not a big problem since our working environment is 100% Linux, but it'd be great to have an opportunity to build and test on Mac sometimes.
Hi, the serial code is required when using the 101 protocol mode. If you don't use 101 you also don't need the code. I can just reference the linux code in the build for BSD - so the code will at least compile on BSD. Yet I am not sure if the Linux serial code also works on BSD/MacOS. We have not tested that.
I've successfuly built the project, using Linux serial library for Macos/BSD, so it should work (at least it'd be better than no serial library at all for Macos/BSD) :)