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

Closed
opened 2026-02-28 14:24:54 +03:00 by kerem · 4 comments
Owner

Originally created by @andrewl on GitHub (Jul 25, 2024).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/52

`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]
`

Originally created by @andrewl on GitHub (Jul 25, 2024). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/52 `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] `
kerem closed this issue 2026-02-28 14:24:54 +03:00
Author
Owner

@devgianlu commented on GitHub (Jul 25, 2024):

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

<!-- gh-comment-id:2251269852 --> @devgianlu commented on GitHub (Jul 25, 2024): There is no output driver available for Darwin. Only ALSA is currently supported.
Author
Owner

@andrewl commented on GitHub (Jul 25, 2024):

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

<!-- gh-comment-id:2251348565 --> @andrewl commented on GitHub (Jul 25, 2024): Ah, that's a shame - was hoping to get spotify output on an old 2009 macbook. Thanks for the quick response.
Author
Owner

@devgianlu commented on GitHub (Jul 26, 2024):

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.

<!-- gh-comment-id:2252611408 --> @devgianlu commented on GitHub (Jul 26, 2024): 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](https://github.com/ebitengine/oto).
Author
Owner

@tooxo commented on GitHub (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

<!-- gh-comment-id:2284301305 --> @tooxo commented on GitHub (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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#45
No description provided.