<br>Hi,<br><br>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?<br>
<br>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)?<br>
<br>Thanks in advance,<br>Darren<br><br><br>Here's the build error:<br><br>[ 53%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_VXLNumericsPythonPython.o<br>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<br>
Linking CXX shared module ../../../bin/_VXLNumericsPython.so<br>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<br>
/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/_<a href="http://VXLNumericsPython.3.12.0.so">VXLNumericsPython.3.12.0.so</a> CMakeFiles/_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 <br>
i686-apple-darwin9-g++-4.0.1: -compatibility_version only allowed with -dynamiclib<br>gnumake[2]: *** [bin/_<a href="http://VXLNumericsPython.3.12.0.so">VXLNumericsPython.3.12.0.so</a>] Error 1<br>gnumake[1]: *** [Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/all] Error 2<br>
gnumake: *** [all] Error 2<br><br>Warning: the following items did not execute (for InsightToolkit): org.macports.destroot org.macports.build<br>Error: Status 1 encountered during processing.<br><br><br>