0

在 glew 项目页面上查看时,有一个带有最新代码的 git 存储库。

克隆存储库我看到我需要下载扩展。Makefile 有一个名为extensions的目标,它负责从 Internet 下载所有内容。

问题是这个 Makefile 是 Unix 系统的默认文件。当我尝试在 Windows 上构建 glew 时,使用msysgitmingw我收到以下错误:

mingw32-make.exe extensions
mingw32-make -C auto
mingw32-make[1]: Entering directory `glew/auto'

--------------------------------------------------------------------
Creating descriptors
--------------------------------------------------------------------
rm -rf extensions/gl
bin/update_ext.sh extensions/gl registry/gl blacklist
Integer overflow in hexadecimal number at bin/parse_spec.pl line 337.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 337.
Integer overflow in hexadecimal number at bin/parse_spec.pl line 337.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 337.
Integer overflow in hexadecimal number at bin/parse_spec.pl line 337.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 337.
Integer overflow in hexadecimal number at bin/parse_spec.pl line 337.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 337.
Integer overflow in hexadecimal number at bin/parse_spec.pl line 337.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 337.
bin/filter_gl_ext.sh     extensions/gl
Can't do inplace edit on extensions/gl/GL_HP_occlusion_test: Permission denied.
Can't open extensions/gl/GL_HP_occlusion_test: No such file or directory.
Can't do inplace edit on extensions/gl/GL_ARB_vertex_buffer_object: Permission d
enied.
Can't do inplace edit on extensions/gl/GL_ARB_vertex_shader: Permission denied.
Can't open extensions/gl/GL_ARB_vertex_shader: No such file or directory.
Can't open extensions/gl/GL_ARB_vertex_shader: No such file or directory.
Can't open extensions/gl/GL_ARB_vertex_shader: No such file or directory.
grep: extensions/gl/GL_ARB_vertex_shader: No such file or directory
mingw32-make[1]: *** [extensions/gl/.dummy] Error 2
mingw32-make[1]: Leaving directory `glew/auto'
mingw32-make: *** [extensions] Error 2

我知道这来自perl,但是如何在 Windows 中使用 MinGW 和 msysgit 解决它?我首先考虑其他环境设置,例如cygwin,但我已经有一个设置,可以使用我当前的设置构建十几个其他项目。

4

1 回答 1

1

问题可能来自您使用makeMinGW(您的mingw32-make)但perl来自 MSYS(随Git for Windows一起提供)的事实。所以你需要的是一个 MSYS make

在继续之前,让我指出一个常见的误解:msysgit是创建Git for Windows安装程序的开发环境的名称(另请参阅此答案)。所以通常只想在 Windows 上使用 Git 的人应该下载Git for Windows,而不是msysgitmsysgit附带了各种通常不需要的开发内容,例如gccand (tadaa) make。所以在你的情况下,你真的需要msysgit,我建议从这里安装网络安装程序。安装后你应该能够启动C:\msysgit\msys.bat,切换到你的glew目录,然后运行make extensions​​.

于 2013-10-02T09:18:25.040 回答