簡體   English   中英

在Windows上使用MinGW編譯Glew git代碼

[英]Compile Glew git code with MinGW on Windows

在glew項目頁面上查找時,有一個git存儲庫,其中包含最新代碼。

克隆存儲庫,我看到我需要下載擴展。 Makefile有一個名為extensions的目標,可以完成從Internet下載所有內容的工作。

問題是該Makefile是Unix系統的默認文件。 當我嘗試在Windows上使用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,但是我已經有一個使用當前設置構建其他項目的設置。

這個問題可能來自一個事實,即您使用make從MinGW的(你mingw32-make ),但perl從MSYS(其中附帶的Git適用於Windows)。 因此,您需要的是MSYS make

在繼續之前,讓我指出一個常見的誤解: msysgit是用於創建Git for Windows安裝程序的開發環境的名稱(另請參見此答案 )。 因此,通常只想在Windows上使用Git的人應該下載Windows的Git ,而不是msysgit msysgit附帶了通常不需要的各種開發資料,例如gcc和(tadaa) make 因此,在您的情況下,您確實需要msysgit ,我建議從這里開始安裝net安裝程序。 安裝之后,您應該能夠啟動C:\\msysgit\\msys.bat ,切換到glew目錄,然后運行make extensions

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM