【问题标题】:How to disable adding 'd' suffix to debug library name in qmake on windows?如何在 Windows 上的 qmake 中禁用在调试库名称中添加“d”后缀?
【发布时间】:2012-09-06 08:02:39
【问题描述】:

我在 QtCreator 中为 QML C++ 插件创建了项目,调试版本在名称后附加了“d”后缀,例如 plugind.dll 而不是 plugin.dll。如何配置项目不添加这个后缀? Qt 版本 4.8.1,Windows 7。

【问题讨论】:

  • 你为什么要这样做?你知道你不能将调试插件加载到发布版本中,所以它在某种程度上毫无意义
  • @KamilKlimek:我想调试我的插件。是的,我发现我不能在发布版本中使用插件的调试版本。但我找到了不同的解决方案:enable debug information in the release build

标签: qt qt4 qmake


【解决方案1】:

您可以将此行写入 .pro 文件:

TARGET = YourProgramName

【讨论】:

    猜你喜欢
    • 2018-09-15
    • 1970-01-01
    • 1970-01-01
    • 2021-12-16
    • 1970-01-01
    • 2015-12-05
    • 2014-09-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多