Build failed on Ubuntu 22.04 and ros2 humble
astronaut71 opened this issue · comments
astronaut71 commented
Hi
I have Ubuntu.22.04 and ros2 humble. Tried to build the ORB_SLAM2 then got this error.
=> [internal] load build context 0.0s
=> => transferring context: 106B 0.0s
=> CACHED [ 2/23] WORKDIR /root 0.0s
=> CACHED [ 3/23] COPY scripts /root/scripts 0.0s
=> CACHED [ 4/23] RUN apt-get update && apt-get install -y wget curl git vim nano python-dev python3-pip 0.0s
=> CACHED [ 5/23] WORKDIR /root 0.0s
=> CACHED [ 6/23] WORKDIR /root 0.0s
=> CACHED [ 7/23] RUN git clone https://github.com/raulmur/ORB_SLAM2.git 0.0s
=> CACHED [ 8/23] RUN apt-get install -y libboost-system-dev 0.0s
=> CACHED [ 9/23] WORKDIR /root/ORB_SLAM2 0.0s
=> CACHED [10/23] RUN git apply /root/scripts/orbslam.patch 0.0s
=> CACHED [11/23] RUN chmod +x /root/scripts/build.sh 0.0s
=> ERROR [12/23] RUN /bin/bash -c 'export LD_LIBRARY_PATH=~/Pangolin/build/src/:$LD_LIBRARY_PATH; bash $HOME/scripts/build.sh' 3.0s
------
> [12/23] RUN /bin/bash -c 'export LD_LIBRARY_PATH=~/Pangolin/build/src/:$LD_LIBRARY_PATH; bash $HOME/scripts/build.sh':
#0 1.043 Configuring and building Thirdparty/DBoW2 ...
#0 1.058 /root/scripts/build.sh: line 6: cmake: command not found
#0 1.066 make: *** No targets specified and no makefile found. Stop.
#0 1.067 Configuring and building Thirdparty/g2o ...
#0 1.071 /root/scripts/build.sh: line 15: cmake: command not found
#0 1.076 make: *** No targets specified and no makefile found. Stop.
#0 1.076 Uncompress vocabulary ...
#0 2.702 Configuring and building ORB_SLAM2 ...
#0 2.705 /root/scripts/build.sh: line 30: cmake: command not found
#0 2.706 make: *** No targets specified and no makefile found. Stop.
#0 2.708 make: *** No rule to make target 'install'. Stop.
------
Dockerfile:59
--------------------
58 | RUN chmod +x $HOME/scripts/build.sh
59 | >>> RUN /bin/bash -c 'export LD_LIBRARY_PATH=~/Pangolin/build/src/:$LD_LIBRARY_PATH; \
60 | >>> bash $HOME/scripts/build.sh'
61 |
--------------------
ERROR: failed to solve: process "/bin/sh -c /bin/bash -c 'export LD_LIBRARY_PATH=~/Pangolin/build/src/:$LD_LIBRA
Any help?