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
I ran into a couple of issues when building under Ubuntu 12.04 LTS. I'm running an essentially stock setup. I'm using CUDA 5.0. I followed the install directions exactly (copy-paste into terminal).
Two problems:
Build failed with complaints about errors finding cu_di_* (e.g., cu_di_sfree, cu_di_add, etc). Also complained about inability to link gluSphere and gluDisk.
Resolution:
I added GLU and cxsparse to line 67 in ScaViSLAM/CMakeLists.txt. The line now reads:
CUDA 5 does not include cutil_inline.h. Since this is missing, stereo_slam.cpp is broken.
I commented out the include for cutil_inline.h in stereo_slam.cpp and added an include for cuda_runtime_api.h for cudaGetDeviceProperties.
CUDA_SAFE_CALL is a macro and needs to be replaced. If I had lots of time, I would fix this a nice way (e.g., write a nice macro and put it in a .h), but instead I just replaced the call to around CUDA_SAFE_CALL (line 664ish in stereo_slam.cpp) with the following code:
Google tells me that this macro has been moved into some other file (helper_cuda.h), but for whatever reason my install of CUDA doesn't seem to have that file.
Now everything builds. Hope this helps someone else.
The text was updated successfully, but these errors were encountered:
hi, dear kevinmpeterson,
I have CUDA setup successfully, and with GeForce GT730 Nvidia card, but the frame rate is still very low, like above. what's the reason of it?
can you help me? thanks.
my computer status:
ubuntu 14.04 LTS
GeForce GT730 Nvidia card;
CUDA 6.5
opencv 2.4.9
I ran into a couple of issues when building under Ubuntu 12.04 LTS. I'm running an essentially stock setup. I'm using CUDA 5.0. I followed the install directions exactly (copy-paste into terminal).
Two problems:
Resolution:
I added GLU and cxsparse to line 67 in ScaViSLAM/CMakeLists.txt. The line now reads:
SET (LIB_NAMES GL GLU pangolin glut g2o_stuff g2o_core g2o_solver_csparse csparse cxsparse
I commented out the include for cutil_inline.h in stereo_slam.cpp and added an include for cuda_runtime_api.h for cudaGetDeviceProperties.
CUDA_SAFE_CALL is a macro and needs to be replaced. If I had lots of time, I would fix this a nice way (e.g., write a nice macro and put it in a .h), but instead I just replaced the call to around CUDA_SAFE_CALL (line 664ish in stereo_slam.cpp) with the following code:
Google tells me that this macro has been moved into some other file (helper_cuda.h), but for whatever reason my install of CUDA doesn't seem to have that file.
Now everything builds. Hope this helps someone else.
The text was updated successfully, but these errors were encountered: