错误 运行 qmake && make

Errors running 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

当我构建配置 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

最后我的系统环境变量里也有Qt和MinGW

我建议只安装 Cygwin,在包管理器中有现成的 qt4 包,您可以简单地安装它们,然后构建 svn2git 就像在您之后调用 qmake-qt4 && make 一样简单还通过包管理器安装了所需的依赖项。至少这就是我在 Windows.

上构建 svn2git 的方式