A little bug in QtCreator3.4.2(OpenS) (Windows8.1, ChineseEnvironment)
I found a little bug in QtCreator 3.4.2 while I using a wizard to import external libraries to project.
When I using an absolute path to import libraries, PRO file will add a "$$PWD/" before the path.
Then I may receive a "No such file or directory" error in import path.
You must remove "$$PWD/" in LIBS, INCLUDEPATH and DEPENDPATH:
Before: LIBS += -L$$PWD/D:/Program/SomeComponenties/lib -lSCLIB #LINK ERROR
After: LIBS += -LD:/Program/SomeComponenties/lib -lSCLIB #SUCCESS
在使用QtCreator 3.4.2使用添加库向导导入一个使用绝对路径的外部库的时候PRO文件依然会加入"$$PWD/"在这个绝对路径的前面, 这会导致在连接的时候编译器会找不到库文件从而编译失败, 必须删除PRO工程文件的LIBS, INCLUDEPATH和DEPENDPATH行前的"$$PWD/"才能正常编译.
请产品经理注意一下这个Bug, 如果QtCreator修复了此Bug, IDE将会更好.
Hi and welcome to devnet,
Can you check if that still happens with the current version (3.6)
@SGaist OK, I will try it immediately, thanks!
I get a bad request on your link but since it still does behave like that, you should then take a look at the bug report system to see if it's something known. If not please consider opening a new bug report for Qt Creator providing your system specification and a step by step guide to reproduce that.