Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Download the dependency package.
    yum install hdf5 hdf5-devel qt qt-devel
  3. Download the installation package.
    git clone --recursive https://github.com/Vaa3D/v3d_external.git
  4. Configure the environment.
    1. Open the ./build.linux file.
      cd v3d_external
      vim ./build.linux
    2. Press i to go to the insert mode, and add the following content to the beginning of the file:
      QT_DIR=/usr/lib64/qt4
      PATH=$QT_DIR/bin:$PATH
      QMAKESPEC=$QT_DIR/bin
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Modify the configuration file.
    1. Open v3d_main/build.redhat.
      vim v3d_main/build.redhat
    2. Press i to enter the insert mode and add --build=aarch64-unknown-linux-gnu to the end of the ./configure file.
      36   ../src_packages/tiff-4.0.2/configure --prefix=$tifpath --build=aarch64-unknown-linux-gnu
      ...
      61   ../src_packages/fftw-3.1.2/configure --prefix=$fftwpath --enable-float --enable-threads --enable-shared --build=aarch64-unknown-linux-gnu
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Open v3d_main/v3d/v3d_essential.pro.
      vim v3d_main/v3d/v3d_essential.pro
    5. Press i to enter the insert mode and add -lpng to line 448.
      448   LIBS += -L../common_lib/lib_unix64 -lpng -lteem  -lbz2 -lz  -lGLU #for nrrd support
    6. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Configure szip and teem.
    cd v3d_main/common_lib/lib_unix64/
    mkdir bak
    mv *.a bak/
    ln -s /path/to/szip/lib/libsz.a libszip.a
    ln -s /path/to/teem/lib/libteem.a libteem.a
  7. Perform the compilation.
    cd /path/to/v3d_external
    ./build.linux