[Insight-users] Build error on OSX: wrap_VXLNumericsPythonPython.o

Darren Weber darren.weber.lists at gmail.com
Tue May 12 13:46:48 EDT 2009


Hi,

What's the fix for this issue with dynamic lib builds with python wrapping
in ITK (3.12)?  The linker appears to be building a dynamic lib (or shared
lib, *.so), but perhaps the linker option "-dynamiclib" is missing somewhere
in the cmake config?  Please tell me if there is simple patch to fix this.
Could it be an issue with using "-Wno-long-double" for the vnl numerics
wrapping?

This build uses CableSwig build options (ie, cmake ... -D
ITK_CSWIG_PYTHON:BOOL=ON ...), rather than USE_WRAP_ITK.  What is the most
preferred wrapping method for ITK @3.12?  I noticed mention of a new
release, 3.14, in the wings and nearly available.  Does the new release
(3.14) resolve build problems for wrappers (or is the focus of that release
elsewhere)?

Thanks in advance,
Darren


Here's the build error:

[ 53%] Building CXX object
Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_VXLNumericsPythonPython.o
cd
/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Wrapping/CSwig/VXLNumerics
&& /opt/local/bin/c++   -DSWIG_GLOBAL -D_VXLNumericsPython_EXPORTS
-ftemplate-depth-50 -Wall -Wno-deprecated -no-cpp-precomp -Wno-long-double
-w -O2 -g -fPIC
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Code/Algorithms
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Code/BasicFilters
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Code/Common
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Code/Numerics
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Code/IO
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Code/Numerics/FEM
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Code/Numerics/Statistics
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Code/Numerics/NeuralNetworks
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Code/SpatialObject
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/MetaIO
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/NrrdIO
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Utilities/NrrdIO
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/DICOMParser
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Utilities/DICOMParser
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Utilities/expat
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/expat
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/nifti/niftilib
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/nifti/znzlib
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/itkExtHdrs
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Utilities
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/vxl/v3p/netlib
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/vxl/vcl
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/vxl/core
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Utilities/vxl/v3p/netlib
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Utilities/vxl/vcl
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Utilities/vxl/core
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Utilities/gdcm
-I/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12/Utilities/gdcm/src
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Headers   -o
CMakeFiles/_VXLNumericsPython.dir/wrap_VXLNumericsPythonPython.o -c
/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Wrapping/CSwig/VXLNumerics/wrap_VXLNumericsPythonPython.cxx
Linking CXX shared module ../../../bin/_VXLNumericsPython.so
cd
/opt/local/var/macports/build/_Users_dweber_ports_graphics_InsightToolkit/work/InsightToolkit-3.12-build/Wrapping/CSwig/VXLNumerics
&& /opt/local/bin/cmake -E cmake_link_script
CMakeFiles/_VXLNumericsPython.dir/link.txt --verbose=1
/opt/local/bin/c++    -ftemplate-depth-50 -Wall -Wno-deprecated
-no-cpp-precomp -Wno-long-double -w -O2 -g -bundle
-headerpad_max_install_names   -compatibility_version 3.12.0
-current_version 3.12.0 -o
../../../bin/_VXLNumericsPython.3.12.0.soCMakeFiles/_VXLNumericsPython.dir/wrap_vnl_matrixPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_vectorPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_c_vectorPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_diag_matrixPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_file_matrixPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_file_vectorPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_fortran_copyPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_matrix_fixedPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_matrix_fixed_refPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_matrix_refPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_vector_refPython.o
CMakeFiles/_VXLNumericsPython.dir/wrap_VXLNumericsPythonPython.o -L.
../../../bin/libitkvnl_algo.3.12.0.dylib
../../../bin/libitkvnl_inst.3.12.0.dylib
../../../bin/libSwigRuntimePython.3.12.0.dylib -framework Python
../../../bin/libitkvnl_algo.3.12.0.dylib
../../../bin/libitkv3p_netlib.3.12.0.dylib
../../../bin/libitkvnl.3.12.0.dylib ../../../bin/libitkvcl.3.12.0.dylib -lm
i686-apple-darwin9-g++-4.0.1: -compatibility_version only allowed with
-dynamiclib
gnumake[2]: *** [bin/_VXLNumericsPython.3.12.0.so] Error 1
gnumake[1]: ***
[Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/all] Error 2
gnumake: *** [all] Error 2

Warning: the following items did not execute (for InsightToolkit):
org.macports.destroot org.macports.build
Error: Status 1 encountered during processing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090512/48698a37/attachment.htm>


More information about the Insight-users mailing list