【问题标题】:Compile Glew git code with MinGW on Windows在 Windows 上使用 MinGW 编译 Glew git 代码
【发布时间】:2013-01-08 16:41:57
【问题描述】:

查看 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,但我已经有一个设置,可以使用我当前的设置构建十几个其他项目。

【问题讨论】:

    标签: windows git mingw msysgit glew


    【解决方案1】:

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

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

    【讨论】:

    • 我试试看。关于 msysgit 的很好的解释。如果它有效,我将标记为 anwser。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-02-02
    • 2013-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多