Install vIST/e (GNU/Linux 32 or 64 bit)
Install some basic packages:
sudo apt-get install build-essential
sudo apt-get install cmake-curses-gui
sudo apt-get install libxext-dev
sudo apt-get install subversion
sudo apt-get install libxext-dev
If QT and VTK are installed on your system please skip to step 3.
We have two options; we can use binary installer or compile source code:
Option1
Run Binary Installer as root or using sudo:
$ ./Qt_SDK_Lin64_offline_v1_1_2_en.run
Set the install path when asked to /opt/qtsdk or any other directory you prefer.
For our case the qmake path will be /opt/qtsdk/Desktop/Qt/473/gcc/bin/qmake.
Option2
Compile Qt Source Code:
Make sure build tools( eg. build-essential package for ubuntu) and libxext-dev is installed.
Download qt source code.
$cd qt-everywhere-opensource-src-4.8.4
$./configure
$./make
$./make install
Default install path is /usr/local/Trolltech/ therefore default qmake position is /usr/local/Trolltech/Qt-4.8.4/bin/qmake .
Option3
Install from the Ubuntu repository:
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
Make sure cmake is installed. If not, for ubuntu, install cmake-curses-gui package.
(Not sure Install mesa-common-dev and freeglut3-dev packages.?)
Download VTK source code, VTK 5.0.8 or 5.10 are tested for vIST/e.
Create a VTK-build directory in the directory where VTK directory is in.
$ cd VTK-build
$ ccmake ../VTK
Make sure these variables/flags below are ON. Press c after setting each variable because it may make other variables appear.
BUILD_SHARED_LIBS ON
VTK_USE_QT ON
VTK_USE_QTCHARTS ON
Set QT_QMAKE_EXECUTABLE if qmake is not found. e.g. /opt/qtsdk/Desktop/Qt/473/gcc/bin/qmake
After setting up all variables press c then g to generate the makefile.
Build and install:
$ make
$ make install
Make sure build tools and cmake are installed, corresponding packages are build-essential and cmake-curses-gui in Ubuntu Package Manager. Libxext-dev is also necessary to be able to compile VTK. sudo apt-get install Libxext-dev is the command for Ubuntu linux distribution. (mesa-common-dev and freeglut3-dev packages were also loaded but not sure if they are necessary?)
Make sure VTK is compiled with necessary configuration settings.
Anonymous users can only check out the vIST/e trunk by using the following svn command:
$ mkdir vistetool; cd vistetool (not necessary)
$ svn checkout https://svn.berlios.de/svnroot/repos/viste-tool/trunk trunk
Other users can use this command:
$ svn checkout https://username@svn.berlios.de/svnroot/repos/viste-tool vistetool
Make sure the directory name you gave ( eg. vistetool ) does not include a hyphen (-).
Make sure you have -fPIC exist in CMAKE_ CXX_FLAGS in CmakeLists.txt file of trunk directory:
SET(CMAKE_CXX_FLAGS "-fPIC" CACHE STRING "Add CXX compiler flags" FORCE)
Important: -fpermissive flag might also be necessary.
$ cd vistetool
$ mkdir build
$ cd build
$ ccmake ../trunk
Set QT_QMAKE_EXECUTABLE path of ccmake gui. If there are two versions of Qt installed, use the version you used during the compilation of VTK.
- CMAKE_CXX_FLAGS -fPIC (and -fpermissive for 64bit OS)
- CMAKE_C_FLAGS -fPIC (and -fpermissive for 64bit OS)
- CMAKE_SHARED_LINKER_FLAGS -fPIC
- BUILD_SHARED_LIBS ON
Press c after setting a variable or flag.
After setting up all, press g to generate the makefile. Then
$ make
which compiles and generates the executable file under vistetool/build/tool/bin
$ ./tool/bin/vISTe
A shorter guide, prepared formerly.