[Insight-developers] ITK build error

Luis Ibanez luis.ibanez at kitware.com
Sat Oct 16 11:43:16 EDT 2010


Hi Michael,

Let's start with the version and platform...

A) What version of ITK are you trying to build ?
B) What platform are you using ? (OS & compiler version)

and

C)  Did you, turn ON the option

            ITK_USE_SYSTEM_JPEG

when you configured ITK with CMake  ?



   Please let us know,


       Thanks


              Luis


---------------------------------------------
On Fri, Oct 15, 2010 at 12:30 PM, Michal Suchanek <hramrach at centrum.cz>wrote:

> Hello,
>
> I am unable to build ITK.
>
> I am not sure what other information you may need to diagnose the
> error but it's easily reproducible so I can supply all kinds of logs
> in large volume ;-)
>
> Thanks
>
> Michal
>
> The error I get is:
>
> Linking CXX executable ../../bin/itkTestDriver
> cd /scratch/itk/ITK/obj-x86_64-linux-gnu/Code/IO && /usr/bin/cmake -E
> cmake_link_script CMakeFiles/itkTestDriver.dir/link.txt --verbose=1
> /usr/bin/g++   -Wno-deprecated  -ftemplate-depth-50 -Wall
> -Wno-deprecated -O3 -DNDEBUG
> CMakeFiles/itkTestDriver.dir/itkTestDriver.cxx.o  -o
> ../../bin/itkTestDriver -rdynamic ../../bin/libITKIO.so.4.0.0
> ../../bin/libITKNrrdIO.so.4.0.0 ../../bin/libgdcmMSFF.so.2.0.17
> ../../bin/libgdcmDICT.so.2.0.17 ../../bin/libgdcmIOD.so.2.0.17
> ../../bin/libgdcmDSED.so.2.0.17 ../../bin/libgdcmCommon.so.2.0.17
> -lpng -ljpeg -ltiff ../../bin/libITKSpatialObject.so.4.0.0
> ../../bin/libITKCommon.so.4.0.0 ../../bin/libitkvnl_inst.so.4.0.0
> ../../bin/libitkvnl_algo.so.4.0.0 ../../bin/libitkv3p_netlib.so.4.0.0
> ../../bin/libitkvnl.so.4.0.0 ../../bin/libitkvcl.so.4.0.0
> ../../bin/libitkv3p_lsqr.so.4.0.0 -lm -lpthread
> ../../bin/libITKMetaIO.so.4.0.0 ../../bin/libitksys.so.4.0.0 -ldl
> ../../bin/libITKDICOMParser.so.4.0.0 ../../bin/libITKEXPAT.so.4.0.0
> ../../bin/libITKniftiio.so.4.0.0 ../../bin/libITKznz.so.4.0.0 -lz -lm
> -Wl,-rpath,/scratch/itk/ITK/obj-x86_64-linux-gnu/bin:
> -Wl,-rpath-link,/scratch/itk/ITK/obj-x86_64-linux-gnu/bin
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_stdio_dest'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_finish_decompress'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_write_scanlines'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_std_error'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_CreateCompress'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_read_header'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_start_decompress'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_simple_progression'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_destroy_compress'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_finish_compress'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_calc_output_dimensions'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_set_quality'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_set_defaults'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_destroy_decompress'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_stdio_src'
> ../../bin/libITKIO.so.4.0.0: undefined reference to `itk_jpeg_jpeg_abort'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_CreateDecompress'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_read_scanlines'
> ../../bin/libITKIO.so.4.0.0: undefined reference to
> `itk_jpeg_jpeg_start_compress'
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101016/1af89787/attachment.htm>


More information about the Insight-developers mailing list