Compiling Glew with MinGW,
Members - Reputation: 408
Posted 23 September 2009 - 09:27 AM
Members - Reputation: 152
Members - Reputation: 389
Posted 23 September 2009 - 11:26 AM
Quote:It's not officially supported, but that doesn't mean you can't use it. I built Qt4.5 with VC++Express2008 and up to now I've had no problems with it.
I can't use Visual Studio express, because that's not supported by Qt
Quote:It has alredy been said, but one easy way is to grab MSYS and run make from there. Get the installer as it will help with setting the environment for you. As another option, get Codeblocks and import the VS project from there.
The Glew docs say that I have to use Cygwin, but isn't that a different compiler to MinGW which wouldn't work in combination with Qt?
Quote:make invokes whatever command is specified in the makefile. When building, the usual way is to use g++.exe for C++ files and gcc.exe for C files.
Second question: I use make (mingw32-make.exe). Which compiler does that use: mingw32-c++.exe, mingw32-g++.exe or mingw32-gcc.exe?
Members - Reputation: 169
Posted 06 June 2011 - 07:13 AM
Qt Creator itself uses MingW.
To compile GLEW you will need MSYS. After you install MSYS, launch MSYS
Navigate to the folder where GLEW is (with cd)
Note about paths - if path is C:\c++\glew, tou must type in:
then run "make" in there and it's OK. you can now install the *.a files in MinGW's bin
Note about Qt Creator's code completion don't like the GLEW's defines, and will not help. you will need function reference to write properly.