Closed lyneca closed 4 years ago
Hi!
So I think you're the first asking for cross compilation of alsa-sys, but I also maintain libdbus-sys which a few people have tried to cross compile, to the extend that I have written a guide here with their collected information. I see no reason why it shouldn't work as well for alsa-sys, just replace:
libdbus-1.so
with libasound.so
libdbus-1-dev
with libasound2-dev
...something like that. And we encountered the "absolute path" issue with libdbus as well, I think it was some file on the Raspberry pi rootfs that contained the absolute paths IIRC.
Linking off a rPi rootfs is such a great idea - thanks!
Closing due to inactivity, and because I think this is a general Rust cross-compile issue rather than an issue with this repository. Feel free to reopen (or start a new issue) if this is wrong.
I'm attempting to cross-compile a project onto Raspberry Pi. It has
alsa-sys
as a dependency, and the linker fails when trying to link inlibutil.so
. For some reason, it's pulling it from/usr/lib
instead of the ARM gcc library.In
target/arm-unknown-linux-gnueabihf/release/build/alsa-sys-2d409b6482724cb8/output
, this option is set:Changing this line to the following fixes the build:
(where
[pi build tools dir]
is the raspberry pi cross-compile build tools).I'm not very familiar with how Rust's build/compile system works - is this an issue with this repository?