# Revision history [back]

### Rgbdslam v2 Error on ROS Hydro

Hi all,

Im very very new to ROS and am trying to perform the rgbdslamv2 in order to obtain the map of an enclosed room for my final year project. I have been able to install ROS without any issues however when i attempt to follow the instructions here (http://felixendres.github.io/rgbdslam_v2/) i get the error below when i follow the "Installation from scratch". This occurs when i perform catkin_make.

Linking CXX executable /home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam
/usr/bin/ld: error: cannot find -lsiftgpu
/usr/bin/ld: error: cannot find -lsiftgpu
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:18: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:12: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1016: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1063: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/sift_gpu_wrapper.cpp:230: error: undefined reference to 'CreateNewSiftMatchGPU'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/sift_gpu_wrapper.cpp:35: error: undefined reference to 'SiftGPU::operator new(unsigned long)'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/sift_gpu_wrapper.cpp:35: error: undefined reference to 'SiftGPU::SiftGPU(int)'
collect2: ld returned 1 exit status
make[2]: *** [/home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam] Error 1
make[1]: *** [rgbdslam_v2-hydro/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed


Reading further below the page "GICP and SIFTGPU" it indicated that "If there are problems related to the compilation or linking of GICP or SIFTGPU, you can deactivate these features at the top of CMakeLists.txt.". so what i did was that i went to "/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro" and opened the "CMakeLists.txt" file and amended the file from:

set(USE_SIFT_GPU        1)
set(ENV{SIFT_GPU_MODE}  2) #CUDA = 1, GLSL = 2
set(ENV{SIFT_GPU_CUDA_PATH} /usr/local/cuda)
set(USE_GICP_BIN        0)
set(USE_GICP_CODE       0)


to:

#set(USE_SIFT_GPU        1)
#set(ENV{SIFT_GPU_MODE} 2) #CUDA = 1, GLSL = 2
#set(ENV{SIFT_GPU_CUDA_PATH}    /usr/local/cuda)
#set(USE_GICP_BIN       0)
#set(USE_GICP_CODE      0)


I am assuming that this is what is meant by deactivating "GICP and SIFTGPU". Hoping that this would solve my error. Thereafter i executed, catkin_make again however i encounter the following error:

Linking CXX executable /home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:18: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:12: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1016: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1063: error: undefined reference to 'clock_gettime'
collect2: ld returned 1 exit status
make[2]: *** [/home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam] Error 1
make[1]: *** [rgbdslam_v2-hydro/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed


I would really appreciate your assistance in this as i am stuck at this stage and cannot go any further. Thank you in advance.

### Rgbdslam v2 Error on ROS Hydro

Hi all,

Im very very new to ROS and am trying to perform the rgbdslamv2 in order to obtain the map of an enclosed room for my final year project. I have been able to install ROS without any issues however when i attempt to follow the instructions here (http://felixendres.github.io/rgbdslam_v2/) i get the error below when i follow the "Installation from scratch". This occurs when i perform catkin_make.

Linking CXX executable /home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam
/usr/bin/ld: error: cannot find -lsiftgpu
/usr/bin/ld: error: cannot find -lsiftgpu
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:18: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:12: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1016: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1063: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/sift_gpu_wrapper.cpp:230: error: undefined reference to 'CreateNewSiftMatchGPU'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/sift_gpu_wrapper.cpp:35: error: undefined reference to 'SiftGPU::operator new(unsigned long)'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/sift_gpu_wrapper.cpp:35: error: undefined reference to 'SiftGPU::SiftGPU(int)'
collect2: ld returned 1 exit status
make[2]: *** [/home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam] Error 1
make[1]: *** [rgbdslam_v2-hydro/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed


Reading further below the page "GICP and SIFTGPU" it indicated that "If there are problems related to the compilation or linking of GICP or SIFTGPU, you can deactivate these features at the top of CMakeLists.txt.". so what i did was that i went to "/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro" and opened the "CMakeLists.txt" file and amended the file from:

set(USE_SIFT_GPU        1)
set(ENV{SIFT_GPU_MODE}  2) #CUDA = 1, GLSL = 2
set(ENV{SIFT_GPU_CUDA_PATH} /usr/local/cuda)
set(USE_GICP_BIN        0)
set(USE_GICP_CODE       0)


to:

#set(USE_SIFT_GPU        1)
#set(ENV{SIFT_GPU_MODE} 2) #CUDA = 1, GLSL = 2
#set(ENV{SIFT_GPU_CUDA_PATH}    /usr/local/cuda)
#set(USE_GICP_BIN       0)
#set(USE_GICP_CODE      0)


I am assuming that this is what is meant by deactivating "GICP and SIFTGPU". Hoping that this would solve my error. Thereafter i executed, catkin_make again however i encounter the following error:

Linking CXX executable /home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:18: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:12: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1016: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1063: error: undefined reference to 'clock_gettime'
collect2: ld returned 1 exit status
make[2]: *** [/home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam] Error 1
make[1]: *** [rgbdslam_v2-hydro/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed


I would really appreciate your assistance in this as i am stuck at this stage and cannot go any further. Thank you in advance.

### Rgbdslam v2 Error on ROS Hydro

Hi all,

Im very very new to ROS and am trying to perform the rgbdslamv2 in order to obtain the map of an enclosed room for my final year project. I have been able to install ROS without any issues however when i attempt to follow the instructions here (http://felixendres.github.io/rgbdslam_v2/) i get the error below when i follow the "Installation from scratch". This occurs when i perform catkin_make.

Linking CXX executable /home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam
/usr/bin/ld: error: cannot find -lsiftgpu
/usr/bin/ld: error: cannot find -lsiftgpu
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:18: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:12: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1016: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1063: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/sift_gpu_wrapper.cpp:230: error: undefined reference to 'CreateNewSiftMatchGPU'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/sift_gpu_wrapper.cpp:35: error: undefined reference to 'SiftGPU::operator new(unsigned long)'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/sift_gpu_wrapper.cpp:35: error: undefined reference to 'SiftGPU::SiftGPU(int)'
collect2: ld returned 1 exit status
make[2]: *** [/home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam] Error 1
make[1]: *** [rgbdslam_v2-hydro/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed


Reading further below the page "GICP and SIFTGPU" it indicated that "If there are problems related to the compilation or linking of GICP or SIFTGPU, you can deactivate these features at the top of CMakeLists.txt.". so what i did was that i went to "/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro" and opened the "CMakeLists.txt" file and amended the file from:

set(USE_SIFT_GPU        1)
set(ENV{SIFT_GPU_MODE}  2) #CUDA = 1, GLSL = 2
set(ENV{SIFT_GPU_CUDA_PATH} /usr/local/cuda)
set(USE_GICP_BIN        0)
set(USE_GICP_CODE       0)


to:

#set(USE_SIFT_GPU        1)
#set(ENV{SIFT_GPU_MODE} 2) #CUDA = 1, GLSL = 2
#set(ENV{SIFT_GPU_CUDA_PATH}    /usr/local/cuda)
#set(USE_GICP_BIN       0)
#set(USE_GICP_CODE      0)


I am assuming that this is what is meant by deactivating "GICP and SIFTGPU". Hoping that this would solve my error. Thereafter i executed, catkin_make again however i encounter the following error:

Linking CXX executable /home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:18: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/scoped_timer.cpp:12: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1016: error: undefined reference to 'clock_gettime'
/home/user/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/graph_mgr_io.cpp:1063: error: undefined reference to 'clock_gettime'
collect2: ld returned 1 exit status
make[2]: *** [/home/user/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam] Error 1
make[1]: *** [rgbdslam_v2-hydro/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed
`

I would really appreciate your assistance in this as i am stuck at this stage and cannot go any further. Thank you in advance.