Build Vaa3D on CentOS - Vaa3D/Vaa3D_Wiki GitHub Wiki

Prerequisites:

  • Precompiled Qt 4.7.3
  • Vaa3D Repository: git clone https://github.com/Vaa3D/v3d_external.git
  • Boost 1.57.0

Precedures

Supported Qt versions:

  • Qt 4.7.3

Unpack Qt-4.7.3.tar to /usr/local.

  • Command line: tar -xvf Qt-4.7.3.tar

  • Qt Possible problems: if your PC report bash: ./qmake: No such file or directory, just restart the system.

  • Qt path:Go to your/homedirectory to choose Show Hidden Files, then you will see.bash_profile.

    Using root privileges, then add export PATH="/usr/local/Trolltech/Qt-4.7.3/bin:$PATH" in it. The steps are shown below:

  • After git clone is finished,there is a build.linux file in v3d_external, you should add following in it.
QT4=/usr/local/Trolltech/Qt-4.7.3 
PATH=$QT4/bin:$PATH
QMAKESPEC=$QT4/mkspecs/linux-g++
  • Please follow the rules to use different paths :
QT4=<QT_4.7.3_PATH>
PATH=$QT4/bin:$PATH
QMAKESPEC=$QT4/mkspecs/<spec>
  • The step is shown below:

Git Clone

  • Go to Terminal, use sudo yum install git

  • ATTENTION :Operation in git cannot be copied from other systems ,such as Windows

Boost 1.57.0

  • After downloading, runtar -xf boost_1_57_0.tar.gz to unzip the file.

  • Enter the decompressed filecd boost_1_57_0

  • Search bootstrap.sh script in advance, then execute./bootstrap.shin the file.

  • Check and execute./b2 --without-python stage debug

Build Vaa3d

  • After finishing git clone,you can go home to find the vaa3d_external and vaa3d_tools files.

  • At the same time, libraries such as gcc g++ need to be installed for native centos, and the corresponding instructions vaa3d_wiki are there the following:

sudo yum install gcc
sudo yum install gcc-c++
sudo yum install libXext-devel.x86_64
sudo yum install libXrender-devel.x86_64
sudo yum install libpng12-devel.x86_64
  • Soft connection process after installation :
cd vaa3d_tools
ln -s ../v3d_external/v3d_main v3d_main
ln -s ../v3d_external/bin bin
cd ../v3d_external
ln -s ../vaa3d_tools/released_plugins released_plugins_more
  • To avoid errors, it is recommended to make this modification:
  • Change #include "v3d_core.h" to an absolute path inIPmain4NeuronAssemble.h.

  • Change#include "tiffio.h"to an absolute path in stackutil.h.

  • Open v3d_external file and run./build.linuxin Terminal.
⚠️ **GitHub.com Fallback** ⚠️