View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015342CMakeCMakepublic2015-01-08 10:182015-07-08 08:57
ReporterSunBlack 
Assigned ToStephen Kelly 
PrioritynormalSeveritytextReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 3.1 
Target VersionFixed in VersionCMake 3.2 
Summary0015342: [AUTOUI] Simplifiy wrong headers
DescriptionIf in a header file a ui file is mentioned, but ui file noct exists you are getting currently a message like

1>AUTOUIC : error : process for ui_testwidget.h failed:
1> File 'C:/mypath/testwidget.ui' is not valid

After this message you have no idea, where the error is. E.g. in my case testwidget.ui + cpp + h was in parent directory and in subfolder #include ui_testwidget.h" file was mentioned in another header file (e.g. wrongheader.h).

My only way to get an idea what was wrong, was to debug cmake.

Simply solution would be something like this (cmQtAutoGenerators.cxx):

      std::cerr << "AUTOUIC: error: process for " << ui_output_file <<
                " failed:\n" << output <<
                "UI file was mentioned in " << realName << std::endl;
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0037899)
Stephen Kelly (developer)
2015-02-03 16:57


Thanks for that.

I made a similar change and merged it to next for testing:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2fed8e17 [^]
 QtAutogen: Issue error message with origin file (0015342).

(0039036)
Robert Maynard (manager)
2015-07-08 08:57

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

 Issue History
Date Modified Username Field Change
2015-01-08 10:18 SunBlack New Issue
2015-02-03 16:57 Stephen Kelly Note Added: 0037899
2015-02-03 16:57 Stephen Kelly Assigned To => Stephen Kelly
2015-02-03 16:57 Stephen Kelly Status new => assigned
2015-02-03 17:47 Stephen Kelly Fixed in Version => CMake 3.2
2015-02-03 17:47 Stephen Kelly Status assigned => resolved
2015-02-03 17:47 Stephen Kelly Resolution open => fixed
2015-07-08 08:57 Robert Maynard Note Added: 0039036
2015-07-08 08:57 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team