[vtkusers] vtk & MacOSX/Darwin: ld problem

Marc Dellinger dellinge at mnhn.fr
Tue May 6 03:58:05 EDT 2003


Bonjour,

Adrian Umpleby has recently reported mayavi working on OSX/Darwin, so I  
wnt to try that again but I can't install vtk with VTK_USE_X:BOOL=ON.

System is
MacOSX 10.2.5/XDarwin 1.2 (i.e. XFree86 4.3)
Fink (Python2.2, TclTk8.4.1)
vtkNightlySrc.tar.gz
cmake 1.6
CMakeCache.txt at the end of the mail

Everything goes well (except "/sw/lib" instead of "-L/sw/lib" somewhere  
in the Makefiles that I have to change by hand) until

Building shared library /usr/local/VTK/bin/libvtkRenderingTCL.dylib...
ld: warning multiple definitions of symbol _tclPlatStubsPtr
/sw/lib/libtcl8.4.dylib(tclStubLib.o) definition of _tclPlatStubsPtr
/sw/lib/libtk8.4.dylib(tclStubLib.o) definition of _tclPlatStubsPtr
ld: warning multiple definitions of symbol _tclIntStubsPtr
/sw/lib/libtcl8.4.dylib(tclStubLib.o) definition of _tclIntStubsPtr
/sw/lib/libtk8.4.dylib(tclStubLib.o) definition of _tclIntStubsPtr
ld: warning multiple definitions of symbol _Tcl_InitStubs
/sw/lib/libtcl8.4.dylib(tclStubLib.o) definition of _Tcl_InitStubs
/sw/lib/libtk8.4.dylib(tclStubLib.o) definition of _Tcl_InitStubs
ld: warning multiple definitions of symbol _tclIntPlatStubsPtr
/sw/lib/libtcl8.4.dylib(tclStubLib.o) definition of _tclIntPlatStubsPtr
/sw/lib/libtk8.4.dylib(tclStubLib.o) definition of _tclIntPlatStubsPtr
ld: warning multiple definitions of symbol _tclStubsPtr
/sw/lib/libtcl8.4.dylib(tclStubLib.o) definition of _tclStubsPtr
/sw/lib/libtk8.4.dylib(tclStubLib.o) definition of _tclStubsPtr
ld: Undefined symbols:
_vtkTkImageViewerWidget_Init
_vtkTkRenderWidget_Init
/usr/bin/libtool: internal link edit command failed
make[3]: *** [/usr/local/VTK/bin/libvtkRenderingTCL.dylib] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Rendering] Error 2
make: *** [default_target] Error 2

Any idea what to do?

Thanks in advance

Marc Dellinger


//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

//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar

//For backwards compatibility, what version of CMake commands and
// syntax should this version of CMake allow.
CMAKE_BACKWARDS_COMPATIBILITY:STRING=1.6

//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
//
CMAKE_BUILD_TYPE:STRING=

//C++ compiler
CMAKE_CXX_COMPILER:STRING=c++

//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=

//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=

//Flags used by the compiler during Release with Debug Info builds.
//
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=

//C compiler
CMAKE_C_COMPILER:STRING=gcc

//Flags for C compiler.
CMAKE_C_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=

//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=

//Flags used by the compiler during Release with Debug Info builds.
//
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
//
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Use HP pthreads.
CMAKE_HP_PTHREADS:BOOL=OFF

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

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

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
//
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib

//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
//
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

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

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

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

//Use sproc libs.
CMAKE_USE_SPROC:BOOL=OFF

//Use the win32 thread library.
CMAKE_USE_WIN32_THREADS:BOOL=OFF

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only.
CMAKE_VERBOSE_MAKEFILE:BOOL=OFF

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

//Libraries and options used in X11 programs.
CMAKE_X_LIBS:STRING=-lSM;-lICE;/usr/X11R6/lib/libX11.a;/usr/X11R6/lib/ 
libXext.a

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

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

//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

//OpenGL lib for OSX
OPENGL_gl_LIBRARY:STRING=-lGL

//AGL lib for OSX
OPENGL_glu_LIBRARY:STRING=-lGLU

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

//Python Framework
PYTHON_DEBUG_LIBRARY:FILEPATH=-framework Python

//Path to a program.
PYTHON_EXECUTABLE:FILEPATH=/sw/bin/python2.2

//What is the path where the file Python.h can be found
PYTHON_INCLUDE_PATH:PATH=/sw/include/python2.2

//Python Framework
PYTHON_LIBRARY:FILEPATH=/sw/lib/python2.2

//Utility library needed for vtkpython
PYTHON_UTIL_LIBRARY:FILEPATH=PYTHON_UTIL_LIBRARY-NOTFOUND

//What is the path where the file tcl.h can be found
TCL_INCLUDE_PATH:PATH=/sw/include

//Tcl Framework
TCL_LIBRARY:FILEPATH=/sw/lib/libtcl8.4.dylib

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

//What is the path where the file tk.h can be found
TK_INCLUDE_PATH:PATH=/sw/include

//What is the path where the file tkMacOSXInt.h can be found
TK_INTERNAL_PATH:PATH=/usr/local/VTK/Rendering/tkInternals/tk84OSX

//Tk Framework
TK_LIBRARY:FILEPATH=/sw/lib/libtk8.4.dylib

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

//Value Computed by CMake
VTKEXPAT_SOURCE_DIR:STATIC=/usr/local/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/local/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/local/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/local/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/local/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/local/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/local/VTK/Utilities/zlib

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

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

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

//Disables the automatic initialization of Tk widgets when loading
// the rendering library.
VTK_DISABLE_TK_INIT: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/local/VTK

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

//Use the ANSI standard iostream library.
VTK_USE_ANSI_STDLIB:BOOL=ON

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

//Build classes using Cocoa API.
VTK_USE_COCOA:BOOL=OFF

//Build the vtkHybrid kit.
VTK_USE_HYBRID:BOOL=OFF

//Use mangled Mesa with OpenGL.
VTK_USE_MANGLED_MESA:BOOL=OFF

//Build the vtkParallel kit.
VTK_USE_PARALLEL:BOOL=OFF

//Build the vtkPatented kit.  These classes are patented and may
// require a license to use.
VTK_USE_PATENTED:BOOL=OFF

//Build the vtkRendering kit.  Needed for displaying data.
VTK_USE_RENDERING:BOOL=ON

//Use the system's expat library.
VTK_USE_SYSTEM_EXPAT:BOOL=OFF

//Use the system's jpeg library.
VTK_USE_SYSTEM_JPEG:BOOL=OFF

//Use the system's png library.
VTK_USE_SYSTEM_PNG:BOOL=OFF

//Use the system's tiff library.
VTK_USE_SYSTEM_TIFF:BOOL=OFF

//Use the system's zlib library.
VTK_USE_SYSTEM_ZLIB:BOOL=OFF

//Build VTK with VolumePro support.
VTK_USE_VOLUMEPRO:BOOL=OFF

//Build classes for the X11 window system.
VTK_USE_X:BOOL=ON

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

//Wrap VTK classes into the Java language.
VTK_WRAP_JAVA:BOOL=OFF

//Wrap VTK classes into the Python language.
VTK_WRAP_PYTHON:BOOL=ON

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

//Wrap VTK classes into the TCL 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_X11_INCLUDE_PATH:PATH=/usr/X11R6/include

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

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

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

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

//Dependencies for the target
vtkCommonPython_LIB_DEPENDS:STATIC=/sw/lib/python2.2;vtkCommon;

//Dependencies for the target
vtkCommonTCL_LIB_DEPENDS:STATIC=vtkCommon;/sw/lib/libtcl8.4.dylib;

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

//Dependencies for the target
vtkFilteringPython_LIB_DEPENDS:STATIC=/sw/lib/python2.2;vtkFiltering;

//Dependencies for the target
vtkFilteringTCL_LIB_DEPENDS:STATIC=vtkFiltering;vtkCommonTCL;

//Dependencies for the target
vtkFiltering_LIB_DEPENDS:STATIC=vtkCommon;

//Dependencies for the target
vtkGraphicsPython_LIB_DEPENDS:STATIC=/sw/lib/python2.2;vtkGraphics;

//Dependencies for the target
vtkGraphicsTCL_LIB_DEPENDS:STATIC=vtkGraphics;vtkFilteringTCL;

//Dependencies for the target
vtkGraphics_LIB_DEPENDS:STATIC=vtkFiltering;

//Dependencies for the target
vtkIOPython_LIB_DEPENDS:STATIC=/sw/lib/python2.2;vtkIO;

//Dependencies for the target
vtkIOTCL_LIB_DEPENDS:STATIC=vtkIO;vtkFilteringTCL;

//Dependencies for the target
vtkIO_LIB_DEPENDS:STATIC=vtkFiltering;vtkpng;vtkzlib;vtkjpeg;vtktiff;vtk 
expat;

//Dependencies for the target
vtkImagingPython_LIB_DEPENDS:STATIC=/sw/lib/python2.2;vtkImaging;

//Dependencies for the target
vtkImagingTCL_LIB_DEPENDS:STATIC=vtkImaging;vtkFilteringTCL;

//Dependencies for the target
vtkImaging_LIB_DEPENDS:STATIC=vtkFiltering;

//Dependencies for the target
vtkRenderingPythonTkWidgets_LIB_DEPENDS:STATIC=vtkRendering;/sw/lib/ 
libtcl8.4.dylib;/sw/lib/libtk8.4.dylib;

//Dependencies for the target
vtkRenderingPython_LIB_DEPENDS:STATIC=/sw/lib/python2.2;vtkRendering;

//Dependencies for the target
vtkRenderingTCL_LIB_DEPENDS:STATIC=vtkRendering;vtkGraphicsTCL;vtkImagin 
gTCL;/sw/lib/libtcl8.4.dylib;/sw/lib/libtk8.4.dylib;

//Dependencies for the target
vtkRendering_LIB_DEPENDS:STATIC=vtkGraphics;vtkImaging;vtkftgl;vtkfreety 
pe;-lGLU;-lGL;-lSM;-lICE;-lSM;-lICE;/usr/X11R6/lib/libX11.a;/usr/X11R6/ 
lib/libXext.a;/usr/X11R6/lib/libX11.a;/usr/X11R6/lib/libXext.a;-lXt;- 
lSM;-lICE;/usr/X11R6/lib/libX11.a;/usr/X11R6/lib/libXext.a;

//Dependencies for target
vtkexpat_LIB_DEPENDS:STATIC=

//Dependencies for the target
vtkfreetype_LIB_DEPENDS:STATIC=-framework AppKit;

//Dependencies for the target
vtkftgl_LIB_DEPENDS:STATIC=-lGLU;-lGL;-lSM;-lICE;-lSM;-lICE;-lSM;- 
lICE;/usr/X11R6/lib/libX11.a;/usr/X11R6/lib/libXext.a;/usr/X11R6/lib/ 
libX11.a;/usr/X11R6/lib/libXext.a;/usr/X11R6/lib/libX11.a;/usr/X11R6/ 
lib/libXext.a;vtkfreetype;

//Dependencies for target
vtkjpeg_LIB_DEPENDS:STATIC=

//Dependencies for the target
vtkpng_LIB_DEPENDS:STATIC=vtkzlib;

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

//Dependencies for target
vtkzlib_LIB_DEPENDS:STATIC=
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 14327 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030506/8be2d91c/attachment.bin>


More information about the vtkusers mailing list