[cmake-developers] [CMake 0015644]: AUTORCC not generating files
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jul 9 08:08:01 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15644
======================================================================
Reported By: Lectem
Assigned To:
======================================================================
Project: CMake
Issue ID: 15644
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-07-09 08:08 EDT
Last Modified: 2015-07-09 08:08 EDT
======================================================================
Summary: AUTORCC not generating files
Description:
AUTORCC is not generating the qrc_*.cpp files, rcc isn't even called.
I suspect the problem coming from the fact that I'm getting an error while
configuring the project :
/usr/lib/x86_64-linux-gnu/qt5/bin/rcc: Unknown option: '--list'
It is coming from this line :
https://github.com/Kitware/CMake/blob/master/Source/cmQtAutoGenerators.cxx#L193
I don't understand what the script is trying to do since --list isn't available
for qt4 nor qt5.
The resources are present, with the correct path.
It is working when using QT5_ADD_RESOURCES.
Additional Information:
CMakeLists.txt :
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5LinguistTools REQUIRED)
find_package(Qt5Multimedia REQUIRED)
add_executable(myexe main.cpp resource_file.qrc)
resource_file.qrc :
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>images/copy.png</file>
<file>images/cut.png</file>
<file>images/new.png</file>
<file>images/open.png</file>
<file>images/paste.png</file>
<file>images/save.png</file>
</qresource>
</RCC>
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-07-09 08:08 Lectem New Issue
======================================================================
More information about the cmake-developers
mailing list