[ITK-users] Unresolved external symbol
Matt McCormick
matt.mccormick at kitware.com
Wed Aug 12 18:18:09 EDT 2015
Hi Marcos,
CMake also has a Visual Studio generator. Use CMake to generate the
Visual Studio project file.
A good place to start is the Configuring and Building ITK section of
The ITK Software Guide [1].
Hope this helps,
Matt
[1] http://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1.html
On Wed, Aug 12, 2015 at 5:47 PM, Marcos <fotosentido at gmail.com> wrote:
> Thank you for your answer, I just couln't find a clear and direct tutorial
> for getting started an ITK/VTK project with a CMakeLists.txt example. A lot
> of generic Cmake tutorials or installing guides (I did that already). I
> looked into ITK wiki too.
>
> Any practical example to just start?
>
> With Qt5, the configuration for this file has changed, so some Qt4 examples
> are confusing.
>
> I'm spending too much before starting coding, it's .
> And I'm going to need debugging. I was trying to code in Visual Studio
> (thanks to the Qt plugin), but with that error I can't even start in Qt
> Creator.
>
> Thank you.
>
> 2015-08-12 23:39 GMT+02:00 Matt McCormick <matt.mccormick at kitware.com>:
>>
>> 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
>> >
>
>
More information about the Insight-users
mailing list