[cmake-developers] [CMake 0014926]: fatal error: 'QWidget' file not found

Mantis Bug Tracker mantis at public.kitware.com
Thu May 22 12:33:13 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14926 
====================================================================== 
Reported By:                Milen Bilyanov
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14926
Category:                   QtDialog
Reproducibility:            always
Severity:                   feature
Priority:                   immediate
Status:                     new
====================================================================== 
Date Submitted:             2014-05-22 12:33 EDT
Last Modified:              2014-05-22 12:33 EDT
====================================================================== 
Summary:                    fatal error: 'QWidget' file not found
Description: 
Hi,
I am trying to compile Cmake against Qt4. The bootstrap scripts reports that QT
is  healthy:

"Performing C++ SOURCE FILE Test QT4_WORKS succeded with the following output"

However, later at the build stage I get the following error:
[ 89%] Building CXX object
Source/QtDialog/CMakeFiles/cmake-gui.dir/AddCacheEntry.cxx.o
In file included from
/me/.tmp/cmake-2.8.12.2/Source/QtDialog/AddCacheEntry.cxx:13:
/me/.tmp/cmake-2.8.12.2/Source/QtDialog/AddCacheEntry.h:16:10: fatal error:
'QWidget' file not found
#include <QWidget>
         ^
1 error generated.
make[2]: *** [Source/QtDialog/CMakeFiles/cmake-gui.dir/AddCacheEntry.cxx.o]
Error 1
make[1]: *** [Source/QtDialog/CMakeFiles/cmake-gui.dir/all] Error 2
make: *** [all] Error 2

Any ideas? Thanks.



Steps to Reproduce: 
Always, just bootstrap and build.

Additional Information: 
My Qt is a custom build Qt and is in the following folder:
~/apps/Darwin64/Qt-4.8.5-gcc-4.2.1

"quake" and all the examples are working. I can say it is a healthy build.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-05-22 12:33 Milen Bilyanov New Issue                                    
======================================================================



More information about the cmake-developers mailing list