Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Download the dependency package.
yum install hdf5 hdf5-devel qt qt-devel
- Download the installation package.
git clone --recursive https://github.com/Vaa3D/v3d_external.git
- Configure the environment.
- Open the ./build.linux file.
cd v3d_external vim ./build.linux
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the ./build.linux file.
- Modify the configuration file.
- Open v3d_main/build.redhat.
vim v3d_main/build.redhat
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open v3d_main/v3d/v3d_essential.pro.
vim v3d_main/v3d/v3d_essential.pro
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open v3d_main/build.redhat.
- 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
- Perform the compilation.
cd /path/to/v3d_external ./build.linux
Parent topic: Vaa3D 2.2.0.0 Porting Guide (openEuler 20.03)