Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-26782

Target extension property is not modified on VS2010

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0 RC
    • 5.0.0
    • Build tools: qmake
    • None
    • Windows 7 + Qt4.8.2 + VS2010
    • qtbase/d1e950b919615c1ae754e07899f1b45303c17654 qt/d75e9ba08ae0e2c71812c0e5b157a2f93c8eedfd

    Description

      The attached example dll demonstrates the use case.

      Test steps:

      • On command prompt run qmake -tp vc
      --> note the mydll.pro content i.e. it specifies a TARGET_EXT and DLLDESTRIR:

      TARGET = MyDLL
      TEMPLATE = lib
      TARGET_EXT = .tsdll
      CONFIG += dll
      DLLDESTDIR = ../lib
      
      DEFINES += MYDLL_LIBRARY
      SOURCES += mydll.cpp
      HEADERS += mydll.h\
              MyDLL_global.h
      

      • Open the generated .vcxproj file with Visual Studio 2010.
      • Select 'build' for the project

      Error: Coping the generated MyDLL.tsdll to ..\lib fails even if MyDLL.tsdll is generated to \debug folder:

      1>  Description: Copy MyDLL.tsdll to ..\lib
      1>  The system cannot find the file specified.
      1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command "copy  "D:\example\debug\MyDLL.dll" "..\lib"
      1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" exited with code 1.
      

      When you modify the target extension property (Properties - Configuration properties - General - Target extension; please see the attachment) on Visual studio so that it includes '.tsdll' instead of '.dll' the MyDLL.tsdll is properly copied into the defined targed directory (..\lib).

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              qtcomsupport Qt Support
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes