[Insight-users] Link to library missing

Philippe Tigreat philippe.tigreat at dosisoft.com
Wed May 25 11:22:24 EDT 2011


Hello,

I'm having troubles compiling itk correctly with qmake. When I launch my 
application I get the error message :  
'.so: undefined symbol: _ZVTN3itk11LightObjectE'.
I know it means that I have omitted to link one ITK library, but I fail 
to find which library is missing. Here's the list of all ITK libraries I 
have included in the qmake-extras.pro file :

LIBS    +=      -L${ITKDIR}/Binary/bin \
               -lITKAlgorithms \
               -lITKStatistics \
               -lITKFEM \
               -lITKBasicFilters \
               -lITKCommon \
                -lITKPatented \
               -lVXLNumerics \
               -lITKNumerics \
                -lITKReview \
               -lITKIO \
               -lITKNrrdIO \
               -litkgdcm \
               -litkjpeg12 \
               -litkjpeg16 \
               -litkopenjpeg \
               -litkpng \
               -litktiff \
               -litkjpeg8 \
               -lITKSpatialObject \
               -lITKNumerics \
               -litkvnl_inst \
               -litkvnl_algo \
               -litkvnl \
               -litkvcl \
               -lm \
               -litksys \
               -lITKMetaIO \
               -lITKDICOMParser \
               -lITKEXPAT \
               -lITKniftiio \
               -lITKznz \
               -litkzlib \
               -litknetlib

and here is the list of paths :

INCLUDEPATH += ${ITKDIR}
INCLUDEPATH += ${ITKDIR}/Code/Algorithms
INCLUDEPATH += ${ITKDIR}/Code/BasicFilters
INCLUDEPATH += ${ITKDIR}/Code/Common
INCLUDEPATH += ${ITKDIR}/Code/IO
INCLUDEPATH += ${ITKDIR}/Code/Numerics
INCLUDEPATH += ${ITKDIR}/Code/Numerics/FEM
INCLUDEPATH += ${ITKDIR}/Code/Numerics/Statistics
INCLUDEPATH += ${ITKDIR}/Code/Numerics/NeuralNetworks
INCLUDEPATH += ${ITKDIR}/Utilities/MetaIO
INCLUDEPATH += ${ITKDIR}/Utilities/NrrdIO
INCLUDEPATH += ${ITKDIR}/Utilities/DICOMParser
INCLUDEPATH += ${ITKDIR}/Utilities/expat
INCLUDEPATH += ${ITKDIR}/Utilities/nifti/niftilib
INCLUDEPATH += ${ITKDIR}/Utilities/nifti/znzlib
INCLUDEPATH += ${ITKDIR}/Utilities/gdcm
INCLUDEPATH += ${ITKDIR}/Code/Patented
INCLUDEPATH += ${ITKDIR}/Code/Review
INCLUDEPATH += ${ITKDIR}/Code/Review/Statistics/
INCLUDEPATH += ${ITKDIR}/Code/SpatialObject
INCLUDEPATH += ${ITKDIR}/Binary
INCLUDEPATH += ${ITKDIR}/Binary/Utilities/
INCLUDEPATH += ${ITKDIR}/Binary/Utilities/itksys/
INCLUDEPATH += ${ITKDIR}/Binary/Utilities/vxl/vcl
INCLUDEPATH += ${ITKDIR}/Binary/Utilities/vxl/core/
INCLUDEPATH += ${ITKDIR}/Binary/Utilities/vxl/core/vnl
INCLUDEPATH += ${ITKDIR}/Utilities/
INCLUDEPATH += ${ITKDIR}/Utilities/vxl/core
INCLUDEPATH += ${ITKDIR}/Utilities/vxl/core/vnl
INCLUDEPATH += ${ITKDIR}/Utilities/vxl/vcl

Would there be a way to know which library is missing ? Or would the 
problem possibly come from something else ?

Thanks in advance

Best regards

Philippe Tigréat


More information about the Insight-users mailing list