Skip to content

igorbernstein/crossbuild-spotifyd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crossbuild-spotifyd

Cross-compile the Rust Application spotifyd for the Raspberry Pi, using cross, multistrap.

This is the example repo for a blog post on capnfabs.net.

Checkout / Build instructions

These instructions assume you've already got Rust and Docker installed.

# Install cross (https://github.com/rust-embedded/cross)
cargo install cross

# Clone repo and spotifyd (pinned to a commit in a submodule)
git clone --recursive https://github.com/capnfabs/crossbuild-spotifyd
cd crossbuild-spotifyd

# Build and tag the docker container
docker build -t crossbuild:local .

# Switch into the spotifyd repo
cd spotifyd

# Tell Cross to use our new Docker container
echo -e '[target.armv7-unknown-linux-gnueabihf]\nimage = "crossbuild:local"' >> Cross.toml

# Build!
cross build --target=armv7-unknown-linux-gnueabihf --features=dbus_mpris

About

How to cross compile a rust project w/ linux system libraries for the raspberry pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 70.7%
  • Shell 29.3%