[vtkusers] Failing VTK 6.1.1 build with Tk/Python on OSX 10.9.4
david.gobbi at gmail.com
Sun Sep 14 17:34:02 EDT 2014
If the VTK build is looking for a function called Tcl_GetErrorLine(),
that means that it is using a "tcl.h" for Tcl 8.6. This function doesn't
exist in Tcl 8.5 or earlier versions of Tcl.
My guess is that you have installed Tcl 8.6 on your system, and
CMake has found the Tcl 8.6 headers, but is linking to the Tcl 8.5
libraries in the System folder.
Make sure that your CMakeCache.txt use the same framework for
all the Tcl variables:
If you still have problems after setting your cache as shown above, then
you might have to find and remove the tcl.h file that is causing the error.
On Sun, Sep 14, 2014 at 2:57 PM, Jens <linucks42 at gmail.com> wrote:
> I'm trying to build VTK 6.1.1 with the Tk and Python bindings on OSX 10.9.4,
> with cmake 3.0.2 and At 5.3.1.
> The build is failing with:
> /usr/bin/c++ -g -isysroot
> -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 1.0.0
> -current_version 1.0.0 -o ../../lib/libvtkCommonCoreTCL-6.1.1.dylib
> -install_name /opt/VTK-6.1.0/build/lib/libvtkCommonCoreTCL-6.1.1.dylib
> ../../lib/libvtkCommonCore-6.1.1.dylib ../../lib/libvtksys-6.1.1.dylib
> -framework tcl -lm
> Undefined symbols for architecture x86_64:
> "_Tcl_GetErrorLine", referenced from:
> vtkTclVoidFunc(void*) in vtkTclUtil.cxx.o
> vtkTclCommand::Execute(vtkObject*, unsigned long, void*) in
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> make: *** [lib/libvtkCommonCoreTCL-6.1.1.dylib] Error 1
> make: *** [Common/Core/CMakeFiles/vtkCommonCoreTCL.dir/all] Error 2
> Can anyone suggest a workaround?
> Best wishes,
More information about the vtkusers