Open erikbosch opened 1 month ago
As of today it is not that well described how to cross-compile. Do we need to improve that?
Using --platform seems to work
--platform
docker build -f app/Dockerfile --progress=plain --platform=linux/arm64 -t ex5:latest .
We also have a build script, but not really well described how to actively use it (in a devcontainer)
apt-get install g++-aarch64-linux-gnu ./install_dependencies.sh -x aarch64 ./build.sh -x aarch64
apt-get install g++-aarch64-linux-gnu
./install_dependencies.sh -x aarch64
./build.sh -x aarch64
Question
As of today it is not that well described how to cross-compile. Do we need to improve that?
Example 1: Doing a docker build
Using
--platform
seems to workdocker build -f app/Dockerfile --progress=plain --platform=linux/arm64 -t ex5:latest .
Example 2: Using build script
We also have a build script, but not really well described how to actively use it (in a devcontainer)
apt-get install g++-aarch64-linux-gnu
./install_dependencies.sh -x aarch64
./build.sh -x aarch64