slint
slint copied to clipboard
Add Dockerfile for arm-unknown-linux-gnueabihf
trafficstars
My plan was to make some application work on a pi zero w (first version not 2) but I ran into the issue that currently there is no docker image/docker file provided for arm-unknown-linux-gnueabihf .
So I decided easy I'll just copy the existing ones and adapt it. Turns out it's more difficult than I thought. My Dockerfile now looks like this:
FROM ghcr.io/cross-rs/arm-unknown-linux-gnueabihf:0.2.4
RUN dpkg --add-architecture armhf && \
apt-get update && \
apt-get install --assume-yes libfontconfig1-dev:armhf libxcb1-dev:armhf libxcb-render0-dev:armhf libxcb-shape0-dev:armhf libxcb-xfixes0-dev:armhf libxkbcommon-dev:armhf python3 \
libfontconfig1-dev \
clang
# libstdc++-10-dev:armhf
ENV PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig
Running: cross build --target arm-unknown-linux-gnueabihf --workspace --exclude slint-node --release I run into the following error:
/x-tools/arm-unknown-linux-gnueabihf/lib/gcc/arm-unknown-linux-gnueabihf/8.3.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: warning: libexpat.so.1, needed by /usr/lib/arm-linux-gnueabihf/libfontconfig.so, not found (try using -rpath or -rpath-link)
/x-tools/arm-unknown-linux-gnueabihf/lib/gcc/arm-unknown-linux-gnueabihf/8.3.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: warning: libXau.so.6, needed by /usr/lib/arm-linux-gnueabihf/libxcb.so, not found (try using -rpath or -rpath-link)
/x-tools/arm-unknown-linux-gnueabihf/lib/gcc/arm-unknown-linux-gnueabihf/8.3.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: warning: libXdmcp.so.6, needed by /usr/lib/arm-linux-gnueabihf/libxcb.so, not found (try using -rpath or -rpath-link)
/x-tools/arm-unknown-linux-gnueabihf/lib/gcc/arm-unknown-linux-gnueabihf/8.3.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: warning: libpng16.so.16, needed by /usr/lib/arm-linux-gnueabihf/libfreetype.so, not found (try using -rpath or -rpath-link)
/x-tools/arm-unknown-linux-gnueabihf/lib/gcc/arm-unknown-linux-gnueabihf/8.3.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: warning: libz.so.1, needed by /usr/lib/arm-linux-gnueabihf/libfreetype.so, not found (try using -rpath or -rpath-link)
I have tried adding the mentioned missing libraries but without success.