g2o_viewer 问题

编译完成g2o之后,运行g2o_viewer,出现以下的错误。

g2o_viewer 问题

creuther I could make it work on Ubuntu 16.04 after sudo apt-get install libqglviewer-dev-qt4 and applying this patch to your commit 96d22ed

diff --git a/cmake_modules/FindQGLViewer.cmake b/cmake_modules/FindQGLViewer.cmake
index 5cf7db3..cf5516e 100644
--- a/cmake_modules/FindQGLViewer.cmake
+++ b/cmake_modules/FindQGLViewer.cmake
@@ -19,7 +19,7 @@ FIND_PATH(QGLVIEWER_INCLUDE_DIR qglviewer.h
   )
 
 find_library(QGLVIEWER_LIBRARY_RELEASE
-  NAMES qglviewer-qt4 qglviewer QGLViewer QGLViewer2
+  NAMES qglviewer-qt4 QGLViewer-qt4 qglviewer QGLViewer QGLViewer2
   PATHS /usr/lib
         /usr/local/lib
         /usr/lib/x86_64-linux-gnu # Ubuntu 16.04 and derivatives

In other words, adding case-sensitive QGLViewer-qt4 to the already existing qglviewer-qt4.