Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Add Library Wizard produces weird output
Forum Updated to NodeBB v4.3 + New Features

Add Library Wizard produces weird output

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stvokr
    wrote on last edited by
    #1

    Hi all,

    I am using the Qt Creator on Window 10, Qt 5.6, msvc2015, and I wonder if this is correct:

    When I add a library to the pro file via the "Add Library" wizard, the path of library is weird when different harddisk drives are used, e. g. the library is on drive C:/..., but the project is on drive D:/...

    The output in the pro file is

    win32: LIBS += -L$$PWD/C:/Test/Example/lib/ -lexampleLib
    INCLUDEPATH += $$PWD/C:/Test/Example/include
    DEPENDPATH += $$PWD/C:/Test/Example/include
    

    and the library is not available, because the path is prepended with $$PWD. Is this correct?
    It works, when the pro file and the library are on the same drive.

    win32: LIBS += -L$$PWD/../../Test/Example/lib/ -lexampleLib
    INCLUDEPATH += $$PWD/../../Test/Example/include
    DEPENDPATH += $$PWD/../../Test/Example/include
    

    Any ideas? Is this a bug in the Qt Creator?
    regards
    Oliver

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That might indeed be a bug.

      Which version of Qt Creator are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stvokr
        wrote on last edited by
        #3

        I am using Qt Creator 4.0.3.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then I'd recommend taking a look at the bug report system to see if it's something known.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved