mp3guy / Kintinuous

Real-time large scale dense visual SLAM system
Other
914 stars 287 forks source link

ROS causing problems with build #28

Open griz1112 opened 7 years ago

griz1112 commented 7 years ago

The reason this happens is that ROS has a separate set of opencv libs that reside on a temp filesystem while its running everything to do with opencv is directed to this set of files. So to build other cuda applications with ROS installed you need replace the installed files with those that are compiled with cuda enabled. Basically you create a new ros-kinetic-opencv3 package as a deb uninstall ros-kinetic-opencv3 modify the ros-latest.list to point to your deb and install that. The point it back at the default location and reinstall ros-kinetic-desktop or desktop-full. You can alter some of the env variables but that doesn't work in all cases this does.

dcanelhas commented 7 years ago

Or use ccmake and point cmake to locally installed versions of libraries that you wish to use, instead of the system-wide installation

griz1112 commented 6 years ago

Asking for trouble with ROS going outside for libs. http://qiita.com/kendemu/items/a805b0b9828b6f6031db . this link has the correct procedure. Even if you link to the system libs it can't see them when ROS is active. ROS puts the opencv stuff in a tmp filesystem and points everything to it. Nice having cuda enabled opencv in ROS.