ethz-asl / kalibr

The Kalibr visual-inertial calibration toolbox
Other
4.28k stars 1.39k forks source link

exec /bin/sh: exec format error #567

Closed zoldaten closed 1 year ago

zoldaten commented 1 year ago

hi! i`m trying to build docker on raspberry pi( ubuntu Release: 20.04 Linux version 5.4.0-1015-raspi (buildd@bos02-arm64-074) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #15-Ubuntu SMP Fri Jul 10 05:34:24 UTC 2020) and crash at step 2/7:

Step 2/7 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive         apt-get install -y      git wget autoconf automake nano    python3-dev python3-pip python3-scipy python3-matplotlib        ipython3 python3-wxgtk4.0 python3-tk python3-igraph        libeigen3-dev libboost-all-dev libsuitesparse-dev  doxygen         libopencv-dev   libpoco-dev libtbb-dev libblas-dev liblapack-dev libv4l-dev        python3-catkin-tools python3-osrf-pycommon
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in ad35f7b62fd9
exec /bin/sh: exec format error
The command '/bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive        apt-get install -y git wget autoconf automake nano         python3-dev python3-pip python3-scipy python3-matplotlib  ipython3 python3-wxgtk4.0 python3-tk python3-igraph      libeigen3-dev libboost-all-dev libsuitesparse-dev  doxygen         libopencv-dev   libpoco-dev libtbb-dev libblas-dev liblapack-dev libv4l-dev        python3-catkin-tools python3-osrf-pycommon' returned a non-zero code: 1

i tried to add to docker file a first line: #!/bin/sh but i didnt help.

how to go proceed building ?

goldbattle commented 1 year ago

It looks like you are trying to build on a amd64 platform. I don't know if docker can do this.

zoldaten commented 1 year ago

i have built from source without docker

gorghino commented 1 year ago

I had the same problem with my Jetson NX (arm64) and I changed the docker image in the Dockerfile

I used FROM arm64v8/ros:noetic