goburrow / serial

Go (golang) serial library for modbus
https://github.com/goburrow/modbus
MIT License
191 stars 90 forks source link

Cant cross compile from Linux to Freebsd #7

Closed tuzkov closed 7 years ago

tuzkov commented 7 years ago

Hello! I use github.com/goburrow/modbus in my project and when I try to compile project to FreeBSD -

# github.com/goburrow/serial
../github.com/goburrow/serial/serial.go:43: undefined: New

Can you help me please?

Thank you for help!

nqv commented 7 years ago

I've added an initial support for BSD. You should be able to cross compile to FreeBSD now, but I haven't checked if it will work properly as I never use BSD, sorry. Anyway, I will make the modbus library the ability to choose other serial libraries - which might fully support all features you need.

tuzkov commented 7 years ago

Thank you very much! It helps.