Cross compiling
#1640
Replies: 1 comment 3 replies
-
|
Did you also set the executable flag on the binary ( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Instead of building librespot directly on my Pi4, @pejobo suggested in #1623 that I might want to try cross compiling instead (thanks!). I figured I would give it a shot, so I followed the instructions in COMPILING.md, installed Docker, and then followed the cross compiling instructions. Everything seemed to work as intended, and I ended up with the expected folders in
/tmp/librespot-build/. Great!Unfortunately at this point I'm not sure what to do next, and/or what I'm doing wrong. I tried copying the aarch64 binary to my Pi4 and using it the same way I use the binary created after running
cargo install librespot, but this didn't work (aftercargo installfinishes, I copy the binary to /usr/local/bin/ and set permissions so snapserver can access it). I rancargo install librespoton the Pi directly and everything worked as usual.I imagine I'm missing something simple or obvious, but I'm not sure what. Any help would be greatly appreciated!
I'm also wondering whether it was necessary to follow the COMPILING.md instructions before running the Docker commands for cross compiling. I assumed so, but I wasn't sure.
If I can get this working, I'm happy to write up the steps I took. It was quite a bit faster to compile librespot on my desktop vs. the Pi4, though it only takes about 20 minutes on the Pi, which I don't mind.
Beta Was this translation helpful? Give feedback.
All reactions