如何让 QtCreator 与 nmake 增量链接?
我曾经在 Visual Studio (2008) 中进行开发,但现在几乎完全转向在 QtCreator 中进行开发,主要是由于代码导航、重构和代码完成。 我正在使用 win32-msvc2008
mkspec。到目前为止,我已经成功设置了所有内容,除了一件事:
增量链接。
在我的项目文件中,我添加了这一行:
QMAKE_LFLAGS += /INCREMENTAL
并且我得到了一个链接器行,例如
link /LIBPATH:"(...)" /NOLOGO /INCREMENTAL /DEBUG /MANIFEST (...)
然而,它总是告诉我它找不到.exe,或者它不是由最后一个增量构建完全构建的,即使我只更改了.cpp文件,恢复更改并保存。
我尝试过使用和不使用影子构建进行构建,并且使用 nmake 或 jom,这两种组合都不起作用。
有没有人设法让 QtCreator 与 nmake 增量链接?
PS:如果我使用 Qt 插件将项目文件导入 Visual Studio,则增量链接可以完美工作。
I used to develop in Visual Studio (2008) but almost completely switched to developing in QtCreator now, mainly due to Code Navigation, refactoring and Code Completion.
I'm using the win32-msvc2008
mkspec. So far I've managed to set up everything except for one thing:
Incremental Linking.
In my project file I added the line:
QMAKE_LFLAGS += /INCREMENTAL
and I get a linker line like
link /LIBPATH:"(...)" /NOLOGO /INCREMENTAL /DEBUG /MANIFEST (...)
However, it always tells me it cannot find the .exe or it was not built completely by the last incremental build, even if I only change a .cpp file, revert the change and save.
I've tried building with and without shadow build, and with nmake or jom, neither combination works.
Has anyone managed to get QtCreator to link incrementally with nmake?
PS: If I import the project file into Visual Studio using the Qt Plugin, incremental linking works perfectly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然,qmake 需要以不同的方式生成 makefile,以便在使用 nmake 时使增量链接正常工作。
我提交了一个错误请求,如果您有兴趣,这里是: https://bugreports .qt-project.org/browse/QTBUG-22718
Apparently qmake needs to generate the makefiles differently in order to make incremental linking work properly when you are using nmake.
I filed a bug request, if you're interested, here it is: https://bugreports.qt-project.org/browse/QTBUG-22718