mavlink / qgc-dev-guide

QGroundControl Developers Guide
https://dev.qgroundcontrol.com/en/
Other
42 stars 51 forks source link

Doc Bug: Build using Containers · QGroundControl Developer Guide #154

Closed ljustice-riis closed 2 years ago

ljustice-riis commented 2 years ago

Following the instructions here on a Mac with an M1 chip fails. Recommending a note about adding the --platform linux/x86_64 argument when building the docker image. See: https://stackoverflow.com/questions/68630526/lib64-ld-linux-x86-64-so-2-no-such-file-or-directory-error

Bug Page: Build using Containers · QGroundControl Developer Guide

hamishwillee commented 2 years ago

Thanks - sounds reasonable! What's the error you see? /lib64/ld-linux-x86-64.so.2: No such file or directory?

ljustice-riis commented 2 years ago

Correct. Here's the full error I was seeing.

> docker run --rm -v ${PWD}:/project/source -v ${PWD}/build:/project/build qgc-linux-docker
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

Rebuilding with the following solved the issue:

docker build --platform linux/x86_64 --file ./deploy/docker/Dockerfile-build-linux -t qgc-linux-docker .
hamishwillee commented 2 years ago

Thanks. I'll look at adding this tomorrow.