Details
-
Sub-task
-
Resolution: Done
-
Not Evaluated
-
None
-
QMAKESPEC=win32-msvc2010
-
e17a5bc80b2662b71d1bc0c37a46d8602c6e707d
Description
in .pro project files i'm specifying the directory for .pdb files via
QMAKE_CFLAGS += /Fd$(IntDir)
QMAKE_CXXFLAGS += /Fd$(IntDir)
the .vcxproj created from that show a setting for "Program Database File Name" that have .\ prepended to the /Fd setting (which may very well be an absolute path itself!):
.\$(IntDir)
this may cause compilation via vs2010 to fail
1>MakeDirsForCl:
1> Creating directory "D:\xxx\yyy\zzz\.\v:\compile\xxx_vc10_qt47b2\compile\debug\libjpeg".
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(714,5): error MSB3191: Unable to create directory "D:\xxx\yyy\zzz\.\v:\compile\xxx_vc10_qt47b2\compile\debug\libjpeg". The given path's format is not supported.
bug caused by a non-empty default value (".
") for conf.compiler.ProgramDataBaseFileName and/or concatenating values for the /Fd compiler option instead of overwriting the previous value
i suggest to fix the latter (there can be only one program data base file per project, right?)
change '+=' to '=' in line 572 of http://qt.gitorious.org/qt/qt/blobs/4.7/qmake/generators/win32/msbuild_objectmodel.cpp :
571 case 'd':
572 ProgramDataBaseFileName += option+3;