View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013489CMakeModulespublic2012-08-24 11:342013-01-09 14:05
ReporterPetr Baloun 
Assigned ToClinton Stimpson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0013489: Can't detect QT4 on OS considered as unsupported by QT
DescriptionUse QT4 on OS version that is not supproted by QT4 - I tried QT 4.7.2 on Windows 8. CMake is not able to detect anything about the QT4.
Steps To ReproduceUse following code:

include(FindQt4)
Additional InformationFindQt4 calls "qmake -query ..." to detect some information about QT4, the information is expected on qmake's stdout. On unsupported OS, qmake also dumps some warnings to stderr (in my case it's "QT: Untested Windows version 6.2 detected!").

The problem is that FindQt4 mixes both outputs in a single output variable so the stdout information is mixed with the warning which leads to situation that no information is read and no QT4 detected.

The patch attached simply cancels the redirection of qmake's stderr into output variable which has following results:
- QT4 is properly detected
- the warning is seen in the output by the user
TagsNo tags attached.
Attached Filespatch file icon qt-unsupported-os.patch [^] (795 bytes) 2012-08-24 11:34 [Show Content]

 Relationships
has duplicate 0013245closedClinton Stimpson FindQt4.cmake doesn't work on Windows 8 

  Notes
(0030757)
Stephen Kelly (developer)
2012-08-24 11:41

Similar to http://public.kitware.com/Bug/view.php?id=13245 [^] but that one has no patch.
(0030758)
Clinton Stimpson (developer)
2012-08-24 12:03

Thanks for the patch.
http://cmake.org/gitweb?p=cmake.git;a=commit;h=caa915 [^]
(0032080)
Robert Maynard (manager)
2013-01-09 14:05

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-08-24 11:34 Petr Baloun New Issue
2012-08-24 11:34 Petr Baloun File Added: qt-unsupported-os.patch
2012-08-24 11:41 Stephen Kelly Note Added: 0030757
2012-08-24 12:03 Clinton Stimpson Note Added: 0030758
2012-08-24 12:03 Clinton Stimpson Status new => resolved
2012-08-24 12:03 Clinton Stimpson Resolution open => fixed
2012-08-24 12:03 Clinton Stimpson Assigned To => Clinton Stimpson
2012-08-24 12:05 Clinton Stimpson Relationship added has duplicate 0013245
2013-01-09 14:05 Robert Maynard Note Added: 0032080
2013-01-09 14:05 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team