[vtkusers] Problem building Universal Binary version of VTK on Mac OSX
Jens Thomas
j.m.h.thomas at dl.ac.uk
Wed May 9 11:42:59 EDT 2007
Hi,
I'm trying to build a universal binary version of VTK on an Intel Mac
including the Python and Tcl/Tk wrappers (as I require it for an
application that uses Tkinter).
I'm using a fresh checkout from CVS for VTK and
cmake-2.4.6-Darwin-universal.
The build goes fine, building universal objects as requested until it
tries to build the file libvtkCommonPythonD.5.1.0.dylib
It then falls over with the error:
ld: common symbols not allowed with MH_DYLIB output format with the
-multi_module option
According to what I found at:
http://gcc.gnu.org/ml/gcc/2005-06/msg00186.html
I was able to fix this by cutting and pasting the line that was used to
make the object and appending "-single_module" to the flags passed to
the linker. I then re-ran make, but I now keep hitting the error:
[ 6%] Built target vtkCommonPythonD
make -f Common/CMakeFiles/vtkCommonPython.dir/build.make
Common/CMakeFiles/vtkCommonPython.dir/depend
make[2]: Nothing to be done for
`Common/CMakeFiles/vtkCommonPython.dir/depend'.
make -f Common/CMakeFiles/vtkCommonPython.dir/build.make
Common/CMakeFiles/vtkCommonPython.dir/build
make[2]: *** No rule to make target `bin/libvtkCommonPythonD.dylib',
needed by `bin/libvtkCommonPython.so'. Stop.
make[1]: *** [Common/CMakeFiles/vtkCommonPython.dir/all] Error 2
make: *** [all] Error 2
I'm fairly competent at debugging Makefiles, but CMake is a bit beyond
me and I can't work out how to satisfy the dependency.
I'd be most grateful if anyone has any suggestions as to how I can go
about fixing this.
Best wishes,
Jens
More information about the vtkusers
mailing list