Open QinZiwen opened 6 years ago
I found that the default installation path for rtabmap is "/usr/local/lib" and "/usr/local/bin" So, I append "/usr/local/lib" in .bashrc, as follow:
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"
But, when I run "rtabmap", new error emerge:
$ ./rtabmap
ERROR: In /build/buildd/vtk-5.8.0/Rendering/vtkXOpenGLRenderWindow.cxx, line 404
vtkXOpenGLRenderWindow (0x31f4370): Could not find a decent visual
ERROR: In /build/buildd/vtk-5.8.0/Rendering/vtkXOpenGLRenderWindow.cxx, line 404
vtkXOpenGLRenderWindow (0x31f4370): Could not find a decent visual
ERROR: In /build/buildd/vtk-5.8.0/Rendering/vtkXOpenGLRenderWindow.cxx, line 631
vtkXOpenGLRenderWindow (0x31f4370): Cannot create GLX context. Aborting.
Aborted (core dumped)
$ ./rtabmap-databaseViewer ~/.ros/rtabmap.db
ERROR: In /build/buildd/vtk-5.8.0/Rendering/vtkXOpenGLRenderWindow.cxx, line 404
vtkXOpenGLRenderWindow (0x3312560): Could not find a decent visual
ERROR: In /build/buildd/vtk-5.8.0/Rendering/vtkXOpenGLRenderWindow.cxx, line 404
vtkXOpenGLRenderWindow (0x3312560): Could not find a decent visual
ERROR: In /build/buildd/vtk-5.8.0/Rendering/vtkXOpenGLRenderWindow.cxx, line 631
vtkXOpenGLRenderWindow (0x3312560): Cannot create GLX context. Aborting.
Aborted (core dumped)
What is your machine? Is it virtual machine? See https://github.com/UV-CDAT/uvcdat/issues/1134#issuecomment-93031935 Ankther post when connecting via ssh: www.cfd-online.com/Forums/openfoam-installation/57218-parafoam-error-could-not-find-
Not a virtual machine. It is Ubuntu 14.04, cuda 8.0, nvidia-gtx-1070. I still don't know how to solve this problem by see UV-CDAT/uvcdat#1134 (comment) This link,https://www.cfd-online.com/Forums/openfoam-installation/57218-parafoam-error-could-not-find- , cannot be opened
Another post based on PCL using VTK: http://www.pcl-users.org/pcd-viewer-failure-td1684243.html
pcl_viewer runs without problems, my pcl version is 1.7
RTAB-Map depends on VTK by PCL and Qt. The difference between pcl_viewer and RTAB-Map is that the OpenGL context is created using QVTKWidget in RTAB-Map (which is VTK + Qt). There is maybe a problem with QVTKWidget, that may need to be rebuilt from source on your computer.
@QinZiwen It seems that you have encountered a similar problem like the issue in here: https://github.com/introlab/rtabmap/issues/459
Maybe you can try the method I mentioned in it to see whether it works.
For view rtabmap.db, I entered the following script into the terminal and I got an error:
But, This file exists in /usr/local/lib
ldd as follow
ldd show: