eclipse-velocitas / vehicle-app-cpp-template

Vehicle App template for C++
Apache License 2.0
7 stars 5 forks source link

[Q]: Shall cross-compilation usage be documented #107

Open erikbosch opened 1 month ago

erikbosch commented 1 month ago

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 work

docker 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