【问题标题】:Compiling qt creator with Qt 5.4.1 for Windows 32-bit (MinGW 4.9.1)使用 Qt 5.4.1 为 Windows 32 位 (MinGW 4.9.1) 编译 qt creator
【发布时间】:2015-03-10 10:58:34
【问题描述】:

当我在 linux 中构建一个 qt 创建器时,我没有任何问题。

但是当我尝试使用Qt 5.4.1Windows 32-bit (MinGW 4.9.1) 从源代码构建qt 创建器时。我对lrelease 路径有疑问

编译输出:

C:/Qt/Qt5.4.0/Tools/mingw491_32/bin/mingw32-make -f Makefile.Debug mingw32-make[3]:进入目录 'C:/src/qt-creator/build-qtcreator-Desktop_Qt_5_4_0_MinGW_32bit-Debug/share/qtcreator/translations' /C/Qt/Qt5.4.0/5.4/mingw491_32/bin/lrelease C:/src/qt-creator/qt-creator/share/qtcreator/translations/qtcreator_cs.ts -qm qtcreator_cs.qm /usr/bin/sh: /C/​​Qt/Qt5.4.0/5.4/mingw491_32/bin/lrelease: 没有那个文件或目录

Makefile.Debug:161:目标“qtcreator_cs.qm”的配方失败 mingw32-make[3]: *** [qtcreator_cs.qm] 错误 127

不知道为什么会有使用unix方式的路径/C/Qt/Qt5.4.0/5.4/mingw491_32.

我该如何解决这个问题?

【问题讨论】:

  • krasotka,我之前给出了答案,但完全错误,我删除了我的答案,也许其他人现在可以帮助你,因为它被标记为未回答。我什至没有正确阅读问题。

标签: qt makefile mingw qmake


【解决方案1】:

你自己已经部分回答了这个问题。

lrelease.exe 的路径不正确,在translations.pro 中使用。

如果您将命令中的$$LRELEASE 替换为实际的 lrelease 路径,您应该可以通过编译。然而,在这之后我得到了来自 git 的最新版本的 0xc0000022 错误,我不确定我们是否应该真正改变任何东西......

【讨论】:

    猜你喜欢
    • 2012-03-03
    • 1970-01-01
    • 2014-10-13
    • 1970-01-01
    • 2012-03-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-18
    相关资源
    最近更新 更多