0%

TUM_fastfusion

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
2
3
4
5
$ tar -xzvf qt-everywhere-opensource-src-4.7.0.tar.gz
$ cd qt-everywhere-opensource-src-4.7.0
$ sudo ./configure 接受
$ sudo make -j8(使用线程数,根据CPU配置)
$ sudo make install

sudo gedit /etc/profile,末尾添加下列内容

1
2
3
4
export QTDIR=/usr/local/Trolltech/Qt-4.7.0
export PATH=$QTDIR/bin:$PATH
export MANPATH=$QTDIR/man:$MANPATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

输入qmake \-v如果版本输出正确则安装成功。

Doxygen

1
2
3
$ apt-get install graphviz
$ apt-get install doxygen
$ apt-get install doxygen-gui

Boost

sudo apt-get install libboost1.58-all-dev

Eigen

sudo apt-get install libeigen3-dev

GLUT、GLEW

1
2
3
4
5
6
7
8
GLUT:
$ sudo apt-get install build-essential
$ sudo apt-get install libgl1-mesa-dev
$ sudo apt-get install libglu1-mesa-dev
$ sudo apt-get install freeglut3-dev
GLEW:
$ apt-cache search glew
安装列出的所有软件包

libQGLViewer

sudo apt-get install libqglviewer-qt4-dev

错误解决

找不到OpenCV

CMakeList.txt中:
find_package(OpenCV REQUIRED)改为set(OpenCV_DIR /usr/local/opencv/release)

libQGLViewer出错

1
2
/src/onlinefusionviewer.cpp
添加QGLViewer/manipulatedFrame.h