Open almondboi opened 4 years ago
Thank you for the report.
error: pathspec 'master' did not match any file(s) known to git.
Hmm, this error is very unusual and libSGM repository still has master branch (of course). I'll try to reproduce it on my NX on this weekend.
I prepared a clean NX and cloned the repo to a clean ROS workspace ( gpu_ws
here), and I wasn't able to reproduce your problem.
Can you try on a clean workspace and paste the entire log output here, please?
***@******:~/gpu_ws$ catkin_make
Base path: /home/***/gpu_ws
Source space: /home/***/gpu_ws/src
Build space: /home/***/gpu_ws/build
Devel space: /home/***/gpu_ws/devel
Install space: /home/***/gpu_ws/install
Creating symlink "/home/***/gpu_ws/src/CMakeLists.txt" pointing to "/opt/ros/melodic/share/catkin/cmake/toplevel.cmake"
####
#### Running command: "cmake /home/***/gpu_ws/src -DCATKIN_DEVEL_PREFIX=/home/***/gpu_ws/devel -DCMAKE_INSTALL_PREFIX=/home/***/gpu_ws/install -G Unix Makefiles" in "/home/***/gpu_ws/build"
####
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.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
-- Using CATKIN_DEVEL_PREFIX: /home/***/gpu_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/***/catkin_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/***/catkin_ws/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/***/gpu_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17")
-- 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
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.23
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - gpu_stereo_image_proc
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'gpu_stereo_image_proc'
-- ==> add_subdirectory(gpu_stereo_image_proc)
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- thread
-- chrono
-- system
-- date_time
-- atomic
-- Found OpenCV: /usr (found suitable version "3.2.0", minimum required is "3.2")
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Autodetected CUDA architecture(s): 7.2
-- Configuring done
-- Generating done
-- Build files have been written to: /home/***/gpu_ws/build
####
#### Running command: "make -j6 -l6" in "/home/***/gpu_ws/build"
####
Scanning dependencies of target ext-libSGM
Scanning dependencies of target gpu_stereo_image_proc_gencfg
[ 4%] Creating directories for 'ext-libSGM'
[ 9%] Generating dynamic reconfigure files from cfg/LIBSGM.cfg: /home/***/gpu_ws/devel/include/gpu_stereo_image_proc/LIBSGMConfig.h /home/***/gpu_ws/devel/lib/python2.7/dist-packages/gpu_stereo_image_proc/cfg/LIBSGMConfig.py
[ 14%] Generating dynamic reconfigure files from cfg/VXSGBM.cfg: /home/***/gpu_ws/devel/include/gpu_stereo_image_proc/VXSGBMConfig.h /home/***/gpu_ws/devel/lib/python2.7/dist-packages/gpu_stereo_image_proc/cfg/VXSGBMConfig.py
[ 19%] Performing download step (git clone) for 'ext-libSGM'
Cloning into 'libSGM'...
Generating reconfiguration files for LIBSGM in gpu_stereo_image_proc
Generating reconfiguration files for VXSGBM in gpu_stereo_image_proc
Wrote header file in /home/***/gpu_ws/devel/include/gpu_stereo_image_proc/LIBSGMConfig.h
Wrote header file in /home/***/gpu_ws/devel/include/gpu_stereo_image_proc/VXSGBMConfig.h
[ 19%] Built target gpu_stereo_image_proc_gencfg
Scanning dependencies of target vx_stereo_image_proc
[ 28%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/vx_stereo_matcher.cpp.o
[ 28%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/vx_sgbm_processor.cpp.o
[ 33%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/sgbm_processor.cpp.o
[ 38%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/nodelets/vx_disparity.cpp.o
Already on 'master'
Your branch is up to date with 'origin/master'.
Submodule 'test/googletest' (https://github.com/google/googletest.git) registered for path 'test/googletest'
Cloning into '/home/***/gpu_ws/src/gpu_stereo_image_proc/libSGM/test/googletest'...
Submodule path 'test/googletest': checked out '2fe3bd994b3189899d93f1d5a881e725e046fdc2'
[ 42%] No patch step for 'ext-libSGM'
[ 47%] Performing update step for 'ext-libSGM'
Current branch master is up to date.
[ 52%] Performing configure step for 'ext-libSGM'
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.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
-- Found OpenCV: /usr (found version "3.2.0") found components: core
-- 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 (found version "10.2")
-- Autodetected CUDA architecture(s): 7.2
-- CUDA_ARCH: "-gencode;arch=compute_72,code=sm_72"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/***/gpu_ws/build/gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-build
[ 57%] Performing build step for 'ext-libSGM'
[ 14%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_winner_takes_all.cu.o
[ 14%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_correct_disparity_range.cu.o
[ 21%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_check_consistency.cu.o
[ 28%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_census_transform.cu.o
[ 35%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_cuda_utils.cu.o
[ 42%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_horizontal_path_aggregation.cu.o
[ 50%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_median_filter.cu.o
[ 57%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_oblique_path_aggregation.cu.o
[ 64%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_path_aggregation.cu.o
[ 71%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_sgm.cu.o
[ 78%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_vertical_path_aggregation.cu.o
[ 61%] Linking CXX shared library /home/***/gpu_ws/devel/lib/libvx_stereo_image_proc.so
[ 61%] Built target vx_stereo_image_proc
Scanning dependencies of target vx_stereoimageproc_exe
[ 66%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereoimageproc_exe.dir/src/nodes/vx_stereo_image_proc.cpp.o
Scanning dependencies of target sgm
[ 85%] Building CXX object src/CMakeFiles/sgm.dir/stereo_sgm.cpp.o
[ 92%] Building CXX object src/CMakeFiles/sgm.dir/libsgm_wrapper.cpp.o
[ 71%] Linking CXX executable /home/***/gpu_ws/devel/lib/gpu_stereo_image_proc/vx_gpu_stereo_image_proc
[ 71%] Built target vx_stereoimageproc_exe
[100%] Linking CXX shared library libsgm.so
[100%] Built target sgm
[ 76%] Performing install step for 'ext-libSGM'
-- Autodetected CUDA architecture(s): 7.2
-- CUDA_ARCH: "-gencode;arch=compute_72,code=sm_72"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/***/gpu_ws/build/gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-build
[ 7%] Linking CXX shared library libsgm.so
[100%] Built target sgm
Install the project...
-- Install configuration: ""
-- Installing: /home/***/gpu_ws/build/gpu_stereo_image_proc/libSGM/lib/libsgm.so
-- Installing: /home/***/gpu_ws/build/gpu_stereo_image_proc/libSGM/include
-- Installing: /home/***/gpu_ws/build/gpu_stereo_image_proc/libSGM/include/libsgm_wrapper.h
-- Installing: /home/***/gpu_ws/build/gpu_stereo_image_proc/libSGM/include/libsgm_config.h
-- Installing: /home/***/gpu_ws/build/gpu_stereo_image_proc/libSGM/include/libsgm.h
-- Installing: /home/***/gpu_ws/build/gpu_stereo_image_proc/libSGM/FindLibSGM.cmake
[ 80%] Completed 'ext-libSGM'
[ 80%] Built target ext-libSGM
Scanning dependencies of target libsgm_stereo_image_proc
[ 85%] Building CXX object gpu_stereo_image_proc/CMakeFiles/libsgm_stereo_image_proc.dir/src/libgpu_stereo_image_proc/libsgm_sgbm_processor.cpp.o
[ 90%] Building CXX object gpu_stereo_image_proc/CMakeFiles/libsgm_stereo_image_proc.dir/src/libgpu_stereo_image_proc/sgbm_processor.cpp.o
[ 95%] Building CXX object gpu_stereo_image_proc/CMakeFiles/libsgm_stereo_image_proc.dir/src/nodelets/libsgm_disparity.cpp.o
[100%] Linking CXX shared library /home/***/gpu_ws/devel/lib/liblibsgm_stereo_image_proc.so
[100%] Built target libsgm_stereo_image_proc
Well, was your NX connected to internet when you tried catkin_make? CMake tries to pull libSGM repo into the project dir in build process. If the your NX is offline, this might be problem.
Hello,
I have encountered different failure of CMake on Jetson Nano and I have no idea how I can solve the problem:
Base path: /home/****/Projects/gpu_stereo
Source space: /home/****/Projects/gpu_stereo/src
Build space: /home/****/Projects/gpu_stereo/build
Devel space: /home/****/Projects/gpu_stereo/devel
Install space: /home/****/Projects/gpu_stereo/install
####
#### Running command: "make cmake_check_build_system" in "/home/****/Projects/gpu_stereo/build"
####
####
#### Running command: "make -j4 -l4" in "/home/****/Projects/gpu_stereo/build"
####
[ 4%] Performing update step for 'ext-libSGM'
[ 14%] Built target gpu_stereo_image_proc_gencfg
[ 38%] Built target vx_stereo_image_proc
Scanning dependencies of target vx_stereoimageproc_exe
[ 42%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereoimageproc_exe.dir/src/nodes/vx_stereo_image_proc.cpp.o
Current branch master is up to date.
[ 47%] Performing configure step for 'ext-libSGM'
-- CUDA_ARCH: "sm_53"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/****/Projects/gpu_stereo/build/gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-build
[ 52%] Performing build step for 'ext-libSGM'
[ 14%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_census_transform.cu.o
[ 14%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_check_consistency.cu.o
[ 21%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_winner_takes_all.cu.o
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
CMake Error at sgm_generated_check_consistency.cu.o.cmake:219 (message):
Error generating
/home/****/Projects/gpu_stereo/build/gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-build/src/CMakeFiles/sgm.dir//./sgm_generated_check_consistency.cu.o
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
CMake Error at sgm_generated_census_transform.cu.o.cmake:219 (message):
Error generating
/home/****/Projects/gpu_stereo/build/gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-build/src/CMakeFiles/sgm.dir//./sgm_generated_census_transform.cu.o
src/CMakeFiles/sgm.dir/build.make:70: recipe for target 'src/CMakeFiles/sgm.dir/sgm_generated_check_consistency.cu.o' failed
make[5]: *** [src/CMakeFiles/sgm.dir/sgm_generated_check_consistency.cu.o] Error 1
make[5]: *** Waiting for unfinished jobs....
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
src/CMakeFiles/sgm.dir/build.make:63: recipe for target 'src/CMakeFiles/sgm.dir/sgm_generated_census_transform.cu.o' failed
make[5]: *** [src/CMakeFiles/sgm.dir/sgm_generated_census_transform.cu.o] Error 1
CMake Error at sgm_generated_winner_takes_all.cu.o.cmake:219 (message):
Error generating
/home/****/Projects/gpu_stereo/build/gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-build/src/CMakeFiles/sgm.dir//./sgm_generated_winner_takes_all.cu.o
src/CMakeFiles/sgm.dir/build.make:133: recipe for target 'src/CMakeFiles/sgm.dir/sgm_generated_winner_takes_all.cu.o' failed
make[5]: *** [src/CMakeFiles/sgm.dir/sgm_generated_winner_takes_all.cu.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/sgm.dir/all' failed
make[4]: *** [src/CMakeFiles/sgm.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make[3]: *** [all] Error 2
gpu_stereo_image_proc/CMakeFiles/ext-libSGM.dir/build.make:110: recipe for target 'gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-stamp/ext-libSGM-build' failed
make[2]: *** [gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-stamp/ext-libSGM-build] Error 2
CMakeFiles/Makefile2:1114: recipe for target 'gpu_stereo_image_proc/CMakeFiles/ext-libSGM.dir/all' failed
make[1]: *** [gpu_stereo_image_proc/CMakeFiles/ext-libSGM.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 57%] Linking CXX executable /home/****/Projects/gpu_stereo/devel/lib/gpu_stereo_image_proc/vx_gpu_stereo_image_proc
[ 57%] Built target vx_stereoimageproc_exe
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
@bclwan Thank you for your feedback. I'll check it but It might take a while. Your log indicated that NVCC crashed and I would need to deep dive into libSGM's build process. (Note that this repository is a simple ROS wrapper of libSGM.)
Sorry for inconvenience and thank you for your cooperation.
I am also having exactly the same problem with the error 'failed to checkout tag: master''. My device is connected to the internet.
Hi, I had this problem but it is gone now, I'm not too sure what did it but originally when I entered the /catkin_ws/src/gpu_stereo_image_proc/libSGM and ran git cehckout master
I got the git error as described above. Possibly because I had changed one of the files? But I'm not sure. I then cloned the repository into a different directory and then went into /libSGM and ran the git checkout command and did not get an error, so I replaced the previous package in my workspace with the one in the separate directory. This seemed to work for me. However I cannot get vx_stereo_image_proc to work.
Hi! I have found this problem on my Jetson Nano B01 also. It is surely the nvcc that can't compile ext-libSGM
. Does some smarthead know how to make it compile?
kmro@kpmro:~/mgr/catkin_ws_test$ catkin_make
Base path: /home/kmro/mgr/catkin_ws_test
Source space: /home/kmro/mgr/catkin_ws_test/src
Build space: /home/kmro/mgr/catkin_ws_test/build
Devel space: /home/kmro/mgr/catkin_ws_test/devel
Install space: /home/kmro/mgr/catkin_ws_test/install
####
#### Running command: "cmake /home/kmro/mgr/catkin_ws_test/src -DCATKIN_DEVEL_PREFIX=/home/kmro/mgr/catkin_ws_test/devel -DCMAKE_INSTALL_PREFIX=/home/kmro/mgr/catkin_ws_test/install -G Unix Makefiles" in "/home/kmro/mgr/catkin_ws_test/build"
####
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/kmro/mgr/catkin_ws_test/devel
-- Using CMAKE_PREFIX_PATH: /home/kmro/mgr/catkin_ws_test/devel;/opt/ros/melodic
-- This workspace overlays: /home/kmro/mgr/catkin_ws_test/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/kmro/mgr/catkin_ws_test/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
CMake Deprecation Warning at /usr/src/googletest/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at /usr/src/googletest/googlemock/CMakeLists.txt:41 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at /usr/src/googletest/googletest/CMakeLists.txt:48 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 3 packages in topological order:
-- ~~ - gscam
-- ~~ - jetson_csi_stereo_ros
-- ~~ - gpu_stereo_image_proc
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'gscam'
-- ==> add_subdirectory(gscam)
CMake Deprecation Warning at gscam/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- gst 1.0
-- Checking for module 'gstreamer-1.0'
-- Found gstreamer-1.0, version 1.14.5
-- Checking for module 'gstreamer-app-1.0'
-- Found gstreamer-app-1.0, version 1.14.5
-- +++ processing catkin package: 'jetson_csi_stereo_ros'
-- ==> add_subdirectory(jetson_csi_stereo_ros)
CMake Deprecation Warning at jetson_csi_stereo_ros/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- +++ processing catkin package: 'gpu_stereo_image_proc'
-- ==> add_subdirectory(gpu_stereo_image_proc)
-- Found Boost: /usr/include (found version "1.65.1") found components: thread chrono system date_time atomic
-- Found CUDA: /usr/local/cuda (found suitable exact version "10.2")
-- Found OpenCV: /usr/local (found suitable version "4.5.0", minimum required is "4")
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Autodetected CUDA architecture(s): 5.3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kmro/mgr/catkin_ws_test/build
####
#### Running command: "make -j4 -l4" in "/home/kmro/mgr/catkin_ws_test/build"
####
[ 3%] Building CXX object gscam/CMakeFiles/gscam.dir/src/gscam.cpp.o
[ 7%] Creating directories for 'ext-libSGM'
[ 11%] Generating dynamic reconfigure files from cfg/VXSGBM.cfg: /home/kmro/mgr/catkin_ws_test/devel/include/gpu_stereo_image_proc/VXSGBMConfig.h /home/kmro/mgr/catkin_ws_test/devel/lib/python2.7/dist-packages/gpu_stereo_image_proc/cfg/VXSGBMConfig.py
[ 14%] Generating dynamic reconfigure files from cfg/LIBSGM.cfg: /home/kmro/mgr/catkin_ws_test/devel/include/gpu_stereo_image_proc/LIBSGMConfig.h /home/kmro/mgr/catkin_ws_test/devel/lib/python2.7/dist-packages/gpu_stereo_image_proc/cfg/LIBSGMConfig.py
Generating reconfiguration files for VXSGBM in gpu_stereo_image_proc
Generating reconfiguration files for LIBSGM in gpu_stereo_image_proc
Wrote header file in /home/kmro/mgr/catkin_ws_test/devel/include/gpu_stereo_image_proc/VXSGBMConfig.h
Wrote header file in /home/kmro/mgr/catkin_ws_test/devel/include/gpu_stereo_image_proc/LIBSGMConfig.h
[ 18%] Performing download step (git clone) for 'ext-libSGM'
[ 18%] Built target gpu_stereo_image_proc_gencfg
Cloning into 'libSGM'...
[ 22%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/vx_stereo_matcher.cpp.o
[ 25%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/vx_sgbm_processor.cpp.o
Already on 'master'
Your branch is up to date with 'origin/master'.
Submodule 'test/googletest' (https://github.com/google/googletest.git) registered for path 'test/googletest'
Cloning into '/home/kmro/mgr/catkin_ws_test/src/gpu_stereo_image_proc/libSGM/test/googletest'...
Submodule path 'test/googletest': checked out '2fe3bd994b3189899d93f1d5a881e725e046fdc2'
[ 29%] Performing update step for 'ext-libSGM'
HEAD is now at 6086f73 Merge pull request #65 from robotchaoX/pr
[ 33%] No patch step for 'ext-libSGM'
[ 37%] Performing configure step for 'ext-libSGM'
[ 40%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/sgbm_processor.cpp.o
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
[ 44%] Linking CXX shared library /home/kmro/mgr/catkin_ws_test/devel/lib/libgscam.so
make[2]: *** No rule to make target '/usr/lib/aarch64-linux-gnu/libopencv_objdetect.so.3.2.0', needed by '/home/kmro/mgr/catkin_ws_test/devel/lib/libvx_stereo_image_proc.so'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 48%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/nodelets/vx_disparity.cpp.o
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
[ 48%] Built target gscam
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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 (found suitable exact version "10.2")
-- Found OpenCV: /usr/local (found version "4.5.0") found components: core
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Autodetected CUDA architecture(s): 5.3
-- CUDA_ARCH: "-gencode;arch=compute_53,code=sm_53"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-build
[ 51%] Performing build step for 'ext-libSGM'
[ 7%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_winner_takes_all.cu.o
[ 14%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_census_transform.cu.o
CMakeFiles/Makefile2:1757: recipe for target 'gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/all' failed
make[1]: *** [gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 21%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_check_consistency.cu.o
[ 28%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_correct_disparity_range.cu.o
[ 35%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_cuda_utils.cu.o
[ 42%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_horizontal_path_aggregation.cu.o
[ 50%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_median_filter.cu.o
[ 57%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_oblique_path_aggregation.cu.o
[ 64%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_path_aggregation.cu.o
[ 71%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_sgm.cu.o
[ 78%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_vertical_path_aggregation.cu.o
[ 92%] Building CXX object src/CMakeFiles/sgm.dir/stereo_sgm.cpp.o
[ 92%] Building CXX object src/CMakeFiles/sgm.dir/libsgm_wrapper.cpp.o
[100%] Linking CXX shared library libsgm.so
[100%] Built target sgm
[ 55%] Performing install step for 'ext-libSGM'
-- Found CUDA: /usr/local/cuda (found suitable exact version "10.2")
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Autodetected CUDA architecture(s): 5.3
-- CUDA_ARCH: "-gencode;arch=compute_53,code=sm_53"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-build
Consolidate compiler generated dependencies of target sgm
[ 7%] Linking CXX shared library libsgm.so
[100%] Built target sgm
Install the project...
-- Install configuration: ""
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/lib/libsgm.so
-- Set runtime path of "/home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/lib/libsgm.so" to ""
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/include
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/include/libsgm_wrapper.h
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/include/libsgm_config.h
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/include/libsgm.h
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/FindLibSGM.cmake
[ 59%] Completed 'ext-libSGM'
[ 59%] Built target ext-libSGM
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
The problem was that nvcc for CUDA 10.3 doesn't recognize function ldg(), replacing `ldg(&right[i feature_step + x]);with
right[i feature_step + x];` solved my problem
Describe the bug A clear and concise description of what the bug is. After cloning the repo into my directory, I am unable to catkin_make. The error message is:
error: pathspec 'master' did not match any file(s) known to git. CMake Error at /home/jetson/stereo_node/build/gpu_stereo_image_proc/ext/libSGM/tmp/ext-libSGM-gitupdate.cmake:147 (message): Failed to checkout tag: 'master'
gpu_stereo_image_proc/CMakeFiles/ext-libSGM.dir/build.make:94: recipe for target 'gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-stamp/ext-libSGM-update' failed make[2]: [gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-stamp/ext-libSGM-update] Error 1 CMakeFiles/Makefile2:4969: recipe for target 'gpu_stereo_image_proc/CMakeFiles/ext-libSGM.dir/all' failed make[1]: [gpu_stereo_image_proc/CMakeFiles/ext-libSGM.dir/all] Error 2
Anyone know the cause of this issue and how to fix it?
Thanks in advance.