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

Alessandro notinmyhead at gmail.com
Tue Mar 27 10:23:39 EDT 2012


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




More information about the Insight-users mailing list