Open sumanthumesh opened 5 years ago
I went ahead and added the following lines to the home/$USER/bashrc file Wen i tried to build it again I got the following result
xt18t004@godavari:~/ORB_SLAM2$ ./build.sh Configuring and building Thirdparty/DBoW2 ... mkdir: cannot create directory ‘build’: File exists CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find CUDA: Found unsuitable version "10.0", but required is exact version "9.0" (found /usr/local/cuda) Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:386 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.5/Modules/FindCUDA.cmake:949 (find_package_handle_standard_args) /usr/local/share/OpenCV/OpenCVConfig.cmake:86 (find_package) /usr/local/share/OpenCV/OpenCVConfig.cmake:105 (find_host_package) CMakeLists.txt:27 (find_package)
-- Configuring incomplete, errors occurred! See also "/home/xt18t004/ORB_SLAM2/Thirdparty/DBoW2/build/CMakeFiles/CMakeOutput.log". See also "/home/xt18t004/ORB_SLAM2/Thirdparty/DBoW2/build/CMakeFiles/CMakeError.log". make: No targets specified and no makefile found. Stop. Configuring and building Thirdparty/g2o ... mkdir: cannot create directory ‘build’: File exists -- BUILD TYPE:Release -- Compiling on Unix -- Configuring done -- Generating done -- Build files have been written to: /home/xt18t004/ORB_SLAM2/Thirdparty/g2o/build [100%] Built target g2o Uncompress vocabulary ... Configuring and building ORB_SLAM2 ... -- The C compiler identification is GNU 5.5.0 -- The CXX compiler identification is GNU 5.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done Build type: Release -- Performing Test COMPILER_SUPPORTS_CXX11 -- Performing Test COMPILER_SUPPORTS_CXX11 - Success -- Performing Test COMPILER_SUPPORTS_CXX0X -- Performing Test COMPILER_SUPPORTS_CXX0X - Success -- Using flag -std=c++11. -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found CUDA: /usr/local/cuda-9.0 (found suitable exact version "9.0") -- Found Eigen3: /usr/include/eigen3 (Required is at least version "3.1.0") -- Configuring done -- Generating done -- Build files have been written to: /home/xt18t004/ORB_SLAM2/build Scanning dependencies of target ORB_SLAM2 make[2]: No rule to make target '/home/xt18t004/Pangolin/build/src/libpangolin.so', needed by '../lib/libORB_SLAM2.so'. Stop. make[2]: Waiting for unfinished jobs.... [ 3%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Converter.cc.o [ 6%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/System.cc.o [ 9%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/LocalMapping.cc.o [ 12%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/ORBmatcher.cc.o [ 15%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/FrameDrawer.cc.o [ 21%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/LoopClosing.cc.o [ 18%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/ORBextractor.cc.o [ 25%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Tracking.cc.o [ 28%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/MapPoint.cc.o [ 31%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/KeyFrameDatabase.cc.o [ 34%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Map.cc.o [ 40%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/MapDrawer.cc.o [ 37%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/KeyFrame.cc.o [ 43%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Viewer.cc.o [ 46%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Sim3Solver.cc.o [ 50%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/PnPsolver.cc.o [ 53%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Optimizer.cc.o [ 56%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Initializer.cc.o [ 59%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Frame.cc.o CMakeFiles/Makefile2:252: recipe for target 'CMakeFiles/ORB_SLAM2.dir/all' failed make[1]: [CMakeFiles/ORB_SLAM2.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
Installed all dependencies and got error after running build.sh While g2o seems to have been built successfully DBoW2 and ORB_SLAM2 show error The error seems to be in the version of CUDA. Can anybody help resolve the issue?
xt18t004@godavari:~/ORB_SLAM2$ chmod +x build.sh xt18t004@godavari:~/ORB_SLAM2$ ./build.sh Configuring and building Thirdparty/DBoW2 ... mkdir: cannot create directory ‘build’: File exists CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake: 148 (message): Could NOT find CUDA: Found unsuitable version "10.0", but required is exact version "9.0" (found /usr/local/cuda) Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:386 (_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-3.5/Modules/FindCUDA.cmake:949 (find_package_handlestandard args) /usr/local/share/OpenCV/OpenCVConfig.cmake:86 (find_package) /usr/local/share/OpenCV/OpenCVConfig.cmake:105 (find_host_package) CMakeLists.txt:27 (find_package)
-- Configuring incomplete, errors occurred! See also "/home/xt18t004/ORB_SLAM2/Thirdparty/DBoW2/build/CMakeFiles/CMakeOutput .log". See also "/home/xt18t004/ORB_SLAM2/Thirdparty/DBoW2/build/CMakeFiles/CMakeError. log". make: *** No targets specified and no makefile found. Stop. Configuring and building Thirdparty/g2o ... mkdir: cannot create directory ‘build’: File exists -- BUILD TYPE:Release -- Compiling on Unix -- Configuring done -- Generating done -- Build files have been written to: /home/xt18t004/ORB_SLAM2/Thirdparty/g2o/bui ld [100%] Built target g2o Uncompress vocabulary ... Configuring and building ORB_SLAM2 ... -- The C compiler identification is GNU 5.5.0 -- The CXX compiler identification is GNU 5.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done Build type: Release -- Performing Test COMPILER_SUPPORTS_CXX11 -- Performing Test COMPILER_SUPPORTS_CXX11 - Success -- Performing Test COMPILER_SUPPORTS_CXX0X -- Performing Test COMPILER_SUPPORTS_CXX0X - Success -- Using flag -std=c++11. -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake: 148 (message): Could NOT find CUDA: Found unsuitable version "10.0", but required is exact version "9.0" (found /usr/local/cuda) Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:386 (_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-3.5/Modules/FindCUDA.cmake:949 (find_package_handlestandard args) /usr/local/share/OpenCV/OpenCVConfig.cmake:86 (find_package) /usr/local/share/OpenCV/OpenCVConfig.cmake:105 (find_host_package) CMakeLists.txt:31 (find_package)
-- Configuring incomplete, errors occurred! See also "/home/xt18t004/ORB_SLAM2/build/CMakeFiles/CMakeOutput.log". See also "/home/xt18t004/ORB_SLAM2/build/CMakeFiles/CMakeError.log". make: *** No targets specified and no makefile found. Stop.