469,641 Members | 1,164 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,641 developers. It's quick & easy.

Compiling GLEW with mingw

3 2Bits
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:
https://www.youtube.com/watch?v=Y8VIjNw2EG0
https://www.youtube.com/watch?v=69czFvC946I
https://www.youtube.com/watch?v=LO1LnhWWIow
https://www.youtube.com/watch?v=guM4XS43m4I
Nov 7 '20 #1
3 2160
dev7060
518 Expert 512MB
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.
Nov 7 '20 #2
Dracula55
3 2Bits
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.
Nov 8 '20 #3
Dracula55
3 2Bits
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.
Nov 8 '20 #4

Post your reply

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

Similar topics

reply views Thread by Joonas Paalasmaa | last post: by
reply views Thread by Oleg A. Paraschenko | last post: by
1 post views Thread by sid | last post: by
1 post views Thread by A. B., Khalid | last post: by
66 posts views Thread by Srijit Kumar Bhadra | last post: by
8 posts views Thread by rays | last post: by
81 posts views Thread by =?utf-8?B?4piG4piG4piG4piG4piGIFPDvCBLZWl0aCBDaGFr | last post: by
2 posts views Thread by eliben | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.