-
Notifications
You must be signed in to change notification settings - Fork 132
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
cannot find -lasound #129
Comments
Unfortunately it is hard or impossible to cross-compile Oto for other architectures due to Cgo. I have no idea about a good solution. |
@Cheb-design You need libasound/alsa-lib compiled for arm, you cannot link arm binary with x86_64 lib. Just compile alsa-lib with your arm gcc, and install in toolchain sysroot/lib directory. |
Thanks for idea! I'll try it |
@Cheb-design Did you have any success with the issue? I got absolutely the same error. |
Cross-compiling inside the docker container might help:
|
Let me close this. Feel free to reopen if you still have a question. |
Hi,
I use faiface/beep library with Oto under the hood. And everything is fine except cross compilation to arm machine.
Now I am trying to compile code on linux/amd64 virtual machine to linux/arm. I did so:
$ CC=arm-linux-gnueabi-gcc GOOS=linux GOARCH=arm CGO_ENABLED=1 go build hello.go
And output was:
I tried this both on virtual and stand alone xubuntu machines with the same error.
arm-linux-gnueabihf-gcc - the same error
libasound2-dev is installed and locally all works fine
GOARM setting has no any effect
Could you help please with this issue?
Best regards and thanks for great lib!
The text was updated successfully, but these errors were encountered: