View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015103 | CMake | CMake | public | 2014-08-25 06:25 | 2015-03-02 08:57 | ||||
Reporter | Hendrik Sattler | ||||||||
Assigned To | Stephen Kelly | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake 3.0 | ||||||||
Target Version | Fixed in Version | CMake 3.0.2 | |||||||
Summary | 0015103: AUTORCC fails with more than one .qrc file per target | ||||||||
Description | Using VisualStudio 2010. 9> qrc_icons.cpp 9> qrc_moreicons.cpp 9>qrc_moreicons.obj : error LNK2005: "int __cdecl qInitResources(void)" (?qInitResources@@YAHXZ) already defined in qrc_moreicons.obj 9>qrc_moreicons.obj : error LNK2005: "int __cdecl qCleanupResources(void)" (?qCleanupResources@@YAHXZ) already defined in qrc_moreicons.obj 9>qrc_moreicons.obj : error LNK2005: "class qCleanupResources__dest_class__ qCleanupResources__dest_instance__" (?qCleanupResources__dest_instance__@@3VqCleanupResources__dest_class__@@A) already defined in qrc_moreicons.obj | ||||||||
Steps To Reproduce | set ( CMAKE_AUTORCC ON ) and remove the qt4_add_resources() macro call. I use this on 2 shared library target and one executable and in all three cases it fails. | ||||||||
Additional Information | Previously, _all_ .qrc file were in _one_ qt4_add_resources() macro call. The Qt rcc does automatically prepend the file base name to the symbol, so int QT_MANGLE_NAMESPACE(qInitResources_icons)() and int QT_MANGLE_NAMESPACE(qInitResources_moreicons)() instead of twice int QT_MANGLE_NAMESPACE(qInitResources)() | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0036765) Stephen Kelly (developer) 2014-09-09 18:50 |
Fixed in March. Part of the next release. http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=261acd91 [^] |
(0038109) Robert Maynard (manager) 2015-03-02 08:57 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2014-08-25 06:25 | Hendrik Sattler | New Issue | |
2014-08-27 09:21 | Brad King | Assigned To | => Stephen Kelly |
2014-08-27 09:21 | Brad King | Status | new => assigned |
2014-09-09 18:50 | Stephen Kelly | Note Added: 0036765 | |
2014-09-09 18:50 | Stephen Kelly | Status | assigned => resolved |
2014-09-09 18:50 | Stephen Kelly | Fixed in Version | => CMake 3.0.2 |
2014-09-09 18:50 | Stephen Kelly | Resolution | open => fixed |
2015-03-02 08:57 | Robert Maynard | Note Added: 0038109 | |
2015-03-02 08:57 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |