Not building tarm/serial
Closed this issue · 4 comments
saulshanabrook commented
For some reason, when I try to build my package, the dependency on tarm/serial causes it to fail:
$ goxc
[goxc:go-vet] 2015/06/27 23:49:29 Task go-vet succeeded
ok github.com/lucibus/subicul 0.992s
? github.com/lucibus/subicul/contextutils [no test files]
? github.com/lucibus/subicul/output [no test files]
ok github.com/lucibus/subicul/parse 0.008s
? github.com/lucibus/subicul/websocketserver [no test files]
[goxc:go-test] 2015/06/27 23:49:31 Task go-test succeeded
[goxc:go-install] 2015/06/27 23:49:31 Task go-install succeeded
[goxc:xc] 2015/06/27 23:49:31 Parallelizing xc for 22 platforms, using max 7 of 8 processors
# github.com/tarm/serial
../../tarm/serial/serial.go:94: undefined: Port
../../tarm/serial/serial.go:95: undefined: openPort
# github.com/tarm/serial
../../tarm/serial/serial.go:94: undefined: Port
../../tarm/serial/serial.go:95: undefined: openPort
# github.com/tarm/serial
../../tarm/serial/serial.go:94: undefined: Port
../../tarm/serial/serial.go:95: undefined: openPort
[goxc:xc] 2015/06/27 23:49:32 'go' returned error: Wait error: exit status 2: # github.com/tarm/serial
../../tarm/serial/serial.go:94: undefined: Port
../../tarm/serial/serial.go:95: undefined: openPort
[goxc:xc] 2015/06/27 23:49:32 Error: Wait error: exit status 2: # github.com/tarm/serial
../../tarm/serial/serial.go:94: undefined: Port
../../tarm/serial/serial.go:95: undefined: openPort
...lots more of the same
any ideas?
saulshanabrook commented
When I run goxc -bc="linux,windows,386"
it does succeed however.
saulshanabrook commented
I realized it only has options to build on a few platforms, so goxc -bc="linux windows darwin,amd64"
ended up being what i needed.
laher commented
Sweet as.
You can save yourself the effort of typing that each time.
Use this to create a config file called '.goxc.json':
goxc -wc -bc="linux windows darwin,amd64"
And then you can just type goxc
in future
saulshanabrook commented
@laher 👍 thanks so much the sweet tool.