Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12802 qmake creates faulty vs2010 projects when using the /Fd option in QMAKE_CXXFLAGS
  3. QTBUG-12807

vs2010 projects generated by qmake use wrong path for .pdb files when using the /Fd compiler

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Not Evaluated
    • 4.7.1
    • Build tools: qmake
    • 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;

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            ralf ralf jork
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes