mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
add pkg-config and some configuration to Dockerfile.Rpi to allow cross-compilation
This commit is contained in:
parent
e1e8f60628
commit
303037a7c9
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,7 @@ RUN apt-get update
|
||||||
|
|
||||||
RUN apt-get install -y curl git build-essential crossbuild-essential-armhf
|
RUN apt-get install -y curl git build-essential crossbuild-essential-armhf
|
||||||
RUN apt-get install -y libasound2-dev libasound2-dev:armhf
|
RUN apt-get install -y libasound2-dev libasound2-dev:armhf
|
||||||
|
RUN apt-get install -y pkg-config
|
||||||
|
|
||||||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
ENV PATH="/root/.cargo/bin/:${PATH}"
|
ENV PATH="/root/.cargo/bin/:${PATH}"
|
||||||
|
@ -35,9 +36,12 @@ RUN mkdir /.cargo && \
|
||||||
RUN mkdir /build
|
RUN mkdir /build
|
||||||
ENV CARGO_TARGET_DIR /build
|
ENV CARGO_TARGET_DIR /build
|
||||||
ENV CARGO_HOME /build/cache
|
ENV CARGO_HOME /build/cache
|
||||||
|
ENV PKG_CONFIG_PATH /usr/lib/arm-linux-gnueabihf/pkgconfig/
|
||||||
|
ENV PKG_CONFIG_ALLOW_CROSS 1
|
||||||
|
|
||||||
ADD . /src
|
ADD . /src
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
RUN cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features "alsa-backend"
|
RUN cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features "alsa-backend"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue