paraview-3.8.1をビルドした時のメモ
root権限のないsuse enterprise上で作成した。Qtを作成するときにGLIBCXXのバージョンが足りずにエラーを履いたのでgcc-4.8.0を作成した。ffmpegをリンクしなかったので動画作成できない、画像はでる。core2世代のマシンに最定期化してある。それ以外のマシンでは動かない可能性があるので、コピペするときには注意すること。
まずgcc-4.8.0を作った。
gmp-5.0.5, mpfr-3.1.1とmpc-1.0.1をコンパイルしgcc-4.8.0をコンパイルする。
1. Build Gcc
---------------------------------------------------------------------------------------------------
gmp-5.0.5
---------------------------------------------------------------------------------------------------
#!/bin/sh
PKG=gmp-5.0.5
MACHINE=core2
CONFIG_PATH=../../0.src/${PKG}/configure
MACHINE_OPT="-mtune=${MACHINE} -march=${MACHINE}"
FLAGS="-s -Os "
PREFIX=--prefix=/work/paraview-build
HOST=--host=x86_64-suse-linux-gnu
BUILD=--build=x86_64-suse-linux-gnu
TARGET=--target=x86_64-suse-linux-gnu
echo "
${CONFIG_PATH} \
${PREFIX} \
CFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
CPPFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
${HOST} ${BUILD} ${TARGET}
" > runconfig.sh
sh ./runconfig.sh >& myconfig.log
make -j 8 >& mymake.log
make check >& mycheck.log
make install >& myinstall.log
---------------------------------------------------------------------------------------------------
mpfr-3.1.1
---------------------------------------------------------------------------------------------------
#!/bin/sh
PKG=mpfr-3.1.1
MACHINE=core2
CONFIG_PATH=../../0.src/${PKG}/configure
MACHINE_OPT="-mtune=${MACHINE} -march=${MACHINE}"
FLAGS="-s -Os "
PREFIX=--prefix=/work/paraview-build
HOST=--host=x86_64-suse-linux-gnu
BUILD=--build=x86_64-suse-linux-gnu
TARGET=--target=x86_64-suse-linux-gnu
echo "
${CONFIG_PATH} \
CFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
CPPFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
${HOST} ${BUILD} ${TARGET} \
${PREFIX} \
--with-gmp=/work/paraview-build
" > runconfig.sh
sh ./runconfig.sh >& myconfig.log
make -j 8 >& mymake.log
make check >& mycheck.log
make install >& myinstall.log
---------------------------------------------------------------------------------------------------
mpc-1.0.1
---------------------------------------------------------------------------------------------------
#!/bin/sh
PKG=mpc-1.0.1
MACHINE=core2
CONFIG_PATH=../../0.src/${PKG}/configure
MACHINE_OPT="-mtune=${MACHINE} -march=${MACHINE}"
FLAGS="-s -Os "
PREFIX=--prefix=/work/paraview-build
HOST=--host=x86_64-suse-linux-gnu
BUILD=--build=x86_64-suse-linux-gnu
TARGET=--target=x86_64-suse-linux-gnu
echo "
${CONFIG_PATH} \
CFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
CPPFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
${HOST} ${BUILD} ${TARGET} \
${PREFIX} \
--with-gmp=/work/paraview-build
--with-mpfr=/work/paraview-build
" > runconfig.sh
sh ./runconfig.sh >& myconfig.log
make -j 8 >& mymake.log
make check >& mycheck.log
make install >& myinstall.log
---------------------------------------------------------------------------------------------------
gcc-4.8.0
---------------------------------------------------------------------------------------------------
#!/bin/sh
PKG=gcc-4.8.0
MACHINE=core2
CONFIG_PATH=../../0.src/${PKG}/configure
MACHINE_OPT="-mtune=${MACHINE} -march=${MACHINE}"
FLAGS="-s -Os "
PREFIX=--prefix=/work/paraview-build
HOST=--host=x86_64-suse-linux-gnu
BUILD=--build=x86_64-suse-linux-gnu
TARGET=--target=x86_64-suse-linux-gnu
echo "
${CONFIG_PATH} \
CFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
CPPFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
${HOST} ${BUILD} ${TARGET} \
${PREFIX} \
--with-gmp=/work/paraview-build
--with-mpfr=/work/paraview-build
--with-mpc=/work/paraview-build
" > runconfig.sh
sh ./runconfig.sh >& myconfig.log
make -j 8 >& mymake.log
#make check >& mycheck.log
make install >& myinstall.log
---------------------------------------------------------------------------------------------------
2. Build paraview
次にparaviewのビルドを行う。vtk-5.10.1とqt-4.6を作成しparaview-3.8.1をコンパイルする。
qt-4.6をvtk-5.10.1の作成前に作る必要がある。
cmake-2.8.1, tcl-8.2.0, tk-8.2.0 はvtk-5.10.1のコンパイルに必要だった。systemにインストールされているのならば、作る必要はない。
paraviewの動画作成を有効にする場合は、ffmpegもvtkをビルドするときにリンクする必要がある(未確認)
---------------------------------------------------------------------------------------------------
cmake-2.8.1
---------------------------------------------------------------------------------------------------
#!/bin/sh
PKG=cmake-2.8.10.2
MACHINE=core2
CONFIG_PATH=../../0.src/${PKG}/configure
MACHINE_OPT="-mtune=${MACHINE} -march=${MACHINE}"
FLAGS="-s -Os "
PREFIX=--prefix=/work/paraview-build
HOST=--host=x86_64-suse-linux-gnu
BUILD=--build=x86_64-suse-linux-gnu
TARGET=--target=x86_64-suse-linux-gnu
echo "
${CONFIG_PATH} \
${PREFIX}
" > runconfig.sh
sh ./runconfig.sh >& myconfig.log
make -j 8 >& mymake.log
make check >& mycheck.log
make install >& myinstall.log
---------------------------------------------------------------------------------------------------
openmpi-1.6.2
---------------------------------------------------------------------------------------------------
#!/bin/sh
PKG=openmpi-1.6.2
MACHINE=core2
CONFIG_PATH=../../0.src/${PKG}/configure
MACHINE_OPT="-mtune=${MACHINE} -march=${MACHINE}"
FLAGS="-s -Os "
PREFIX=--prefix=/work/paraview-build
HOST=--host=x86_64-suse-linux-gnu
BUILD=--build=x86_64-suse-linux-gnu
TARGET=--target=x86_64-suse-linux-gnu
echo "
${CONFIG_PATH} \
${PREFIX} \
CFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
CPPFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
${HOST} ${BUILD}
" > runconfig.sh
sh ./runconfig.sh >& myconfig.log
make -j 8 >& mymake.log
make check >& mycheck.log
make install >& myinstall.log
---------------------------------------------------------------------------------------------------
tcl-8.2.0
---------------------------------------------------------------------------------------------------
#!/bin/sh
PKG=tcl8.6.0/unix
MACHINE=core2
CONFIG_PATH=../../0.src/${PKG}/configure
MACHINE_OPT="-mtune=${MACHINE} -march=${MACHINE}"
FLAGS="-s -Os "
PREFIX=--prefix=/work/paraview-build
HOST=--host=x86_64-suse-linux-gnu
BUILD=--build=x86_64-suse-linux-gnu
TARGET=--target=x86_64-suse-linux-gnu
echo "
${CONFIG_PATH} \
${PREFIX} \
CFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
CPPFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
${HOST} ${BUILD} ${TARGET}
" > runconfig.sh
sh ./runconfig.sh >& myconfig.log
make -j 8 >& mymake.log
make check >& mycheck.log
make install >& myinstall.log
---------------------------------------------------------------------------------------------------
tk-8.2.0
---------------------------------------------------------------------------------------------------
#!/bin/sh
PKG=tk8.6.0/unix
MACHINE=core2
CONFIG_PATH=../../0.src/${PKG}/configure
MACHINE_OPT="-mtune=${MACHINE} -march=${MACHINE}"
FLAGS="-s -Os "
PREFIX=--prefix=/work/paraview-build
HOST=--host=x86_64-suse-linux-gnu
BUILD=--build=x86_64-suse-linux-gnu
TARGET=--target=x86_64-suse-linux-gnu
echo "
${CONFIG_PATH} \
${PREFIX} \
CFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
CPPFLAGS=' ${FLAGS} ${MACHINE_OPT} ' \
${HOST} ${BUILD} ${TARGET}
" > runconfig.sh
sh ./runconfig.sh >& myconfig.log
make -j 8 >& mymake.log
make check >& mycheck.log
make install >& myinstall.log
---------------------------------------------------------------------------------------------------
qt-4.6.0
---------------------------------------------------------------------------------------------------
../../0.src/qt-everywhere-opensource-src-4.6.0/configure \
-prefix /work/paraview-build \
-release \
-opensource \
-largefile \
-optimized-qmake
---------------------------------------------------------------------------------------------------
CAUTION: QtWebKit may fails in paraview build
vtk-5.10.1
ccmake & cmake, MPI and python warper enabled
CAUTION: qt 5.X is not supported yet. Try vtk-6.x may work.
paraview-3.8.1
ccmake & cmake, MPI and python (numPy required) enabled