It is likely that the variable QT_INCLUDE_DIR isn't correctly specified. Post the values from your CMakeCache.txt and also verify the include paths yourself to make sure that qapplication.h is indeed present in the include path using "make VERBOSE=1" on gcc or from the properties panel in VisualStudio<br>
<br><div><span class="gmail_quote">On 2/27/08, <b class="gmail_sendername">Walter Cabrera</b> <<a href="mailto:walter@eresmas.net">walter@eresmas.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> I am doing a test with the following source (Qt + itk):<br> <br> #include <qapplication.h><br> <br> int main(int argc, char *argv[])<br> {<br> QApplication app( argc, argv );<br> return app.exec();<br> }<br> <br>
give error becouse not found qapplication.h<br> <br> CMakeLists.txt used<br> <br> PROJECT(QtITK)<br> <br> # Find ITK.<br> FIND_PACKAGE(ITK REQUIRED)<br> IF(ITK_FOUND)<br> INCLUDE(${ITK_USE_FILE})<br> ELSE (ITK_FOUND)<br>
MESSAGE(FATAL_ERROR "ITK not found. Please set ITK_DIR.")<br> ENDIF(ITK_FOUND)<br> <br> # Find Qt.<br> FIND_PACKAGE(QT)<br> IF(QT_FOUND)<br> INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})<br> ELSE (QT_FOUND)<br> MESSAGE(FATAL_ERROR "QT not found. Please set QT_DIR.")<br>
ENDIF(QT_FOUND)<br> <br> ADD_EXECUTABLE(QtITK QtITK.cxx)<br> <br> Someone can help me?<br> <br> Thanks<br> <br><br> <br> --<br> View this message in context: <a href="http://www.nabble.com/Error-in-program-Qt-%2B-itk-package-tp15714380p15714380.html">http://www.nabble.com/Error-in-program-Qt-%2B-itk-package-tp15714380p15714380.html</a><br>
Sent from the ITK - Users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br> <br> _______________________________________________<br> Insight-users mailing list<br> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>
<a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br> </blockquote></div><br>