Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-compiling on ubuntu x86_64 to darwin amd64 fails with error in output.go and clang #52

Closed
andrewl opened this issue Jul 25, 2024 · 4 comments

Comments

@andrewl
Copy link

andrewl commented Jul 25, 2024

`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
Copy link
Owner

There is no output driver available for Darwin. Only ALSA is currently supported.

@andrewl
Copy link
Author

andrewl commented Jul 25, 2024

Ah, that's a shame - was hoping to get spotify output on an old 2009 macbook. Thanks for the quick response.

@devgianlu
Copy link
Owner

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.

@devgianlu devgianlu closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2024
@tooxo
Copy link
Contributor

tooxo commented Aug 12, 2024

Ah, that's a shame - was hoping to get spotify output on an old 2009 macbook. Thanks for the quick response.

If you are still interested, I just put up a PR implementing macos audio, it would be very helpful if you could test it on your device, and maybe provide some kind of feedback! @andrewl #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants