By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,553 Members | 832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,553 IT Pros & Developers. It's quick & easy.

Compiling GLEW with mingw

P: 3
I am trying to compile glew binaries, for my Qt 5.14 with MinGw.
I set the environment path to .....\QT\Qt5.14.1\Tools\mingw730_32\bin like one guy suggested in the video.

Then i run cmd. I type then cd C\:glew2.1\compile.bat. In the video it does work, but in my case it just says "the command isn't recognized"

This is in the bat file
gcc -DGLEW_NO_GLU -O2 -Wall -W -Iinclude -DGLEW_BUILD -o src/glew.o -c src/glew.c
gcc -shared -Wl,-soname,libglew32.dll -Wl,--out-implib,lib/libglew32.dll.a -o lib/glew32.dll src/glew.o -L/mingw/lib -lglu32 -lopengl32 -lgdi32 -luser32 -lkernel32

After 5h, i am done with this bullshit. I do exactly the same thing as the others show, and it just doesn't run, so i need help. MinGw comes with Qt 5.14 installation.

Those are few the videos i lookup:
3 Weeks Ago #1
Share this Question
Share on Google+
3 Replies

Expert 100+
P: 336
Command-line needs a restart to recognize the newly added paths. Use
echo %path%
to see if the desired one has been added. To set a temporary path, use
SET PATH="C:\Users\yadayada\...\QT\Qt5.14.1\Tools\ming w730_32\bin".
Check if the executable is available using the simple version check command
gcc -v
If you see the version info, you're good to go.
3 Weeks Ago #2

P: 3
Still doesn't work. I did reinstall everything, now it's recognized, but few tests i did, doesn't compile anything. The commands are now known, but when i acess the compile.bat by the Qt command prompt, it does nothing.
2 Weeks Ago #3

P: 3
Ok, so i input the commands to the prompt manually, and this time it does work. Now i am gonna check if it does compile them.
2 Weeks Ago #4

Post your reply

Sign in to post your reply or Sign up for a free account.