[Insight-users] Error in program Qt + itk package

Karthik Krishnan karthik.krishnan at kitware.com
Wed Feb 27 11:20:46 EST 2008


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

On 2/27/08, Walter Cabrera <walter at eresmas.net> wrote:
>
>
> I am doing a test with the following source (Qt + itk):
>
> #include <qapplication.h>
>
> int main(int argc, char *argv[])
> {
>   QApplication app( argc, argv );
>   return app.exec();
> }
>
> give  error becouse not found qapplication.h
>
> CMakeLists.txt used
>
> PROJECT(QtITK)
>
> # Find ITK.
> FIND_PACKAGE(ITK REQUIRED)
> IF(ITK_FOUND)
>   INCLUDE(${ITK_USE_FILE})
> ELSE (ITK_FOUND)
>   MESSAGE(FATAL_ERROR "ITK not found. Please set ITK_DIR.")
> ENDIF(ITK_FOUND)
>
> # Find Qt.
> FIND_PACKAGE(QT)
> IF(QT_FOUND)
>   INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
> ELSE (QT_FOUND)
>   MESSAGE(FATAL_ERROR "QT not found. Please set QT_DIR.")
> ENDIF(QT_FOUND)
>
> ADD_EXECUTABLE(QtITK QtITK.cxx)
>
> Someone can help me?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Error-in-program-Qt-%2B-itk-package-tp15714380p15714380.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20080227/aa2d984a/attachment.htm


More information about the Insight-users mailing list