View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0011791 | CMake | Modules | public | 2011-02-03 05:04 | 2011-06-06 18:25 | ||||
Reporter | Rolf Eike Beer | ||||||||
Assigned To | Clinton Stimpson | ||||||||
Priority | normal | Severity | block | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0011791: Regression in next: FIND_PACKAGE(Qt4 COMPONENTS QtMain) gives errors | ||||||||
Description | The component QtMain is needed to get working Qt applications on Windows. In current snapshots this doesn't work anymore. | ||||||||
Steps To Reproduce | CMakeLists.txt PROJECT(qtmain) CMAKE_MINIMUM_REQUIRED(VERSION 2.8) FIND_PACKAGE(Qt4 4.5.3 COMPONENTS QtCore QtGui QtMain) INCLUDE(${QT_USE_FILE}) ADD_EXECUTABLE(qtmain WIN32 qtmain.cpp) TARGET_LINK_LIBRARIES(qtmain ${QT_LIBRARIES}) qmain.cpp #include <QApplication> #include <QMainWindow> int main(int argc, char* argv[]) { QApplication app(argc, argv); QMainWindow mainWin; mainWin.show(); return app.exec(); } | ||||||||
Additional Information | Test runs of the example: Win32 / CMake 2.8.3: -- Found Qt-Version 4.6.2 (using c:/data/software/qt/qt-4.6.2-vs2008-x64/bin/qmake.exe) Win32 / CMake 2.8.3.20110202-g4d4d5: -- Could NOT find Qt4 (missing: QT_QTMAIN_INCLUDE_DIR) (found suitable version "4.6.2", required is "4.5.3") Linux / CMake 2.8.3: -- Found Qt-Version 4.5.4 (using /usr/bin/qmake) Linux / CMake 2.8.3.20110202-g4d4d5: -- Could NOT find Qt4 (missing: QT_QTMAIN_INCLUDE_DIR QT_QTMAIN_LIBRARY) (found suitable version "4.5.4", required is "4.5.3") | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0025231) Brad King (manager) 2011-02-03 08:13 |
Version 2.8.3.20110202-g4d4d5 is a nightly build from the 'next' branch at commit 4d4d51e1. It contains changes to FindQt4 that are *not* in the 2.8.4-rc series. Does this happen with the actual 2.8.4 release candidate from http://www.cmake.org/files/v2.8/ [^] ? |
(0025235) Rolf Eike Beer (developer) 2011-02-03 11:12 |
Yes, you are right. 2.8.4-rc2 is fine. Sorry for the noise. I promise I'll check which version exactly the coworkers are using next time before filing a bug report. ;) Any chance I can edit the bug headline? |
(0025246) Brad King (manager) 2011-02-03 13:46 |
0011791:0025235: Thanks for testing 2.8.4-rc2. I updated the bug headline. |
(0025262) Clinton Stimpson (developer) 2011-02-03 18:38 |
Fix in git now: Merge topic 'qt4-fphsa' into next 72e9d3c When checking find_package() components, special case qtmain. Thanks for testing. |
(0026693) David Cole (manager) 2011-06-06 18:25 |
Closing resolved issues that have not been updated in more than 3 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-02-03 05:04 | Rolf Eike Beer | New Issue | |
2011-02-03 08:10 | Brad King | Assigned To | => Clinton Stimpson |
2011-02-03 08:10 | Brad King | Status | new => assigned |
2011-02-03 08:10 | Brad King | Target Version | => CMake 2.8.4 |
2011-02-03 08:13 | Brad King | Note Added: 0025231 | |
2011-02-03 11:12 | Rolf Eike Beer | Note Added: 0025235 | |
2011-02-03 13:46 | Brad King | Product Version | CMake-2-8 => |
2011-02-03 13:46 | Brad King | Target Version | CMake 2.8.4 => |
2011-02-03 13:46 | Brad King | Summary | Regression in 2.8.4-rc: FIND_PACKAGE(Qt4 COMPONENTS QtMain) gives errors => Regression in next: FIND_PACKAGE(Qt4 COMPONENTS QtMain) gives errors |
2011-02-03 13:46 | Brad King | Note Added: 0025246 | |
2011-02-03 18:38 | Clinton Stimpson | Note Added: 0025262 | |
2011-02-03 18:38 | Clinton Stimpson | Status | assigned => resolved |
2011-02-03 18:38 | Clinton Stimpson | Resolution | open => fixed |
2011-06-06 18:25 | David Cole | Status | resolved => closed |
2011-06-06 18:25 | David Cole | Note Added: 0026693 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |