[Insight-users] Including ITK in QT Creator Project (ld error) [OSX]

Matt McCormick matt.mccormick at kitware.com
Tue Mar 27 12:26:36 EDT 2012


Hi Alessandro,

It is recommend to use configure your project with CMakeLists.txt,
which can be used with QtCreator (and most other development
environments).  See any of the any of the examples on using CMake to
configure a project that uses ITK.

See also, e.g.

  http://doc.qt.nokia.com/qtcreator-2.4/creator-project-cmake.html

Hope this helps,
Matt


On Tue, Mar 27, 2012 at 10:23 AM, Alessandro <notinmyhead at gmail.com> wrote:
> Hello,
>
> I'm working on a project on Qt Creator. I need to use ITK+VTK so I add an External Library to the project in order to include ITK (I tried both 4.0 and 4.1). After the add, the part of the project which should take care of it is something like that:
>
>
> win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../usr/local/lib/release/ -lITKVTK-4
> else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../usr/local/lib/debug/ -lITKVTK-4
> else:unix:!symbian: LIBS += -L$$PWD/../../../../../../usr/local/lib/ -lITKVTK-4
>
> INCLUDEPATH += $$PWD/../../../../../../usr/local/include/ITK-4.1
> DEPENDPATH += $$PWD/../../../../../../usr/local/include/ITK-4.1
>
>
> Once I build the project I obtain an "ld: library not found for -lITKVTK-4" error although I checked all libs and includes and they are correct.
>
> What do I miss?
>
> Thanks,
> Alessandro
>
>
> _____________________________________
> 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


More information about the Insight-users mailing list