[Insight-users] Hello ITK with Qt Creator issue
Barbara Post
bpo at eonix.be
Fri Feb 28 05:33:49 EST 2014
Hello again,
After compiling VTK, ITK with vtkGlue enabled, I still have troubles when using ITK in a QMake project.
Now the error changed to this one, surprisingly:
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)
File not found: ITKCommon-4.5.lib(itkDynamicLoader.obj)
It's really strange because I didn't modify the directories paths and the files are there as expected.
My .pro file, again:
# Pass information to Qmake (include path)
INCLUDEPATH += $$PWD/../../../../../../ITK/include/ITK-4.5
DEPENDPATH += $$PWD/../../../../../../ITK/include/ITK-4.5
# Pass information to Qmake (lib path)
#QMAKE_LIBDIR += \
# $${ITK_LIBS}
#C:/ITK/lib
# Pass information to Qmake (link against)
win32: LIBS += -L$$PWD/../../../../../../ITK/lib/ \
-lITKBiasCorrection-4.5 \
-lITKBioCell-4.5 \
-lITKCommon-4.5 \
[... list of libs]
My ITK folder is in C:
$$PWD shoud refer to C:\Dev\Projects\MyProject\HelloItk\qmake\HelloItk folder where I have the .pro file.
So why are there 6 "../" instructions in path to climb up, rather than 5 ones ? If I put only 5 "../", it won't find itkImage.h.
I guess I have libs references not in correct order.
Almost going to give up in favor of CMake project :-) so this is my last call to feedback about people who used a QMake project.
Thanks,
--
Barbara POST
From: Insight-users [mailto:insight-users-bounces at itk.org] On Behalf Of Barbara Post
Sent: jeudi 27 février 2014 09:18
To: insight-users at itk.org
Subject: Re: [Insight-users] Hello ITK with Qt Creator issue
Hi Jothy,
OK I'm going to compile it with Module_ITKVtkGlue right now.
Do I need to enable another module ?
I'm looking right now for more information: I need to set VTK_DIR, so get VTK. I assume I need to build VTK or the source only contains required things? I'm a bit new to this :-)
Thank you,
--
Barbara POST
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140228/0bc6bd1e/attachment.html>
More information about the Insight-users
mailing list