Cross-compiling on ubuntu x86_64 to darwin amd64 fails with error in output.go and clang
Closed this issue · 4 comments
andrewl commented
`GOOS=darwin GOARCH=amd64=1 go build -o go-librespot-daemon ./cmd/daemon
go-librespot/output
output/output.go:8:3: undefined: output
output/output.go:56:14: undefined: newOutput
runtime/cgo
clang: error: argument unused during compilation: '-arch x86_64' [-Werror,-Wunused-command-line-argument]
`
devgianlu commented
There is no output driver available for Darwin. Only ALSA is currently supported.
andrewl commented
Ah, that's a shame - was hoping to get spotify output on an old 2009 macbook. Thanks for the quick response.
devgianlu commented
The output driver for Windows is also not supported, but that one at least I can test. The MacOS one seems a bit of a nightmare. If you wanted to try and implement it yourself you can get insipiration from oto.
tooxo commented