Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-8413

Using "Add Library" wizard with library on different drive causes build error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.6.0
    • None
    • Mac OSX 10.8.2 running virtual Windows 7 and Qt 4.8.4.

    Description

      I'm not quite sure which component this fits in – I chose "Project Management", feel free to correct.

      1. Right click on Project, choose "Add Library"
      2. Select External Library and click Next.
      3. Choose a static library located on a different drive than the project.

      This wizard adds the following wrong path to the .PRO file (notice the "$$PWD/D:/"):

      INCLUDEPATH += $$PWD/D:/MyLib/include
      DEPENDPATH += $$PWD/D:/MyLib/include

      win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/D:/MyLib/lib/mylib.lib
      else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/D:/MyLib/lib/mylibd.lib

      And the build error:

      Error: dependent 'C:\MyProj\D:\MyLib\lib\mylib.lib' does not exist.

      Attachments

        Issue Links

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

          Activity

            People

              jkobus Jarek Kobus
              kuthair Kuthair Habboush
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes