[ITK] [ITK-users] Unresolved external symbol

Matt McCormick matt.mccormick at kitware.com
Wed Aug 12 17:39:16 EDT 2015


Hello,

It is recommended to use CMake CMakeLists.txt instead of Qt .pro files
to build your project.  You will have much less difficulty. Note that
QtCreator also supports CMake, and CMake has very good support for
working with Qt.

HTH,
Matt

On Wed, Aug 12, 2015 at 5:36 PM, Marcos <fotosentido at gmail.com> wrote:
> Hi,
>
> I compiled and installed successfully ITK 4.8 and VTK, with Visual Studio
> 2013 and Qt5.
>
> Now I'm trying to compile a simple Hello World (with the ITK headers and
> include dirs in the .pro file in Qt Creator) and I'm getting:
>
> itkgdcmMSFF-4.8.lib(gdcmJPEGLSCodec.obj):-1: error: LNK2019: unresolved
> external symbol _JpegLsEncode referenced in function "private: bool
> __thiscall gdcm::JPEGLSCodec::CodeFrameIntoBuffer(char *,unsigned
> int,unsigned int &,char const *,unsigned int)"
> (?CodeFrameIntoBuffer at JPEGLSCodec@gdcm@@AAE_NPADIAAIPBDI at Z)
>
> and similar errores relating all of them itkgdcmMSFF-4.8.lib.
>
> Sometimes it specifies gdcmJPEGLSCodec.obj, sometimes gdcmJPEG2000Codec.obj.
>
> I didn't check Module_ITKOpenJPEG in Cmake configure, but everything was
> fine with compilation and installing.
>
> If I omit adding itkgdcmMSFF-4.8.lib, it shows the same errors with
> ITKIOGDCM-4.8.lib
>
> I don't understand why is so hard to start using this library. I spend more
> time configuring than developing.
>
> Any ideas?
>
> Thank you.
>
> _____________________________________
> 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://www.kitware.com/products/protraining.php
>
> 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://public.kitware.com/mailman/listinfo/insight-users
>
_____________________________________
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://www.kitware.com/products/protraining.php

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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list