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

Unable to build in linux - undefined: driver in [email protected] #98

Open
duysqubix opened this issue Oct 11, 2023 · 0 comments
Open

Comments

@duysqubix
Copy link
Contributor

I've been using your library pretty successfully on OSX, but when I tried to cross compile for Linux I ran into the following error on build:

$ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build
# github.com/hajimehoshi/oto
/go/pkg/mod/github.com/hajimehoshi/[email protected]/context.go:120:18: undefined: driver

I tried to make the most minimal example and found it with the 1-hello-world/a tutorial. Here is a reproduction gist that will run it both locally and in the golang:1.13 container.

$ make
Running locally
GOOS=linux GOARCH=amd64 go build
# github.com/hajimehoshi/oto
../../go/pkg/mod/github.com/hajimehoshi/[email protected]/context.go:120:18: undefined: driver
make[1]: *** [local] Error 2
make: [default] Error 2 (ignored)
Running in Docker
docker run --rm -v`pwd`:/src -w /src -e CGO_ENABLED=0 golang:1.13 go build
go: downloading github.com/faiface/beep v1.0.2
go: extracting github.com/faiface/beep v1.0.2
go: downloading github.com/hajimehoshi/oto v0.3.1
go: downloading github.com/pkg/errors v0.8.1
go: downloading github.com/hajimehoshi/go-mp3 v0.1.1
go: extracting github.com/pkg/errors v0.8.1
go: extracting github.com/hajimehoshi/oto v0.3.1
go: extracting github.com/hajimehoshi/go-mp3 v0.1.1
go: finding github.com/faiface/beep v1.0.2
go: finding github.com/hajimehoshi/oto v0.3.1
go: finding github.com/hajimehoshi/go-mp3 v0.1.1
go: finding github.com/pkg/errors v0.8.1
# github.com/hajimehoshi/oto
/go/pkg/mod/github.com/hajimehoshi/[email protected]/context.go:120:18: undefined: driver
make[1]: *** [docker] Error 2
make: [default] Error 2 (ignored)

Original issue: faiface/beep#74

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

1 participant