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

Add Library wizard adds $$PWD before absolute paths

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.4.2, Qt Creator 3.6.0
    • None
    • Microsoft Windows 8.1, QtCreator3.4.x-3.6.0(opensource)Qt5.5.1MSVC 32bit
      Language: zh_CN(2052)

      English:
      I found a little bug in QtCreator 3.4.2 while I using a wizard to import external libraries to project.(after I tried 3.6.0, but it still has this bug)
      When I using an absolute path to import libraries, the PRO file will add a "$$PWD/" before the path.
      Then I may receive a "No such file or directory" error in import path while compiling.
      then I must remove "$$PWD/" in LIBS, INCLUDEPATH and DEPENDPATH to fix this issue:

      Before: LIBS += -L$$PWD/D:/Program/SomeComponenties/lib -lSCLIB #LINK ERROR
      After: LIBS += -LD:/Program/SomeComponenties/lib -lSCLIB #SUCCESS

      Chinese:
      在使用QtCreator 3.4.2使用添加库向导导入一个使用绝对路径的外部库的时候PRO文件依然会加入"$PWD/"在这个绝对路径的前面, 这会导致在连接的时候编译器会找不到库文件从而编译失败, 必须删除PRO工程文件的LIBS, INCLUDEPATH和DEPENDPATH行前的"$PWD/"才能正常编译.
      请产品经理注意一下这个Bug, 如果QtCreator修复了此Bug, IDE将会更好.

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

            hunger Tobias Hunger
            ruilx Ruilx
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes