Jump to content
  • Advertisement
Sign in to follow this  
Ubermeowmix

OpenGL Building GLEW for MinGW

This topic is 970 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all,

 

Can anyone shed light on how the hell I build the GLEW libraries to work with CodeBlocks, it's driving me insane that I can't get started on an OpenGL/SDL2 project due to the stupid GLEW extensions.

 

I would really appreciate it if someone could direct me to a how-to or explain the steps.

 

Please save my sanity, muhahaahahaaa...

Share this post


Link to post
Share on other sites
Advertisement
You do not have to build the libraries, you can static link glew32s. You will also have to include the directory to the openGL libs in your Windows system32 folder. Also if you static link it do not forget to #define GLEW_STATIC. Then add "-lglew32s -lopengl32" to your linker flags, and it should work.

I use Codeblocks as well and this worked fine with SDL and OpenGL.

Share this post


Link to post
Share on other sites

Alternatively just grab the GLEW source code - glew.c and glew.h are all you need - and include them directly in your project/makefile.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!