The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15342
======================================================================
Reported By: SunBlack
Assigned To:
======================================================================
Project: CMake
Issue ID: 15342
Category: CMake
Reproducibility: always
Severity: text
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-01-08 10:18 EST
Last Modified: 2015-01-08 10:18 EST
======================================================================
Summary: [AUTOUI] Simplifiy wrong headers
Description:
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;
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-01-08 10:18 SunBlack New Issue
======================================================================
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers