运行 qmake && make 时出错

艾德里斯

我正在尝试在 Windows 上安装 svn2git。目前,我在 C:/ 目录中有 svn2git 克隆的 repo。需要 Qt4(这是手册中指定的版本)来构建。但是,我似乎在正确安装 Qt4 时遇到了问题。

目前,当我在 svn2git 文件夹中尝试和 rune qmake && make 时,我得到以下输出:

"C:/Program Files (x86)/Git/bin/sh.exe": -c: line 1: syntax error: unexpected end of file
Makefile:31: recipe for target 'src\Makefile' failed
mingw32-make: *** [src\Makefile] Error 258

当我构建 configure Qt 时,我一直在这样做:

configure -platform win32-msvc2013

不完全确定我应该用哪个平台安装它。

在配置输出结束时,我得到:

Creating qmake...
execute: File or path is not found (nmake)
execute: File or path is not found (nmake)
Cleaning qmake failed, return code -1

我在 C:/ 中安装了 MinGW,并mingw32-make.exe在 bin 中。https://i.imgur.com/Q01zqiy.png

最后,我的系统环境变量中还有 Qt 和 MinGW https://i.imgur.com/dP2O0IM.png

吸血鬼

我建议简单地安装 Cygwin,你在包管理器中有现成的 qt4 包,你可以简单地安装,然后构建svn2git就像qmake-qt4 && make通过包管理器安装所需的依赖项后调用一样简单至少这就是我svn2git在 Windows 上构建的方式

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章