Win10+VS2015 完整配置G2O

https://blog.csdn.net/ye_shen_wei_mian/article/details/51864239

https://blog.csdn.net/xiamentingtao/article/details/50100549

https://blog.csdn.net/vam_curse/article/details/83155104

 

使用cmake软件编译g2o的时候,CMAKE_INSTALL_PREFIX要设置成:

D:/Program Files/pl-slam-master/3rdparty/g2o/install

(这个路径等会会在cmake生成工程后,用VS打开build之后,再INSTALL的路径就是这个。我不知道为什么使用CMAKE默认路径在INSTALL的时候会出错)

 

QGLVIEWER_INCLUDE_DIR QGLVIEWER_LIBRARY_DEBUG QGLVIEWER_LIBRARY_RELEASE路径分别为:

D:/Install-Package/libQGLViewer-2.7.1/QGLViewer
D:/Install-Package/libQGLViewer-2.7.1/QGLViewer/QGLViewerd2.lib
D:/Install-Package/libQGLViewer-2.7.1/QGLViewer/QGLViewer2.lib

 CHOLMOD_INCLUDE_DIR CHOLMOD_LIBRARY CHOLMOD_MERITS_LIBRARY CHOLMOD_SUITESPARSECONFIG_LIBRARY路径分别为:

D:/Install-Package/suitesparse-metis-for-windows-1.4.0/vs2015/install/include/suitesparse
D:/Install-Package/suitesparse-metis-for-windows-1.4.0/vs2015/install/lib/Debug/libccolamdd.lib
D:/Install-Package/suitesparse-metis-for-windows-1.4.0/vs2015/install/lib/Debug/metisd.lib
D:/Install-Package/suitesparse-metis-for-windows-1.4.0/vs2015/install/lib/Debug/suitesparseconfigd.lib

D:/Install-Package/suitesparse-metis-for-windows-1.4.0/vs2015/install/lib/Debug/下面有很多lib,如果报出要添加其他的lib,直接是相同的路径+相应的lib名,如D:/Install-Package/suitesparse-metis-for-windows-1.4.0/vs2015/install/lib/Debug/suitesparseconfigd.lib

 

CSPARSE_INCLUDE_DIR CSPARSE_LIBRARY EIGEN3_INCLUDE_DIR分别为:

D:/Program Files/pl-slam-master/3rdparty/g2o/EXTERNAL/csparse
D:/Program Files/pl-slam-master/3rdparty/g2o/bin/$(Configuration)/g2o_ext_csparse.dll
D:/Program Files/pl-slam-master/3rdparty/eigen/include/eigen3
 

不知道为什么有的eigen包有include有的eigen包没有

 

你可能感兴趣的:(Win10+VS2015 完整配置G2O)