You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have tried to ctakin_make the project on Jetson Nano but I have encountered the following error.
I have checked some posts related and it seems the error can be fixed by C++14 arguments in the compiler options.
But I have checked this project CMakeLists.txt and it looks like the project has already took care of this so I am confused by the results.
Base path: /home/xxxx/Projects/gpu_stereo
Source space: /home/xxxx/Projects/gpu_stereo/src
Build space: /home/xxxx/Projects/gpu_stereo/build
Devel space: /home/xxxx/Projects/gpu_stereo/devel
Install space: /home/xxxx/Projects/gpu_stereo/install
####
#### Running command: "cmake /home/xxxx/Projects/gpu_stereo/src -DCATKIN_DEVEL_PREFIX=/home/xxxx/Projects/gpu_stereo/devel -DCMAKE_INSTALL_PREFIX=/home/xxxx/Projects/gpu_stereo/install -G Unix Makefiles" in "/home/xxxx/Projects/gpu_stereo/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/xxxx/Projects/gpu_stereo/devel
-- Using CMAKE_PREFIX_PATH: /home/xxxx/Projects/stereows/devel;/opt/ros/melodic
-- This workspace overlays: /home/xxxx/Projects/stereows/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/xxxx/Projects/gpu_stereo/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")
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- 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 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
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xxxx/Projects/gpu_stereo/build
####
#### Running command: "make -j4 -l4" in "/home/xxxx/Projects/gpu_stereo/build"
####
Scanning dependencies of target ext-libSGM
Scanning dependencies of target gpu_stereo_image_proc_gencfg
[ 14%] Creating directories for 'ext-libSGM'
[ 14%] Generating dynamic reconfigure files from cfg/VXSGBM.cfg: /home/xxxx/Projects/gpu_stereo/devel/include/gpu_stereo_image_proc/VXSGBMConfig.h /home/xxxx/Projects/gpu_stereo/devel/lib/python2.7/dist-packages/gpu_stereo_image_proc/cfg/VXSGBMConfig.py
[ 14%] Generating dynamic reconfigure files from cfg/LIBSGM.cfg: /home/xxxx/Projects/gpu_stereo/devel/include/gpu_stereo_image_proc/LIBSGMConfig.h /home/xxxx/Projects/gpu_stereo/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/xxxx/Projects/gpu_stereo/devel/include/gpu_stereo_image_proc/VXSGBMConfig.h
Wrote header file in /home/xxxx/Projects/gpu_stereo/devel/include/gpu_stereo_image_proc/LIBSGMConfig.h
[ 19%] Performing download step (git clone) for 'ext-libSGM'
Cloning into 'libSGM'...
[ 19%] Built target gpu_stereo_image_proc_gencfg
Scanning dependencies of target vx_stereo_image_proc
[ 23%] 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
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/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/libSGM/test/googletest'...
In file included from /home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/sgbm_processor.cpp:35:0:
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h: In function ‘gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag gpu_stereo_image_proc::operator|(gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag, gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag)’:
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:203:18: error: ‘underlying_type_t’ in namespace ‘std’ does not name a template type
using T = std::underlying_type_t;
^~~~~~~~~~~~~~~~~
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:204:70: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) | static_cast(rhs));
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:204:92: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) | static_cast(rhs));
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h: In function ‘gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag gpu_stereo_image_proc::operator&(gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag, gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag)’:
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:210:18: error: ‘underlying_type_t’ in namespace ‘std’ does not name a template type
using T = std::underlying_type_t;
^~~~~~~~~~~~~~~~~
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:211:70: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) & static_cast(rhs));
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:211:92: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) & static_cast(rhs));
^
In file included from /home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/vx_sgbm_processor.h:37:0,
from /home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/vx_sgbm_processor.cpp:34:
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h: In function ‘gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag gpu_stereo_image_proc::operator|(gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag, gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag)’:
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:203:18: error: ‘underlying_type_t’ in namespace ‘std’ does not name a template type
using T = std::underlying_type_t;
^~~~~~~~~~~~~~~~~
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:204:70: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) | static_cast(rhs));
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:204:92: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) | static_cast(rhs));
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h: In function ‘gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag gpu_stereo_image_proc::operator&(gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag, gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag)’:
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:210:18: error: ‘underlying_type_t’ in namespace ‘std’ does not name a template type
using T = std::underlying_type_t;
^~~~~~~~~~~~~~~~~
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:211:70: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) & static_cast(rhs));
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/sgbm_processor.cpp: In member function ‘bool gpu_stereo_image_proc::StereoSGBMProcessor::process(const ImageConstPtr&, const ImageConstPtr&, const image_geometry::StereoCameraModel&, gpu_stereo_image_proc::StereoImageSet&, gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag) const’:
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/sgbm_processor.cpp:49:18: error: ‘underlying_type_t’ in namespace ‘std’ does not name a template type
using T = std::underlying_type_t;
^~~~~~~~~~~~~~~~~
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:211:92: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) & static_cast(rhs));
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/sgbm_processor.cpp:53:18: error: ‘T’ does not name a type
if(static_cast(flags & ImageProcFlag::STEREO_ALL))
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/sgbm_processor.cpp:59:18: error: ‘T’ does not name a type
if(static_cast(flags & (ImageProcFlag::POINT_CLOUD | ImageProcFlag::POINT_CLOUD2)))
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/sgbm_processor.cpp:65:80: error: ‘T’ does not name a type
if(!mono_processor_.process(left_raw, model.left(), output.left, static_cast(left_flags)))
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/sgbm_processor.cpp:67:83: error: ‘T’ does not name a type
if(!mono_processor_.process(right_raw, model.right(), output.right, static_cast(right_flags) >> 4))
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/sgbm_processor.cpp:71:18: error: ‘T’ does not name a type
if(static_cast(flags & ImageProcFlag::DISPARITY))
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/sgbm_processor.cpp:77:18: error: ‘T’ does not name a type
if(static_cast(flags & ImageProcFlag::POINT_CLOUD))
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/libgpu_stereo_image_proc/sgbm_processor.cpp:83:18: error: ‘T’ does not name a type
if(static_cast(flags & ImageProcFlag::POINT_CLOUD2))
^
[ 38%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/nodelets/vx_disparity.cpp.o
gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/build.make:86: recipe for target 'gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/vx_sgbm_processor.cpp.o' failed
make[2]: *** [gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/vx_sgbm_processor.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/build.make:110: recipe for target 'gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/sgbm_processor.cpp.o' failed
make[2]: *** [gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/sgbm_processor.cpp.o] Error 1
Submodule path 'test/googletest': checked out '2fe3bd994b3189899d93f1d5a881e725e046fdc2'
[ 47%] Performing update step for 'ext-libSGM'
[ 47%] No patch 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
-- Looking for pthread.h
In file included from /home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/vx_sgbm_processor.h:37:0,
from /home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/src/nodelets/vx_disparity.cpp:58:
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h: In function ‘gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag gpu_stereo_image_proc::operator|(gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag, gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag)’:
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:203:18: error: ‘underlying_type_t’ in namespace ‘std’ does not name a template type
using T = std::underlying_type_t;
^~~~~~~~~~~~~~~~~
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:204:70: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) | static_cast(rhs));
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:204:92: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) | static_cast(rhs));
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h: In function ‘gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag gpu_stereo_image_proc::operator&(gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag, gpu_stereo_image_proc::StereoSGBMProcessor::ImageProcFlag)’:
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:210:18: error: ‘underlying_type_t’ in namespace ‘std’ does not name a template type
using T = std::underlying_type_t;
^~~~~~~~~~~~~~~~~
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:211:70: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) & static_cast(rhs));
^
/home/xxxx/Projects/gpu_stereo/src/gpu_stereo_image_proc/include/gpu_stereo_image_proc/sgbm_processor.h:211:92: error: ‘T’ does not name a type
return static_cast(static_cast(lhs) & static_cast(rhs));
^
-- 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 suitable exact version "10.2")
-- Found OpenCV: /usr (found version "4.4.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/xxxx/Projects/gpu_stereo/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_census_transform.cu.o
[ 21%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_check_consistency.cu.o
gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/build.make:134: recipe for target 'gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/nodelets/vx_disparity.cpp.o' failed
make[2]: *** [gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/nodelets/vx_disparity.cpp.o] Error 1
CMakeFiles/Makefile2:885: 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....
[ 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
Scanning dependencies of target sgm
[ 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
[ 61%] 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/xxxx/Projects/gpu_stereo/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/xxxx/Projects/gpu_stereo/build/gpu_stereo_image_proc/libSGM/lib/libsgm.so
-- Set runtime path of "/home/xxxx/Projects/gpu_stereo/build/gpu_stereo_image_proc/libSGM/lib/libsgm.so" to ""
-- Installing: /home/xxxx/Projects/gpu_stereo/build/gpu_stereo_image_proc/libSGM/include
-- Installing: /home/xxxx/Projects/gpu_stereo/build/gpu_stereo_image_proc/libSGM/include/libsgm_config.h
-- Installing: /home/xxxx/Projects/gpu_stereo/build/gpu_stereo_image_proc/libSGM/include/libsgm.h
-- Installing: /home/xxxx/Projects/gpu_stereo/build/gpu_stereo_image_proc/libSGM/include/libsgm_wrapper.h
-- Installing: /home/xxxx/Projects/gpu_stereo/build/gpu_stereo_image_proc/libSGM/FindLibSGM.cmake
[ 66%] Completed 'ext-libSGM'
[ 66%] Built target ext-libSGM
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
The text was updated successfully, but these errors were encountered:
Hello, I have tried to ctakin_make the project on Jetson Nano but I have encountered the following error.
I have checked some posts related and it seems the error can be fixed by C++14 arguments in the compiler options.
But I have checked this project CMakeLists.txt and it looks like the project has already took care of this so I am confused by the results.
The text was updated successfully, but these errors were encountered: