[Insight-developers] building insightapplications fails on Debian

Michal Suchanek hramrach at centrum.cz
Mon Nov 1 05:40:29 EDT 2010


On 31 October 2010 09:50, Michal Suchanek <hramrach at centrum.cz> wrote:
> Hello
>
> I have an issue with building insightapplications-3.20.
>
> The problem is that Debian installs the ITK Python libraries in the
> standard location and probably does not update the cmake files for the
> python wrappings to point there.
>
> Further some parts of the insightapplications build do not honor
> CMAKE_MODULE_LINKER_FLAGS not CMAKE_EXE_LINKER_FLAGS and fail to link.
>
> CMAKE_EXE_LINKER_FLAGS:STRING=-L/usr/lib/pyshared/python2.6/vtk/
> CMAKE_MODULE_LINKER_FLAGS:STRING=-L/usr/lib/pyshared/python2.6/vtk/
>
> /usr/lib/pyshared/python2.6/vtk/libvtkFilteringPython.so: ELF 64-bit
> LSB shared object, x86-64, version 1 (SYSV), dynamically linked,
> stripped
>
>
> Linking CXX shared library ../../VolviewPlugIns/bin/libvtkVTKITKCommonPython.so
> cd /scratch/itk/insightapplications-3.20.0/Build/vtkITK/Common &&
> /usr/bin/cmake -E cmake_link_script
> CMakeFiles/vtkVTKITKCommonPython.dir/link.txt --verbose=1
> /usr/bin/c++  -fPIC -g -O2  -ftemplate-depth-50 -Wall -Wno-deprecated
> -Wno-deprecated -Wno-cast-qual -Wno-unused    -shared
> -Wl,-soname,libvtkVTKITKCommonPython.so -o
> ../../VolviewPlugIns/bin/libvtkVTKITKCommonPython.so

For some reason this object uses CMAKE_SHARED_LINKER_FLAGS rather than
CMAKE_MODULE_LINKER_FLAGS.

With all three set all binaries link finally.

Thanks

Michal


More information about the Insight-developers mailing list