Install Mingw 64 bit for Windows and build compile install GLEW library from source for Windows

preview_player
Показать описание
A tutorial for how to install Mingw-64 bnit for windows as well as building and compiling and installing glew from source for windows

for commands for installation of glew from source

gcc -DGLEW_NO_GLU -O2 -Wall -W -Iinclude -DGLEW_BUILD -o src/glew.o -c src/glew.c

ar cr lib/libglew32.a src/glew.o

also make sure to move the include files from the glew-x.x.x folder to the mingw include folder where you installed mingw on your system
Рекомендации по теме
Комментарии
Автор

Thanks, got GLEW to compile finally. ^___^

hansxiaomeng
Автор

also make sure to copy the GL folder in the glew include folder to the mingw include folder where you installed mingw on your system, which contains the glew header files

discretemathematicso
Автор

Thank you so much this was very helpful!!

hiyamghannam
Автор

at times hard to hear, but otherwise good, guide, thanks!

EDIT: although im still getting this error when gcc my c file:
GL/glew.h: No such file or directory
#include <GL/glew.h>
thru mingw (I copied the GL folder into the include) Any idea why?

gunot
Автор

cant i do this process with mingw? and not use mingw-build?

ARYA_
Автор

my two game engines linux version and windows version

discretemathematicso
Автор

I don't have the binary folder for 64 bit. What I have is C:\mingw-64\mingw32\bin but it's for 32 bit right??? I download the latest version of MinGW-w64.

lokmannaza
Автор

Sorry, I'm a total newbie. Why should I install GLEW?

AlqGo
Автор

cmd > gcc --version "enter"

hanums