alsora / ros2-ORB_SLAM2

ROS2 node wrapping the ORB_SLAM2 library
GNU General Public License v3.0
130 stars 30 forks source link

docker build error #21

Open jiyooonp opened 2 months ago

jiyooonp commented 2 months ago

Hello, I was trying to build the dockerfile but encountered this error.

`6.618 | ^~~~~~ 18.68 [100%] Linking CXX shared library ../lib/libg2o.so 18.79 [100%] Built target g2o 18.80 Uncompress vocabulary ... 19.44 Configuring and building ORB_SLAM2 ... 19.51 -- The C compiler identification is GNU 9.4.0 19.58 -- The CXX compiler identification is GNU 9.4.0 19.58 -- Check for working C compiler: /usr/bin/cc 19.67 -- Check for working C compiler: /usr/bin/cc -- works 19.67 -- Detecting C compiler ABI info 19.76 -- Detecting C compiler ABI info - done 19.77 -- Detecting C compile features 19.77 -- Detecting C compile features - done 19.77 -- Check for working CXX compiler: /usr/bin/c++ 19.86 -- Check for working CXX compiler: /usr/bin/c++ -- works 19.86 -- Detecting CXX compiler ABI info 19.96 -- Detecting CXX compiler ABI info - done 19.97 -- Detecting CXX compile features 19.97 -- Detecting CXX compile features - done 19.97 Build type: Release 19.97 -- Performing Test COMPILER_SUPPORTS_CXX11 20.08 -- Performing Test COMPILER_SUPPORTS_CXX11 - Success 20.08 -- Performing Test COMPILER_SUPPORTS_CXX0X 20.18 -- Performing Test COMPILER_SUPPORTS_CXX0X - Success 20.18 -- Using flag -std=c++11. 20.20 CMake Error at CMakeLists.txt:35 (message): 20.20 OpenCV > 2.4.3 not found. 20.20 20.20 20.20 -- Configuring incomplete, errors occurred! 20.20 See also "/root/ORB_SLAM2/build/CMakeFiles/CMakeOutput.log". 20.21 make: No targets specified and no makefile found. Stop. 20.21 make: No rule to make target 'install'. Stop.

Dockerfile:94

93 | RUN chmod +x $HOME/scripts/build.sh 94 | >>> RUN /bin/bash -c 'export LD_LIBRARY_PATH=~/Pangolin/build/src/:$LD_LIBRARY_PATH; \ 95 | >>> bash $HOME/scripts/build.sh' 96 |

ERROR: failed to solve: process "/bin/bash -c /bin/bash -c 'export LD_LIBRARY_PATH=~/Pangolin/build/src/:$LD_LIBRARY_PATH; bash $HOME/scripts/build.sh'" did not complete successfully: exit code: 2 ` Could you help me with this? Thank you