MantisBT - CMake
View Issue Details
0015342CMakeCMakepublic2015-01-08 10:182015-07-08 08:57
SunBlack 
Stephen Kelly 
normaltextalways
closedfixed 
CMake 3.1 
CMake 3.2 
0015342: [AUTOUI] Simplifiy wrong headers
If 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;
No tags attached.
Issue History
2015-01-08 10:18SunBlackNew Issue
2015-02-03 16:57Stephen KellyNote Added: 0037899
2015-02-03 16:57Stephen KellyAssigned To => Stephen Kelly
2015-02-03 16:57Stephen KellyStatusnew => assigned
2015-02-03 17:47Stephen KellyFixed in Version => CMake 3.2
2015-02-03 17:47Stephen KellyStatusassigned => resolved
2015-02-03 17:47Stephen KellyResolutionopen => fixed
2015-07-08 08:57Robert MaynardNote Added: 0039036
2015-07-08 08:57Robert MaynardStatusresolved => closed

Notes
(0037899)
Stephen Kelly   
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   
2015-07-08 08:57   
Closing resolved issues that have not been updated in more than 4 months.