Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.2
-
None
-
cd4eaa9c8274559aa2b0ceaeed1644966b9a2d94
Description
Try to compile linked application using:
> qmake -tp vc -r
Try to compile project using visual : it fails when trying to compile resource
Try to comment include file in resource : it works.
Root cause:
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_WINDOWS,UNICODE,WIN32,QT_LARGEFILE_SUPPORT,QT_DLL,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT,_DEBUG"/>
If I add the same AdditionalIncludeDirectories as we got for source files, it works:
<Tool
Name="VCResourceCompilerTool"
AdditionalIncludeDirectories=""c:\ExternalLibs\Qt\4.6.2\include\QtCore","c:\ExternalLibs\Qt\4.6.2\include\QtGui","c:\ExternalLibs\Qt\4.6.2\include","..",".","c:\ExternalLibs\Qt\4.6.2\include\ActiveQt","debug",c:\ExternalLibs\Qt\4.6.2\mkspecs\default"
PreprocessorDefinitions="_WINDOWS,UNICODE,WIN32,QT_LARGEFILE_SUPPORT,QT_DLL,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT,_DEBUG"/>
This bug was already reported as http://bugreports.qt.nokia.com/browse/QTBUG-2436 and closed, so reopening it