GitHub项目地址:fastfusion,四年前的项目了,正好用得到拿出来跑一下,记录下环境配置和问题解决。
项目依赖:
OpenCV
Qt
Doxygen
Boost
Eigen
GLUT、GLEW
libQGLViewer
安装依赖项
Opencv安装见上一篇博文
Qt
点击这里进入下载界面下载所需版本的Qt,这里我下载的是4.7.0
sudo apt-get install g++-multilib libx11-dev libxext-dev libxtst-dev zlib1g-dev lib32ncurses5 lib32z1 libpng-dev autoconf automake libtool
依次执行下列命令:
1 | $ tar -xzvf qt-everywhere-opensource-src-4.7.0.tar.gz |
sudo gedit /etc/profile
,末尾添加下列内容
1 | export QTDIR=/usr/local/Trolltech/Qt-4.7.0 |
输入qmake \-v
如果版本输出正确则安装成功。
Doxygen
1 | $ apt-get install graphviz |
Boost
sudo apt-get install libboost1.58-all-dev
Eigen
sudo apt-get install libeigen3-dev
GLUT、GLEW
1 | GLUT: |
libQGLViewer
sudo apt-get install libqglviewer-qt4-dev
错误解决
找不到OpenCV
CMakeList.txt
中:find_package(OpenCV REQUIRED)
改为set(OpenCV_DIR /usr/local/opencv/release)
libQGLViewer出错
1 | /src/onlinefusionviewer.cpp |