VTK installation
1. Lsi用的參數 ./configure --with-x --with-tcl --with-tkwidget --with-patented --with-contrib --with-sharedMsg #1 Msg#2
1. Vtk & OpenGL
http://www.vtk.org/Wiki/VTK_OpenGL#Setup_VTK
1. 所有的參數
[samuel@palm141 vtk3.2]$ ./configure --help
Usage: configure [options] [host] Options: [defaults in brackets after descriptions]
Configuration:
--cache-file=FILE cache test results in FILE
--help print this message
--no-create do not create output files
--quiet, --silent do not print `checking...' messages
--version print the version of autoconf that created configure
Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
run sed PROGRAM on installed program names
Host type:
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [guessed]
--target=TARGET configure for TARGET [TARGET=HOST]
Features and packages:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
--enable and --with options recognized:
--with-x use the X Window System
--with-sproc use sproc instead of pthreads if possible
--with-mesa create the mesa specific renderer
--with-opengl create the opengl specific renderer
--with-tkwidget build the vtkTkRenderWidget class
--with-tkwidgets build the vtkTkRenderWidget class
--with-mpi create the mpi specific controller
--with-shared create shared libraries
--with-tcl build vtk the tcl based interpreter
--with-java build vtk with java support
--with-python build vtk with python support
--without-graphics do not include the graphics classes
--without-imaging do not include the imaging classes
--with-tkwidget build the vtkTkRenderWidget class
--with-patented include the patented classes
--with-contrib include the contrib classes
--with-local include the local classes
--with-bsdmake uses bsd style makefile includes
--with-java build vtk with java support
從mailing list中得取:
A couple things to suggest - look at the CMakeCache.txt file to make certain it's point to the correct OpenGL libraries.