Ubuntu16下编译Vaa3d
https://blog.csdn.net/DOGIMA/article/details/89671537
V3D installation procedures in Ubuntu
这是一个更全的ubuntu下编译vaa3d的教程
其他版本的V3D编译见
VS2013 https://blog.csdn.net/DOGIMA/article/details/102812273
VS2010 https://blog.csdn.net/DOGIMA/article/details/99727774
https://github.com/Vaa3D/Vaa3D_Wiki/wiki/Build-Vaa3D-on-Linux
流程基本与官方相同。但是官方版本缺失了一些细节。
1.Qt从qt官网上下载,下载的是qt-everywhere-opensource-src-4.7.3版本。
https://www.qt.io/download
Qt下载后解压至某一路径,在终端界面运行
./configure
make
make install
在qmake文件夹下会生成qmake,同时生成/usr/local/Trolltech/Qt-4.7.3 。
2.Ubuntu下不使用.bash_profile,
使用
gedit ~/.profile
替代
3 如果出现qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
错误
修改/usr/lib/x86_64-linux-gnu/qt-default/qtchooser 下的default.conf文件,加入/usr/local/Trolltech/Qt-4.7.3/bin。
4.在v3d_external下的build.linux前面加入下面几行
QT4=/usr/local/Trolltech/qt-4.7.3
PATH=$QT4/bin:$PATH
QMAKESPEC=$QT4/mkspecs/linux-g++
5.编译的时候如果出现 error while loading shared libraries: libQtOpenGL.so.4: cannot open shared object file: No such file or directory
apt-get install libqt4-opengl-dev
6.如果出现了/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27’ not found (required by ./vaa3d)
这个问题,说明没有执行
第一步中的
make install
说明Qt没有成功安装。
7./usr/bin/ld: 找不到 -lXrender
sudo apt-get install libxrender-dev
有的地方会提示使用 libXrender-dev ,会提示找不到,因为要用小写的。
其他准备工作
编译通过以后,做如下3个准备工作。
1.想用中文系统,却不想用中文文件夹
先把home路径下的桌面文件夹修改为Desktop ,
gedit ~/.config/user-dirs.dirs
对应修改。
2.创建vaa3d的桌面启动器
在路径/usr/share/applications下
gedit Vaa3d.desktop
输入
[Desktop Entry]
Version=1.0
Name=Vaa 3d
Exec=/media/l204/DATA/Ubuntu_v3d/v3d_external/bin/vaa3d
Terminal=true
Icon=/media/l204/DATA/Ubuntu_v3d/v3d_external/v3d_main/v3d/pic/v3dIcon.ico
Type=Application
Categories=Development
保存,并将/usr/share/applications下的对应复制出来。
3.到hackathon、数据集或其他经常使用的文件夹下创建快捷方式。