esptool icon indicating copy to clipboard operation
esptool copied to clipboard

Compilation fails on FreeBSD

Open probonopd opened this issue 5 years ago • 1 comments

% go get github.com/fluepke/esptool
# github.com/fluepke/esptool/common/serial
go/src/github.com/fluepke/esptool/common/serial/ioctls.go:19:17: undefined: unix.TCSETS
go/src/github.com/fluepke/esptool/common/serial/serial_unix.go:95:17: undefined: unix.TCFLSH
go/src/github.com/fluepke/esptool/common/serial/serial_unix.go:119:12: undefined: unix.B500000
go/src/github.com/fluepke/esptool/common/serial/serial_unix.go:120:12: undefined: unix.B576000
go/src/github.com/fluepke/esptool/common/serial/serial_unix.go:122:12: undefined: unix.B1000000
go/src/github.com/fluepke/esptool/common/serial/serial_unix.go:123:12: undefined: unix.B1152000
go/src/github.com/fluepke/esptool/common/serial/serial_unix.go:124:12: undefined: unix.B1500000
go/src/github.com/fluepke/esptool/common/serial/serial_unix.go:125:12: undefined: unix.B2000000
go/src/github.com/fluepke/esptool/common/serial/serial_unix.go:126:12: undefined: unix.B2500000
go/src/github.com/fluepke/esptool/common/serial/serial_unix.go:127:12: undefined: unix.B3000000
go/src/github.com/fluepke/esptool/common/serial/serial_unix.go:127:12: too many errors

probonopd avatar Jan 13 '21 01:01 probonopd

Yeah, I've not figured out, how to perform the required ioctls and set high baudrates with FreeBSD as I mostly run Linux.

Maybe you can improve my serial / termios implementation, that works cross platform?

Fluepke avatar Feb 02 '21 20:02 Fluepke