View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015103CMakeCMakepublic2014-08-25 06:252015-03-02 08:57
ReporterHendrik Sattler 
Assigned ToStephen Kelly 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 3.0 
Target VersionFixed in VersionCMake 3.0.2 
Summary0015103: AUTORCC fails with more than one .qrc file per target
DescriptionUsing 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 Reproduceset ( 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 InformationPreviously, _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)()
TagsNo tags attached.
Attached Files

 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.

 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


Copyright © 2000 - 2018 MantisBT Team