[vtkusers] Solution to get VTK on RedHat 7.0
Carlos Martinez Burgos
cmarbur at iti.upv.es
Thu Apr 19 11:07:16 EDT 2001
Hi all.
The steps to get running VTK on RedHat are (always as root):
1. Install RedHat 7.0
2. Upgrade the RedHat with bugfixes from ftp://updates.redhat.com/7.0
3. Install the graphics card drivers if possible. To the Matrox G400
install drivers from the Matrox website
(http://www.matrox.com/mga/support/drivers/latest/home.cfm). I don't have a
Matrox but I think these are the drivers to get acceleration on linux.
4. Install TCL, Python and JDK (optional if you only want C++)
5. Install VTK:
5.1. cd to /usr/local/src
5.1. Run "tar zxvf vtk32-src-unix.tgz" and cd to vtk3.2
5.2. Edit /usr/local/src/vtk3.2/user.make (like in attach)
5.3. Run "./configure --with-tkwidget --with-shared --with-tcl
--with-java --with-python --with-patented --with-contrib"
5.4. Run "gmake" to build VTK
5.5. Run "gmake install"
5.6. Run ldconfig to update your libraries (I'm not sure that this is
needed)
5.7. To use vtk in java add /usr/local/lib/vtk.jar to your CLASSPATH and
add /usr/local/lib to LD_LIBRARY_PATH environment variable.
6. Install VTK data files from kitware and set the VTK_DATA variable to
point to the directory vtkdata created.
8. Now you can run the demos.
I think I don't forget any step.
This works for me. I expect the same for you.
On Thu, 19 Apr 2001, Francesco Vespignani - Euganea Medica s.r.l. wrote:
> Dear Carlos, I have seen form vtkusers list that you worked a lot for
> installing (complie etc.) vtk on red hat 7.0. I am nearly new both in
> RedHat and in vtk (i used vtk with VisualC++ in MS windows98 and i
> used digital unix some years ago) so that it is a bit difficult for me
> follow your mails to understand exactly what to do. If you could send
> me the final steps you think are needed for working with vtk under
> RedHat 7.0 i would appreciate it very much. I have a Matrox Millenium
> G400 graphic card and i want to cofigure --with-tcl (not phyton or
> java for the moment). I'd like to use --with-mesa or --with-openGL if
> is possible to use graphic card harware, but for now i can't run the
> simple mace.tcl program ! Any help form you would be very useful.
>
> tank you very much
> (for time spent to read this message :)
>
> bye
> Francesco
>
> -----------------------------------------------------------------
> Francesco Vespignani
>
> Euganea Medica s.r.l.
> Via Colombo 13
> 35020 Albignasego Padova
> Italy
>
> tel (+39)0498044823
> fax (+39)0498801599
>
>
--
----------------------------------------------------------------------
Carlos Martínez Burgos | Instituto Tecnológico de Informática
Ingeniero Informático | Universidad Politécnica de Valencia
Tlf: +34 963877237 | Camí de Vera, S/N
cmarbur at iti.upv.es | 46071 Valencia - Spain
www.iti.upv.es/~cmarbur | www.iti.upv.es
----------------------------------------------------------------------
-------------- next part --------------
# this file can be used to override any of the values selected
# by configure in system.make. At a minimum you should set
# the following Tcl/Tk values if you are planning to use Tcl/Tk
TCL_INCLUDE=-I/usr/include
TCL_LIB=-ltcl
TK_INCLUDE=-I/usr/include
TK_LIB=-ltk
MESA_INCLUDE=-I/home/martink/storage/Mesa-1.2.6/include
MESA_LIB=/home/martink/storage/Mesa-1.2.6/lib-sun4-solaris/libMesaGL.a
# for python you must set this
PYTHON_INCLUDES=-I/usr/include/python1.5
# Add additional CFLAGS and CXXFLAGS for compilation
# uncomment the following two lines to set your own flags
USER_CFLAGS = -O2
USER_CXXFLAGS = -O2
# if you want to try the java support you'll need to set the following
# variables to match your environment and uncomment them
#
#Set JAVA_HOME to the directory where jdk is installed
JDKHOME=${JAVA_HOME}
JAVAC=${JDKHOME}/bin/javac
JAR=${JDKHOME}/bin/jar
JAVA_CLASS_HOME=/usr/local/src/vtk3.2/java
JAVAH=${JDKHOME}/bin/javah
JAVA_INCLUDES=-I${JDKHOME}/include -I${JDKHOME}/include/linux
JAVA_CXX_LIB=/usr/lib/libiberty.a /usr/lib/gcc-lib/i386-redhat-linux/2.96/libstdc++.a /usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a
More information about the vtkusers
mailing list