lib60870 icon indicating copy to clipboard operation
lib60870 copied to clipboard

Linker issues on MacOS

Open matnick opened this issue 5 years ago • 2 comments

When running "make" on MacOS Catalina (and prior), which are "BSD", on final stages of build process, linker fails with messages: image

The problem is that there is no "serial port HAL" library for BSD: image

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.

matnick avatar Nov 01 '19 22:11 matnick

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.

mzillgith avatar Nov 08 '19 10:11 mzillgith

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) :)

matnick avatar Dec 04 '19 14:12 matnick