mavsdk wont build for voxl2
-
Hello all, I have been trying to get mavsdk to build for my voxl2 but have not had any luck.
I keep getting this error when trying to build:
~/voxl-docker-mavsdk$ ./build.sh qrb5165 Image: voxl-mavsdk:v1.2 Checking for docker support on parent computer to build tar voxl mavsdk -> Docker support is running on target. Continuing to build! Waiting for voxl device... Checking for docker support on modalAI device -> Docker support is running on target. Building image: voxl-mavsdk:v1.2 [+] Building 0.5s (2/2) FINISHED docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.17kB 0.0s => ERROR [internal] load metadata for docker.io/arm64v8/ubuntu:focal 0.5s ------ > [internal] load metadata for docker.io/arm64v8/ubuntu:focal: ------ Dockerfile:1 -------------------- 1 | >>> FROM arm64v8/ubuntu:focal 2 | 3 | WORKDIR /home -------------------- ERROR: failed to solve: arm64v8/ubuntu:focal: failed to resolve source metadata for docker.io/arm64v8/ubuntu:focal: no match for platform in manifest: not found``` I have followed the README but still haven't figured out whats going on. I am able to build the older mavsdk-python docker just fine however.
-
Hi @Gary-Holmgren. This is likely because you're running the build script from an x86 system (docker requires that you build on the same architecture as the base image, in this case arm64). You can solve that by cloning the repo onto the voxl and running build.sh from there.
Note: make sure your voxl has a wifi connection before running ./build.sh.