[Insight-users] Hello ITK with Qt Creator issue

Arnaud Gelas arnaudgelas at gmail.com
Wed Feb 26 10:40:49 EST 2014


Hi Barbara,

I strongly recommend to use CMake to avoid all problems you're facing now.

Here is a typical way to proceed:

1- run cmake, via ccmake or cmake-gui to fix all cmake variables
2- open qtcreator
2.1- open corresponding cmakelists.txt (for your project)
2.2- it will ask you about your binary folder, you only to pick up the one you used with ccmake or cmake-gui
2.3- cmake will run once again, but everything has already been set up
3- build

HTH
Arnaud

On Feb 26, 2014, at 4:25 PM, Barbara Post <bpo at eonix.be> wrote:

> Only one lib wasn’t found list here : http://pastebin.com/KUta5iDW : ITKVtkGlue-4.5
>  
> Did I miss something when compiling ITK ?
>  
> After commenting out this line I got the following error:
> ITKCommon-4.5.lib(itkDynamicLoader.obj):-1: error: LNK2019: unresolved external symbol "public: static struct HINSTANCE__ * __cdecl itksys::DynamicLoader::OpenLibrary(char const *)" (?OpenLibrary at DynamicLoader@itksys@@SAPEAUHINSTANCE__@@PEBD at Z) referenced in function "public: static struct HINSTANCE__ * __cdecl itk::DynamicLoader::OpenLibrary(char const *)" (?OpenLibrary at DynamicLoader@itk@@SAPEAUHINSTANCE__@@PEBD at Z)
>  
> --
> Barbara POST
> +32 65/68.02.18
> bpo at eonix.be
>  
> From: Insight-users [mailto:insight-users-bounces at itk.org] On Behalf Of Barbara Post
> Sent: mercredi 26 février 2014 16:00
> To: insight-users at itk.org
> Subject: Re: [Insight-users] Hello ITK with Qt Creator issue
>  
> OK I got the following working so my question is solved for now, thank you very much Jothy because you really helped me and adding lib using wizard led me to right setup. I didn’t use this wizard before…
>  
> # Pass information to Qmake (include path)
> INCLUDEPATH += $$PWD/../../../../../../ITK/include/ITK-4.5
> DEPENDPATH += $$PWD/../../../../../../ITK/include/ITK-4.5
>  
> # Pass information to Qmake (link against)
> win32: LIBS += -L$$PWD/../../../../../../ITK/lib/ -lITKCommon-4.5
>  
> _____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140226/44253c63/attachment.html>


More information about the Insight-users mailing list