cd /path/to/VMD
tar -xvf vmd-1.9.4a55.src.tar.gz
cd vmd-1.9.4a55
yum install fltk fltk-devel
mkdir -p /path/to/VMD/vmd-1.9.4a55/lib/actc cd /path/to/VMD/vmd-1.9.4a55/lib/actc
tar xvf actc-1.1.tar.gz
mv actc-1.1/* ./ make
若回显信息中有“libactc.a”,则表示编译成功。需要额外信息请查看README。
cd /path/to/VMD/vmd-1.9.4a55/lib/stride
tar xvf stride.tar.gz
make
ln -s /path/to/VMD/vmd-1.9.4a55/lib/stride/stride /path/to/VMD/vmd-1.9.4a55/lib/stride/stride_LINUXARM64
cd /path/to/VMD/vmd-1.9.4a55/lib/surf
tar xvf surf.tar.Z
yum install imake make depend make surf
ln -s /path/to/VMD/vmd-1.9.4a55/lib/stride/surf /path/to/VMD/vmd-1.9.4a55/lib/stride/surf_LINUXARM64
mkdir -p /path/to/VMD/vmd-1.9.4a55/lib/vrpn cd /path/to/VMD/vmd-1.9.4a55/lib/vrpn
unzip vrpn-master.zip
mv vrpn-master/* ./ mkdir build cd build yum install cmake libarchive cmake ../ -DCMAKE_INSTAL_PREFIX=/path/to/vmd/vmd-1.9.4a55/lib/vrpn/ make && make install
cd /path/to/VMD/vmd-1.9.4a55/lib/tachyon
下载地址:http://jedi.ks.uiuc.edu/~johns/raytracer/files/0.99b6/tachyon-0.99b6.tar.gz
tar xvf tachyon-0.99b6.tar.gz
cd tachyon/unix
sed -i "s/-m64//" Make-arch
cd ../ demosrc vi spaceball.c
35 if (port != NULL) { … 109 if ((buttonchanged & SBALL_BUTTON_PICK) && (buttons & SBALL_BUTTON_PICK)) || 110 (buttonchanged & SBALL_BUTTON_1) && (buttons & SBALL_BUTTON_1)) || 111 (buttonchanged & SBALL_BUTTON_LEFT) && (buttons & SBALL_BUTTON_LEFT)) ) {
修改后:
35 if (serialport != NULL) { … 109 if (((buttonchanged & SBALL_BUTTON_PICK) && (buttons & SBALL_BUTTON_PICK)) || 110 ((buttonchanged & SBALL_BUTTON_1) && (buttons & SBALL_BUTTON_1)) || 111 ((buttonchanged & SBALL_BUTTON_LEFT) && (buttons & SBALL_BUTTON_LEFT)) ) {
cd ../unix make linux-64-thr
ln –s /path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon/compile/linux-64-thr/tachyon /path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon_LINUXARM64
Tcl下载地址:https://mirrors.huaweicloud.com/centos-vault/altarch/7/os/aarch64/Packages/tcl-8.5.13-8.el7.aarch64.rpm
cd /path/to/rpm rpm –ivh tcl-8.5.13-8.el7.aarch64.rpm rpm –ivh tcl-devel-8.5.13-8.el7.aarch64.rpm rpm –ivh tk-8.5.13-6.el7.aarch64.rpm rpm –ivh tk-devel-8.5.13-6.el7.aarch64.rpm
cd /path/to/VMD/plugins
export TCL_INCLUDE_DIR=/usr/share/tcl8.5 export TCL_LIBRARY_DIR=/usr/lib64/tcl8.5
make LINUXARM64 mkdir /path/to/vmd/vmd-1.9.4a55/plugins export PLUGINDIR=/path/to/vmd/vmd-1.9.4a55/plugins make distrib
cd /path/to/vmd/vmd-1.9.4a55/
vi configure
$install_bin_dir="/path/to/vmd/ vmd-1.9.4a55/bin"; $install_library_dir="/path/to/vmd/ vmd-1.9.4a55/lib/vmd";
$libtachyon_dir="/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon"; $libtachyon_include="-I/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon/src"; $libtachyon_library="-L"/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon/compile/linux-64-thr;
16 $install_bin_dir="/usr/local/bin"; 17 18 # Directory where VMD files and executables are installed 19 $install_library_dir="/usr/local/lib/$install_name"; … 1354 $libtachyon_dir = "$vmd_library_dir/tachyon"; 1355 $libtachyon_include = "-I$libtachyon_dir/include"; 1356 $libtachyon_library = "-L$libtachyon_dir/lib_$config_arch"; … 2627 "-gencode arch=compute_30,code=compute_30 " .
修改后:
16 $install_bin_dir="/path/to/vmd/vmd-1.9.4a55/bin"; 17 18 # Directory where VMD files and executables are installed 19 $install_library_dir="/path/to/vmd/vmd-1.9.4a55/lib/vmd"; … 1354 $libtachyon_dir = "/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon"; 1355 $libtachyon_include = "-I/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon/src"; 1356 $libtachyon_library = "-L/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon/compile/linux-64-thr"; … 2627 #"-gencode arch=compute_30,code=compute_30 " .
./configure LINUXARM64 EGLPBUFFER CUDA IMD LIBTACHYON ZLIB COLVARS TCL PTHREADS SILENT cd src && make veryclean make
若显示中出现“No resource compiler required on this platform”,表示编译顺利。
make install
若回显信息中显示"Make sure /Projects/vmd/ vmd-1.9.4a55/bin is in your path.VMD installation complete. Enjoy!",表示安装成功。