<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using ITK in Qt Creator issue]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I've searched here and there, followed suggstion on itk-users mailing list but itkImage.h header is still not found.</p>
<p dir="auto">I compiled and installed latest ITK (4.5.1), using MSVC 2010 64bit compiler. I created a plain C++ project and copied code for ITK Hello World program.</p>
<p dir="auto">Thanks for your help.</p>
<p dir="auto">Qt Creator project file: <a href="http://pastebin.com/3pGLjbNw" target="_blank" rel="noopener noreferrer nofollow ugc">http://pastebin.com/3pGLjbNw</a></p>
<p dir="auto">main.cpp : <a href="http://pastebin.com/9kzp3tkd" target="_blank" rel="noopener noreferrer nofollow ugc">http://pastebin.com/9kzp3tkd</a></p>
<p dir="auto">Compilation result : <a href="http://pastebin.com/BUpt1pK3" target="_blank" rel="noopener noreferrer nofollow ugc">http://pastebin.com/BUpt1pK3</a></p>
]]></description><link>https://forum.qt.io/topic/38325/using-itk-in-qt-creator-issue</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 14:32:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/38325.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Feb 2014 14:25:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using ITK in Qt Creator issue on Wed, 05 Mar 2014 07:50:13 GMT]]></title><description><![CDATA[<p dir="auto">I may give a new try soon, will keep you posted.</p>
]]></description><link>https://forum.qt.io/post/217150</link><guid isPermaLink="true">https://forum.qt.io/post/217150</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 05 Mar 2014 07:50:13 GMT</pubDate></item><item><title><![CDATA[Reply to Using ITK in Qt Creator issue on Fri, 28 Feb 2014 20:51:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Something's not clear, do you have both symbols and library not found ? Or only symbols ?</p>
<p dir="auto">Also, you should rather give the absolute path to ITK rather than relative, it will be cleaner and you'll be sure to point to the correct folders</p>
]]></description><link>https://forum.qt.io/post/216632</link><guid isPermaLink="true">https://forum.qt.io/post/216632</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 28 Feb 2014 20:51:22 GMT</pubDate></item><item><title><![CDATA[Reply to Using ITK in Qt Creator issue on Fri, 28 Feb 2014 14:00:50 GMT]]></title><description><![CDATA[<p dir="auto">Well, before giving up and switch to CMakeLists.txt format...</p>
<p dir="auto">After compiling VTK, ITK with vtkGlue enabled, I still have troubles, and yes file is where stated, SGaist.</p>
<p dir="auto">@ITKCommon-4.5.lib(itkDynamicLoader.obj):-1: error: LNK2019: unresolved external symbol "public: static struct HINSTANCE__ * <strong>cdecl itksys::DynamicLoader::OpenLibrary(char const *)" (?OpenLibrary@DynamicLoader@itksys@@SAPEAUHINSTANCE</strong>@@PEBD@Z) referenced in function "public: static struct HINSTANCE__ * <strong>cdecl itk::DynamicLoader::OpenLibrary(char const *)" (?OpenLibrary@DynamicLoader@itk@@SAPEAUHINSTANCE</strong>@@PEBD@Z)@</p>
<p dir="auto">File not found: ITKCommon-4.5.lib(itkDynamicLoader.obj)</p>
<p dir="auto">It’s really strange because I didn’t modify the directories paths and the files are there as expected.</p>
<p dir="auto">My .pro file, again:</p>
<p dir="auto">@</p>
<h1>Pass information to Qmake (include path)</h1>
<p dir="auto">INCLUDEPATH += $$PWD/../../../../../../ITK/include/ITK-4.5<br />
DEPENDPATH += $$PWD/../../../../../../ITK/include/ITK-4.5</p>
<h1>Pass information to Qmake (lib path)</h1>
<p dir="auto">#QMAKE_LIBDIR += \</p>
<h1>$${ITK_LIBS}</h1>
<p dir="auto">#C:/ITK/lib</p>
<h1>Pass information to Qmake (link against)</h1>
<p dir="auto">win32: LIBS += -L$$PWD/../../../../../../ITK/lib/ <br />
-lITKBiasCorrection-4.5 <br />
-lITKBioCell-4.5 <br />
-lITKCommon-4.5 <br />
[… list of libs]<br />
@</p>
<p dir="auto">My ITK folder is in C:<br />
$$PWD shoud refer to C:\Dev\Projects\MyProject\HelloItk\qmake\HelloItk folder where I have the .pro file.<br />
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.</p>
<p dir="auto">I guess I have libs references not in correct order.</p>
]]></description><link>https://forum.qt.io/post/216610</link><guid isPermaLink="true">https://forum.qt.io/post/216610</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 28 Feb 2014 14:00:50 GMT</pubDate></item><item><title><![CDATA[Reply to Using ITK in Qt Creator issue on Wed, 26 Feb 2014 21:02:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Maybe a stupid question but: is itkImage.h really in C:/ITK/include/ITK-4.5 and not in a further subdirectory ?</p>
]]></description><link>https://forum.qt.io/post/216317</link><guid isPermaLink="true">https://forum.qt.io/post/216317</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 26 Feb 2014 21:02:18 GMT</pubDate></item></channel></rss>