[vtkusers] Problems building VTK on Mac OSX 10.2.1

Sandor Heman saanti at xs4all.nl
Sun Sep 22 16:23:17 EDT 2002


Hi,

I did as you described in your email which i've included at the bottom of
this message, from an entirely fresh start.
But after long long waiting compilation faild with the following error :(

c++ -Wno-deprecated -DvtkRenderingPythonTkWidgets_EXPORTS
-I/usr/src/VTK/Rendering -I/usr/src/VTK/Rendering -I/usr/src/VTK/Hybrid
-I/usr/src/VTK/Patented -I/usr/src/VTK/Parallel -I/usr/local/vtk
-I/usr/src/VTK/Common -I/usr/src/VTK/Filtering -I/usr/src/VTK/Imaging
-I/usr/src/VTK/Graphics -I/usr/src/VTK/IO -I/usr/src/VTK/Utilities/zlib
-I/usr/local/vtk/Utilities/zlib -I/usr/src/VTK/Utilities/png
-I/usr/local/vtk/Utilities/png -I/usr/src/VTK/Utilities/jpeg
-I/usr/local/vtk/Utilities/jpeg -I/usr/src/VTK/Utilities/tiff
-I/usr/local/vtk/Utilities/tiff -I/usr/src/VTK/Utilities/expat
-I/usr/local/vtk/Utilities/expat -I/usr/src/VTK/Common/Testing/Cxx
-I/usr/X11R6/include -I/Library/Frameworks/Tcl.framework/Headers
-I/Library/Frameworks/Tcl.framework/PrivateHeaders
-I/Library/Frameworks/Python.framework/Headers
-I/Library/Frameworks/Tk.framework/Headers
-I/Library/Frameworks/Tk.framework/PrivateHeaders
-I/usr/src/VTK/Rendering/tkOSXInternals   -DVTK_USE_COCOA -c
/usr/src/VTK/Rendering/vtkTkImageViewerWidgetPython.cxx -o
vtkTkImageViewerWidgetPython.o
In file included from
/usr/src/VTK/Rendering/vtkTkImageViewerWidgetPython.cxx:20:
/usr/src/VTK/Rendering/vtkTkImageViewerWidget.cxx: In function `int
   vtkTkImageViewerWidget_MakeImageViewer(vtkTkImageViewerWidget*)':
/usr/src/VTK/Rendering/vtkTkImageViewerWidget.cxx:852:
`vtkXOpenGLRenderWindow'
   undeclared (first use this function)
/usr/src/VTK/Rendering/vtkTkImageViewerWidget.cxx:852: (Each undeclared
   identifier is reported only once for each function it appears in.)
/usr/src/VTK/Rendering/vtkTkImageViewerWidget.cxx:852: `ImageWindow'
undeclared 
   (first use this function)
/usr/src/VTK/Rendering/vtkTkImageViewerWidget.cxx:913: parse error before
`*' 
   token
make[3]: *** [vtkTkImageViewerWidgetPython.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Rendering] Error 2
make: *** [default_target] Error 2



My config is included below too. I am still wondering why after running
cmake the opengl header path is set to /usr/X11R6/include while I'm building
For cocoa, or is this a stupid question? Imho this compilation should have
nothing to do with X11... Is that maybe what's going wrong (the error has
something to do about a vtkXOpenGLRenderWindow in which I don't like the
X...)

Any help welcome,

Bye


Sandor


CMakeCache.txt:
---------------


# This is the CMakeCache file.
# For build in directory: /usr/local/vtk
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a varible in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Build the documentation (Doxygen).
BUILD_DOCUMENTATION:BOOL=OFF

//Build VTK examples.
BUILD_EXAMPLES:BOOL=ON

//Build VTK with shared libraries.
BUILD_SHARED_LIBS:BOOL=ON

//Build the testing tree.
BUILD_TESTING:BOOL=ON

//Archive program used to make archive libraries.
CMAKE_AR:FILEPATH=/usr/bin/ar

//Arguments for CMAKE_AR program to create an archive library.
CMAKE_AR_ARGS:STRING=cr

//Archive program used to make archive libraries of c++ object
// files.
CMAKE_CXX_AR:FILEPATH=/usr/bin/ar

//Arguments for CMAKE_CXX_AR program to create an archive library.
//
CMAKE_CXX_AR_ARGS:STRING=cr

//Name of C++ compiler used.
CMAKE_CXX_COMPILER:FILEPATH=c++

//Flags used by CXX compiler.
CMAKE_CXX_FLAGS:STRING=

//program used to link c++ shared libraries
CMAKE_CXX_LINK_SHARED:STRING=c++

//Flag used by CXX to build a shared library.
CMAKE_CXX_MODULE_BUILD_FLAGS:STRING=-Wl,-flat_namespace,-U,_environ -bundle
-framework Python -undefined suppress

//Flags used to link a shared library.
CMAKE_CXX_MODULE_LINK_FLAGS:STRING=

//Flag used by CXX to build a shared library.
CMAKE_CXX_SHLIB_BUILD_FLAGS:STRING=-dynamiclib

//Flag used for building shared library objects.
CMAKE_CXX_SHLIB_CFLAGS:STRING=

//Flags used to link a shared library.
CMAKE_CXX_SHLIB_LINK_FLAGS:STRING=

//Flag used to specify run-time search paths.
CMAKE_CXX_SHLIB_RUNTIME_FLAG:STRING=

//If null, each runtime path is a separate option. Otherwise, they
// are all joined, separated by this.
CMAKE_CXX_SHLIB_RUNTIME_SEP:STRING=:

//Name of C compiler used.
CMAKE_C_COMPILER:FILEPATH=gcc2

//Flags for C compiler.
CMAKE_C_FLAGS:STRING=

//program used to link c shared libraries
CMAKE_C_LINK_SHARED:STRING=gcc

//Dynamic link library to link in.
CMAKE_DL_LIBS:STRING=

//Use HP pthreads.
CMAKE_HP_PTHREADS:BOOL=0

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make

//Flag used by CXX to build a shared library.
CMAKE_MODULE_BUILD_FLAGS:STRING=-bundle -flat_namespace -undefined suppress

//Flags used to link a shared library.
CMAKE_MODULE_LINK_FLAGS:STRING=

//Module library suffix.
CMAKE_MODULE_SUFFIX:STRING=.so

//Library randomizer program used on archive libraries.
CMAKE_RANLIB:FILEPATH=ranlib

//Flag used by CXX to build a shared library.
CMAKE_SHLIB_BUILD_FLAGS:STRING=-dynamiclib

//Flag used for building shared library objects.
CMAKE_SHLIB_CFLAGS:STRING=

//Libraries used by LD for shared libraries.
CMAKE_SHLIB_LD_LIBS:STRING=

//Flags used to link a shared library.
CMAKE_SHLIB_LINK_FLAGS:STRING=

//Flag used to specify run-time search paths.
CMAKE_SHLIB_RUNTIME_FLAG:STRING=

//If null, each runtime path is a separate option. Otherwise, they
// are all joined, separated by this.
CMAKE_SHLIB_RUNTIME_SEP:STRING=:

//Shared library suffix.
CMAKE_SHLIB_SUFFIX:STRING=.dylib

//If set, runtime paths are not added when using shared libraries.
//
CMAKE_SKIP_RPATH:BOOL=NO

//CXX template flags used by compiler.
CMAKE_TEMPLATE_FLAGS:STRING=

//Thread library used.
CMAKE_THREAD_LIBS:STRING=-lpthread

//Use the pthreads library.
CMAKE_USE_PTHREADS:BOOL=1

//Use sproc libs.
CMAKE_USE_SPROC:BOOL=0

//The system uses big endian byte ordering.
CMAKE_WORDS_BIGENDIAN:BOOL=1

//X11 extra flags.
CMAKE_X_CFLAGS:STRING= -I/usr/X11R6/include

//Libraries and options used in X11 programs.
CMAKE_X_LIBS:STRING=' -lSM -lICE  -L/usr/X11R6/lib -lX11 -lXext '

//If you have Dart installed, where is it located?
DART_ROOT:PATH=NOTFOUND

//Single output directory for building all executables.
EXECUTABLE_OUTPUT_PATH:PATH=/usr/local/vtk/bin

//Build FTGL examples (warning: you need Glut)
FTGL_BUILD_EXAMPLES:BOOL=OFF

//Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:PATH=/usr/local/vtk/bin

//What is the path where the file GL/gl.h can be found
OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include

//Where can one of the MesaGL or GL libraries be found
OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.a

//Where can one of the MesaGLU or GLU libraries be found
OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.a

//What is the path where the file GL/xmesa.h can be found
OPENGL_xmesa_INCLUDE_DIR:PATH=NOTFOUND

//Path to a program.
PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python

//What is the path where the file Python.h can be found
PYTHON_INCLUDE_PATH:PATH=/Library/Frameworks/Python.framework/Headers

//Where can one of the python, python21, python2.1, python20, python2.0,
// python1.5, python15, python22 or python2.2 libraries be found
//
PYTHON_LIBRARY:FILEPATH=-framework Python

//What is the path where the file tcl.h can be found
TCL_INCLUDE_PATH:PATH=/Library/Frameworks/Tcl.framework/Headers;/Library/Fra
meworks/Tcl.framework/PrivateHeaders

//Where can one of the tcl, tcl84, tcl8.4, tcl83, tcl8.3, tcl82,
// tcl8.2, tcl80 or tcl8.0 libraries be found
TCL_LIBRARY:FILEPATH=-framework Tcl

//Where can one of the tcld, tcl84d, tcl8.4d, tcl83d, tcl8.3d,
// tcl82d, tcl8.2d, tcl80d or tcl8.0d libraries be found
TCL_LIBRARY_DEBUG:FILEPATH=NOTFOUND

//Where can one of the tclstub, tclstub84, tclstub8.4, tclstub83,
// tclstub8.3, tclstub82, tclstub8.2, tclstub80 or tclstub8.0 libraries
// be found
TCL_STUB_LIBRARY:FILEPATH=/usr/lib/libtclstub8.3.a

//Where can one of the tclstubd, tclstub84d, tclstub8.4d, tclstub83d,
// tclstub8.3d, tclstub82d, tclstub8.2d, tclstub80d or tclstub8.0d
// libraries be found
TCL_STUB_LIBRARY_DEBUG:FILEPATH=NOTFOUND

//Path to a program.
TCL_TCLSH:FILEPATH=/usr/bin/tclsh

//What is the path where the file tk.h can be found
TK_INCLUDE_PATH:PATH=/Library/Frameworks/Tk.framework/Headers;/Library/Frame
works/Tk.framework/PrivateHeaders

//Where can one of the tk, tk84, tk8.4, tk83, tk8.3, tk82, tk8.2,
// tk80 or tk8.0 libraries be found
TK_LIBRARY:FILEPATH=-framework Tk

//Where can one of the tkd, tk84d, tk8.4d, tk83d, tk8.3d, tk82d,
// tk8.2d, tk80d or tk8.0d libraries be found
TK_LIBRARY_DEBUG:FILEPATH=NOTFOUND

//Where can one of the tkstub, tkstub84, tkstub8.4, tkstub83, tkstub8.3,
// tkstub82, tkstub8.2, tkstub80 or tkstub8.0 libraries be found
//
TK_STUB_LIBRARY:FILEPATH=NOTFOUND

//Where can one of the tkstubd, tkstub84d, tkstub8.4d, tkstub83d,
// tkstub8.3d, tkstub82d, tkstub8.2d, tkstub80d or tkstub8.0d libraries
// be found
TK_STUB_LIBRARY_DEBUG:FILEPATH=NOTFOUND

//Path to a program.
TK_WISH:FILEPATH=NOTFOUND

//Value Computed by CMake
VTKEXPAT_BINARY_DIR:STATIC=/usr/local/vtk/Utilities/expat

//Value Computed by CMake
VTKEXPAT_SOURCE_DIR:STATIC=/usr/src/VTK/Utilities/expat

//Value Computed by CMake
VTKFREETYPE_BINARY_DIR:STATIC=/usr/local/vtk/Utilities/freetype

//Value Computed by CMake
VTKFREETYPE_SOURCE_DIR:STATIC=/usr/src/VTK/Utilities/freetype

//Value Computed by CMake
VTKFTGL_BINARY_DIR:STATIC=/usr/local/vtk/Utilities/ftgl

//Value Computed by CMake
VTKFTGL_SOURCE_DIR:STATIC=/usr/src/VTK/Utilities/ftgl

//Value Computed by CMake
VTKJPEG_BINARY_DIR:STATIC=/usr/local/vtk/Utilities/jpeg

//Value Computed by CMake
VTKJPEG_SOURCE_DIR:STATIC=/usr/src/VTK/Utilities/jpeg

//Value Computed by CMake
VTKPNG_BINARY_DIR:STATIC=/usr/local/vtk/Utilities/png

//Value Computed by CMake
VTKPNG_SOURCE_DIR:STATIC=/usr/src/VTK/Utilities/png

//Value Computed by CMake
VTKTIFF_BINARY_DIR:STATIC=/usr/local/vtk/Utilities/tiff

//Value Computed by CMake
VTKTIFF_SOURCE_DIR:STATIC=/usr/src/VTK/Utilities/tiff

//Value Computed by CMake
VTKZLIB_BINARY_DIR:STATIC=/usr/local/vtk/Utilities/zlib

//Value Computed by CMake
VTKZLIB_SOURCE_DIR:STATIC=/usr/src/VTK/Utilities/zlib

//Value Computed by CMake
VTK_BINARY_DIR:STATIC=/usr/local/vtk

//Build vtkpython executable, which will correctly initialize static
// constructors. (EXPERIMENTAL)
VTK_BUILD_PYTHON_EXECUTABLE:BOOL=OFF

//What is the path where the file VTKData.readme can be found
VTK_DATA_ROOT:PATH=/usr/local/VTKData

//Build leak checking support into vtk.
VTK_DEBUG_LEAKS:BOOL=OFF

//Use mangled Mesa with OpenGL
VTK_MANGLE_MESA:BOOL=OFF

//The opengl library being used supports off screen Mesa calls.
//
VTK_OPENGL_HAS_OSMESA:BOOL=OFF

//Value Computed by CMake
VTK_SOURCE_DIR:STATIC=/usr/src/VTK

//Build VTK with 64 bit ids
VTK_USE_64BIT_IDS:BOOL=OFF

//Use the ANSI standard iostream library
VTK_USE_ANSI_STDLIB:BOOL=OFF

//Build classes using Carbon API
VTK_USE_CARBON:BOOL=OFF

//Build classes using Cocoa API - Can only use one of these!
VTK_USE_COCOA:BOOL=ON

//Build VTK with Freetype support)
VTK_USE_FREETYPE:BOOL=OFF

//Build the hybrid directory classes
VTK_USE_HYBRID:BOOL=ON

//use MPI (Message Passing Interface) library for parallel support
//
VTK_USE_MPI:BOOL=OFF

//Build the parallel directory classes
VTK_USE_PARALLEL:BOOL=ON

//Build the patented directory classes, these classes are patented
// and may require a license to use
VTK_USE_PATENTED:BOOL=ON

//Build the rendering classes used for displaying
VTK_USE_RENDERING:BOOL=ON

//Build VTK with volume pro support
VTK_USE_VOLUMEPRO:BOOL=OFF

//Build classes for the X11 window manager
VTK_USE_X:BOOL=OFF

//Where can the hints file be found
VTK_WRAP_HINTS:FILEPATH=/usr/src/VTK/Wrapping/hints

//wrap classes into the Java language
VTK_WRAP_JAVA:BOOL=OFF

//wrap classes into the Python interpreted language
VTK_WRAP_PYTHON:BOOL=ON

//Path to an internal program.
VTK_WRAP_PYTHON_EXE:FILEPATH=/usr/local/vtk/bin/./vtkWrapPython

//wrap classes into the TCL intepreted language
VTK_WRAP_TCL:BOOL=ON

//Path to an internal program.
VTK_WRAP_TCL_EXE:FILEPATH=/usr/local/vtk/bin/./vtkWrapTcl

//What is the path where the file X11/X.h can be found
X11_INCLUDE_DIR:PATH=/usr/X11R6/include

//Where can the X11 library be found
X11_X11_LIBRARY:FILEPATH=/usr/X11R6/lib/libX11.a

//Where can the Xext library be found
X11_Xext_LIBRARY:FILEPATH=/usr/X11R6/lib/libXext.a

//Dependencies for the target
vtkCommonPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkCommon;

//Dependencies for the target
vtkCommonTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;-framework Tcl;vtkCommon;

//Dependencies for the target
vtkCommon_LIB_DEPENDS:STATIC=-lpthread;-lm;

//Dependencies for the target
vtkFilteringPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFiltering;

//Dependencies for the target
vtkFilteringTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkCommonTCL;vtkFiltering;-
framework Tcl;

//Dependencies for the target
vtkFiltering_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkCommon;

//Dependencies for the target
vtkGraphicsPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkGraphics;

//Dependencies for the target
vtkGraphicsTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFilteringTCL;vtkGraphics;
-framework Tcl;

//Dependencies for the target
vtkGraphics_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFiltering;

//Dependencies for the target
vtkHybridPython_LIB_DEPENDS:STATIC=-lpthread;-lm;/usr/X11R6/lib/libGLU.a;/us
r/X11R6/lib/libGL.a;/usr/X11R6/lib/libX11.a;/usr/X11R6/lib/libXext.a;vtkHybr
id;

//Dependencies for the target
vtkHybridTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkHybrid;vtkRenderingTCL;vtkI
OTCL;

//Dependencies for the target
vtkHybrid_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkRendering;vtkIO;

//Dependencies for the target
vtkIOPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkIO;

//Dependencies for the target
vtkIOTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFilteringTCL;vtkIO;-framework
Tcl;

//Dependencies for the target
vtkIO_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFiltering;vtkpng;vtkzlib;vtkjpeg;v
tktiff;vtkexpat;

//Dependencies for the target
vtkImagingPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkImaging;

//Dependencies for the target
vtkImagingTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFilteringTCL;vtkImaging;-f
ramework Tcl;

//Dependencies for the target
vtkImaging_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFiltering;

//Dependencies for the target
vtkParallelPython_LIB_DEPENDS:STATIC=-lpthread;-lm;/usr/X11R6/lib/libGLU.a;/
usr/X11R6/lib/libGL.a;/usr/X11R6/lib/libX11.a;/usr/X11R6/lib/libXext.a;vtkPa
rallel;

//Dependencies for the target
vtkParallelTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkParallel;vtkIOTCL;vtkRend
eringTCL;

//Dependencies for the target
vtkParallel_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkRendering;vtkIO;

//Dependencies for the target
vtkPatentedPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkPatented;

//Dependencies for the target
vtkPatentedTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkPatented;vtkIOTCL;vtkGrap
hicsTCL;vtkImagingTCL;

//Dependencies for the target
vtkPatented_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkImaging;vtkGraphics;vtkIO;

//Dependencies for the target
vtkRenderingPythonTkWidgets_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkRendering;-f
ramework Tcl;-framework Tk;

//Dependencies for the target
vtkRenderingPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkRendering;

//Dependencies for the target
vtkRenderingTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkGraphicsTCL;vtkImagingTC
L;vtkRendering;-framework Tcl;-framework Tk;

//Dependencies for the target
vtkRendering_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkGraphics;vtkImaging;/usr/X1
1R6/lib/libGLU.a;/usr/X11R6/lib/libGL.a;/usr/X11R6/lib/libX11.a;/usr/X11R6/l
ib/libXext.a;

//Dependencies for the target
vtkexpat_LIB_DEPENDS:STATIC=-lpthread;-lm;

//Dependencies for the target
vtkfreetype_LIB_DEPENDS:STATIC=-lpthread;-lm;

//Dependencies for the target
vtkftgl_LIB_DEPENDS:STATIC=-lpthread;-lm;/usr/X11R6/lib/libGLU.a;/usr/X11R6/
lib/libGL.a;/usr/X11R6/lib/libX11.a;/usr/X11R6/lib/libXext.a;vtkfreetype;

//Dependencies for the target
vtkjpeg_LIB_DEPENDS:STATIC=-lpthread;-lm;

//Dependencies for the target
vtkpng_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkzlib;

//Dependencies for the target
vtktiff_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkzlib;vtkjpeg;

//Dependencies for the target
vtkzlib_LIB_DEPENDS:STATIC=-lpthread;-lm;


########################
# INTERNAL cache entries
########################

//Executable to project name.
/usr/local/vtk/bin/./vtkWrapPython:INTERNAL=vtkWrapPython
//Executable to project name.
/usr/local/vtk/bin/./vtkWrapTcl:INTERNAL=vtkWrapTcl
//What flags are required by the c++ compiler to make it ansi.
CMAKE_ANSI_CFLAGS:INTERNAL=
//What flags are required by the c++ compiler to make it ansi.
CMAKE_ANSI_CXXFLAGS:INTERNAL=
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=make
//This is the directory where this CMakeCahe.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/usr/local/vtk
//Major version of cmake used to create the current loaded cache
//
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=1
//Minor version of cmake used to create the current loaded cache
//
CMAKE_CACHE_MINOR_VERSION:INTERNAL=5
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/local/bin/cmake
//Is the compile GNU C++.
CMAKE_COMPILER_IS_GNUCXX:INTERNAL=1
//shared link flags for cc
CMAKE_C_SHLIB_LINK_FLAGS:INTERNAL=
//runtime directory flag for cc
CMAKE_C_SHLIB_RUNTIME_FLAG:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Is X11 around.
CMAKE_HAS_X:INTERNAL=1
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/usr/src/VTK
//Does the compiler support ansi for scoping.
CMAKE_NO_ANSI_FOR_SCOPE:INTERNAL=
//Does the compiler support headers like iostream.
CMAKE_NO_ANSI_STREAM_HEADERS:INTERNAL=0
//Does the compiler support the ansi stringstream class.
CMAKE_NO_ANSI_STRING_STREAM:INTERNAL=
//Does the compiler not support explicit template instantiation.
//
CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION:INTERNAL=1
//Does the compiler support std::.
CMAKE_NO_STD_NAMESPACE:INTERNAL=
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/local/share/CMake
//Size of char data type
CMAKE_SIZEOF_CHAR:INTERNAL=1
//Size of double data type
CMAKE_SIZEOF_DOUBLE:INTERNAL=8
//Size of float data type
CMAKE_SIZEOF_FLOAT:INTERNAL=4
//Size of int data type
CMAKE_SIZEOF_INT:INTERNAL=4
//Size of long data type
CMAKE_SIZEOF_LONG:INTERNAL=4
//Size of short data type
CMAKE_SIZEOF_SHORT:INTERNAL=2
//Size of void* data type
CMAKE_SIZEOF_VOID_P:INTERNAL=4
//What system is this.  Result of uname.
CMAKE_SYSTEM:INTERNAL=Darwin-6.1
//Path to an executable
CommonCxxTests_CMAKE_PATH:INTERNAL=/usr/local/vtk/Common/Testing/Cxx
//Path to an executable
FilteringCxxTests_CMAKE_PATH:INTERNAL=/usr/local/vtk/Filtering/Testing/Cxx
//Path to an executable
GenericCommunicator_CMAKE_PATH:INTERNAL=/usr/local/vtk/Parallel/Testing/Cxx
//Path to an executable
GraphicsCxxTests_CMAKE_PATH:INTERNAL=/usr/local/vtk/Graphics/Testing/Cxx
//Path to an executable
HybridCxxTests_CMAKE_PATH:INTERNAL=/usr/local/vtk/Hybrid/Testing/Cxx
//Path to an executable
IOCxxTests_CMAKE_PATH:INTERNAL=/usr/local/vtk/IO/Testing/Cxx
//Path to an executable
ImagingCxxTests_CMAKE_PATH:INTERNAL=/usr/local/vtk/Imaging/Testing/Cxx
//Path to an executable
ParallelIsoTest_CMAKE_PATH:INTERNAL=/usr/local/vtk/Parallel/Testing/Cxx
//Path to an executable
ParallelIso_CMAKE_PATH:INTERNAL=/usr/local/vtk/Examples/ParallelProcessing/G
eneric/Cxx
//Path to an executable
PipelineParallelism_CMAKE_PATH:INTERNAL=/usr/local/vtk/Examples/ParallelProc
essing/Generic/Cxx
//Path to an executable
RenderingCxxTests_CMAKE_PATH:INTERNAL=/usr/local/vtk/Rendering/Testing/Cxx
//Path to an executable
SocketClient_CMAKE_PATH:INTERNAL=/usr/local/vtk/Parallel/Testing/Cxx
//Path to an executable
SocketServer_CMAKE_PATH:INTERNAL=/usr/local/vtk/Parallel/Testing/Cxx
//Path to an executable
TaskParallelismWithPorts_CMAKE_PATH:INTERNAL=/usr/local/vtk/Examples/Paralle
lProcessing/Generic/Cxx
//Path to an executable
TaskParallelism_CMAKE_PATH:INTERNAL=/usr/local/vtk/Examples/ParallelProcessi
ng/Generic/Cxx
//Path to an executable
TestCxxFeatures_CMAKE_PATH:INTERNAL=/usr/local/vtk/Common/Testing/Cxx
//Path to an executable
TestInstantiator_CMAKE_PATH:INTERNAL=/usr/local/vtk/Common/Testing/Cxx
//Path to an executable
ThreadedCommunicator_CMAKE_PATH:INTERNAL=/usr/local/vtk/Parallel/Testing/Cxx
//Path to an executable
TimeRenderer2_CMAKE_PATH:INTERNAL=/usr/local/vtk/Rendering/Testing/Cxx
//Path to an executable
TimeRenderer_CMAKE_PATH:INTERNAL=/usr/local/vtk/Rendering/Testing/Cxx
//Advanced flag for variable: VTK_BUILD_PYTHON_EXECUTABLE
VTK_BUILD_PYTHON_EXECUTABLE-ADVANCED:INTERNAL=1
//Is this VTK built with shared libraries.
VTK_BUILD_SHARED_LIBS:INTERNAL=ON
//Where VTK executables are. Used by projects which depend on VTK.
// Do not remove.
VTK_EXECUTABLE_PATH:INTERNAL=/usr/local/vtk/bin
//Where VTK libraries are. Used by projects which depend on VTK.
// Do not remove.
VTK_LIBRARY_PATH:INTERNAL=/usr/local/vtk/bin
//Path to an executable
mkg3states_CMAKE_PATH:INTERNAL=/usr/local/vtk/Utilities/tiff
//Path to a library
vtkCommonPython_CMAKE_PATH:INTERNAL=/usr/local/vtk/Common
//Whether a library is static, shared or module.
vtkCommonPython_LIBRARY_TYPE:INTERNAL=MODULE
//Path to a library
vtkCommonTCL_CMAKE_PATH:INTERNAL=/usr/local/vtk/Common
//Whether a library is static, shared or module.
vtkCommonTCL_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkCommon_CMAKE_PATH:INTERNAL=/usr/local/vtk/Common
//Whether a library is static, shared or module.
vtkCommon_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkFilteringPython_CMAKE_PATH:INTERNAL=/usr/local/vtk/Filtering
//Whether a library is static, shared or module.
vtkFilteringPython_LIBRARY_TYPE:INTERNAL=MODULE
//Path to a library
vtkFilteringTCL_CMAKE_PATH:INTERNAL=/usr/local/vtk/Filtering
//Whether a library is static, shared or module.
vtkFilteringTCL_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkFiltering_CMAKE_PATH:INTERNAL=/usr/local/vtk/Filtering
//Whether a library is static, shared or module.
vtkFiltering_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkGraphicsPython_CMAKE_PATH:INTERNAL=/usr/local/vtk/Graphics
//Whether a library is static, shared or module.
vtkGraphicsPython_LIBRARY_TYPE:INTERNAL=MODULE
//Path to a library
vtkGraphicsTCL_CMAKE_PATH:INTERNAL=/usr/local/vtk/Graphics
//Whether a library is static, shared or module.
vtkGraphicsTCL_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkGraphics_CMAKE_PATH:INTERNAL=/usr/local/vtk/Graphics
//Whether a library is static, shared or module.
vtkGraphics_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkHybridPython_CMAKE_PATH:INTERNAL=/usr/local/vtk/Hybrid
//Whether a library is static, shared or module.
vtkHybridPython_LIBRARY_TYPE:INTERNAL=MODULE
//Path to a library
vtkHybridTCL_CMAKE_PATH:INTERNAL=/usr/local/vtk/Hybrid
//Whether a library is static, shared or module.
vtkHybridTCL_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkHybrid_CMAKE_PATH:INTERNAL=/usr/local/vtk/Hybrid
//Whether a library is static, shared or module.
vtkHybrid_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkIOPython_CMAKE_PATH:INTERNAL=/usr/local/vtk/IO
//Whether a library is static, shared or module.
vtkIOPython_LIBRARY_TYPE:INTERNAL=MODULE
//Path to a library
vtkIOTCL_CMAKE_PATH:INTERNAL=/usr/local/vtk/IO
//Whether a library is static, shared or module.
vtkIOTCL_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkIO_CMAKE_PATH:INTERNAL=/usr/local/vtk/IO
//Whether a library is static, shared or module.
vtkIO_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkImagingPython_CMAKE_PATH:INTERNAL=/usr/local/vtk/Imaging
//Whether a library is static, shared or module.
vtkImagingPython_LIBRARY_TYPE:INTERNAL=MODULE
//Path to a library
vtkImagingTCL_CMAKE_PATH:INTERNAL=/usr/local/vtk/Imaging
//Whether a library is static, shared or module.
vtkImagingTCL_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkImaging_CMAKE_PATH:INTERNAL=/usr/local/vtk/Imaging
//Whether a library is static, shared or module.
vtkImaging_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkParallelPython_CMAKE_PATH:INTERNAL=/usr/local/vtk/Parallel
//Whether a library is static, shared or module.
vtkParallelPython_LIBRARY_TYPE:INTERNAL=MODULE
//Path to a library
vtkParallelTCL_CMAKE_PATH:INTERNAL=/usr/local/vtk/Parallel
//Whether a library is static, shared or module.
vtkParallelTCL_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkParallel_CMAKE_PATH:INTERNAL=/usr/local/vtk/Parallel
//Whether a library is static, shared or module.
vtkParallel_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkPatentedPython_CMAKE_PATH:INTERNAL=/usr/local/vtk/Patented
//Whether a library is static, shared or module.
vtkPatentedPython_LIBRARY_TYPE:INTERNAL=MODULE
//Path to a library
vtkPatentedTCL_CMAKE_PATH:INTERNAL=/usr/local/vtk/Patented
//Whether a library is static, shared or module.
vtkPatentedTCL_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkPatented_CMAKE_PATH:INTERNAL=/usr/local/vtk/Patented
//Whether a library is static, shared or module.
vtkPatented_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkRenderingPythonTkWidgets_CMAKE_PATH:INTERNAL=/usr/local/vtk/Rendering
//Whether a library is static, shared or module.
vtkRenderingPythonTkWidgets_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkRenderingPython_CMAKE_PATH:INTERNAL=/usr/local/vtk/Rendering
//Whether a library is static, shared or module.
vtkRenderingPython_LIBRARY_TYPE:INTERNAL=MODULE
//Path to a library
vtkRenderingTCL_CMAKE_PATH:INTERNAL=/usr/local/vtk/Rendering
//Whether a library is static, shared or module.
vtkRenderingTCL_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkRendering_CMAKE_PATH:INTERNAL=/usr/local/vtk/Rendering
//Whether a library is static, shared or module.
vtkRendering_LIBRARY_TYPE:INTERNAL=SHARED
//Path to an executable
vtkWrapPython_CMAKE_PATH:INTERNAL=/usr/local/vtk/Wrapping
//Path to an executable
vtkWrapTcl_CMAKE_PATH:INTERNAL=/usr/local/vtk/Wrapping
//Path to an executable
vtk_CMAKE_PATH:INTERNAL=/usr/local/vtk/Wrapping/Tcl
//Path to a library
vtkexpat_CMAKE_PATH:INTERNAL=/usr/local/vtk/Utilities/expat
//Whether a library is static, shared or module.
vtkexpat_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkfreetype_CMAKE_PATH:INTERNAL=/usr/local/vtk/Utilities/freetype
//Whether a library is static, shared or module.
vtkfreetype_LIBRARY_TYPE:INTERNAL=STATIC
//Path to a library
vtkftgl_CMAKE_PATH:INTERNAL=/usr/local/vtk/Utilities/ftgl
//Whether a library is static, shared or module.
vtkftgl_LIBRARY_TYPE:INTERNAL=STATIC
//Path to a library
vtkjpeg_CMAKE_PATH:INTERNAL=/usr/local/vtk/Utilities/jpeg
//Whether a library is static, shared or module.
vtkjpeg_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkpng_CMAKE_PATH:INTERNAL=/usr/local/vtk/Utilities/png
//Whether a library is static, shared or module.
vtkpng_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtktiff_CMAKE_PATH:INTERNAL=/usr/local/vtk/Utilities/tiff
//Whether a library is static, shared or module.
vtktiff_LIBRARY_TYPE:INTERNAL=SHARED
//Path to a library
vtkzlib_CMAKE_PATH:INTERNAL=/usr/local/vtk/Utilities/zlib
//Whether a library is static, shared or module.
vtkzlib_LIBRARY_TYPE:INTERNAL=SHARED



> Patrick, Sandor,
> 
> Both carbon and cocoa now build 'out of the box' with Tk/Tcl and Python
> all working, as long as all the required frameworks are in
> /Library/Frameworks. I checked in a few changes last night to deal with
> tcl 8.4
> 
> Create a new directory, drop the following CMakeCache.txt settings into
> it:
> 
> //Build VTK examples.
> BUILD_EXAMPLES:BOOL=ON
> 
> //Build VTK with shared libraries.
> BUILD_SHARED_LIBS:BOOL=ON
> 
> //Build the testing tree.
> BUILD_TESTING:BOOL=ON
> 
> //Flag used by CXX to build a shared library.
> CMAKE_CXX_MODULE_BUILD_FLAGS:STRING=-Wl,-flat_namespace,-U,_environ
> -bundle -framework Python -undefined suppres
> s
> 
> //Flag used by CXX to build a shared library.
> CMAKE_MODULE_BUILD_FLAGS:STRING=-bundle -flat_namespace -undefined
> suppress
> 
> //Path to a program.
> PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python
> 
> //What is the path where the file Python.h can be found
> PYTHON_INCLUDE_PATH:PATH=/Library/Frameworks/Python.framework/Headers
> 
> //Where can one of the python, python21, python2.1, python20, python2.0,
> // python1.5, python15, python22 or python2.2 libraries be found
> //
> PYTHON_LIBRARY:FILEPATH=-framework Python
> 
> //Build the hybrid directory classes
> VTK_USE_HYBRID:BOOL=ON
> 
> //Build the parallel directory classes
> VTK_USE_PARALLEL:BOOL=ON
> 
> //Build the patented directory classes, these classes are patented
> // and may require a license to use
> VTK_USE_PATENTED:BOOL=ON
> 
> //wrap classes into the Python interpreted language
> VTK_WRAP_PYTHON:BOOL=ON
> 
> //wrap classes into the TCL intepreted language
> VTK_WRAP_TCL:BOOL=ON
> 
> //What is the path where the file tcl.h can be found
> TCL_INCLUDE_PATH:PATH=/Library/Frameworks/Tcl.framework/Headers;/
> Library/Frameworks/Tcl.framework/PrivateHeaders
> 
> //Where can one of the tcl, tcl84, tcl8.4, tcl83, tcl8.3, tcl82,
> // tcl8.2, tcl80 or tcl8.0 libraries be found
> TCL_LIBRARY:FILEPATH=-framework Tcl
> 
> //What is the path where the file tk.h can be found
> TK_INCLUDE_PATH:PATH=/Library/Frameworks/Tk.framework/Headers;/Library/
> Frameworks/Tk.framework/PrivateHeaders
> 
> //Where can one of the tk, tk84, tk8.4, tk83, tk8.3, tk82, tk8.2,
> // tk80 or tk8.0 libraries be found
> TK_LIBRARY:FILEPATH=-framework Tk
> 
> 
> Type cmake ../VTK
> (assuming you have a fresh cvs checkout of vtk in ../VTK)
> 
> and make.
> 
> That is how the nightly on the dash got built last night.
> 
> If you want to use shared libs, you must use gcc2 rather than gcc3 on
> the 10.2 install.
> 
> Yves
> 
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
> 




More information about the vtkusers mailing list