User forums > Using Code::Blocks

CodeBlocks/GLUT.

(1/1)

bjnilsen61:
Hello,

I am trying to create a GLUT project using the CodeBlocks template but is unable to do so because the wizard can't find the glut32 library file.  My question is: where is the wizard expecting to find this file?  In the GLUT package I downloaded and installed from OpenGL (glut 3.7), I did not find any glut32.dll or glut32.lib files so I have gotten those elsewhere but I don't know where I should put these files inside the glut-3.7 folder so that the CodeBlocks project wizard can find them.  I have tried several places but so far no luck.  I am using the Windows 7 operating system.  Any help would be much appreciated.

Thanks,

BJ

seb_seb0:
You need to compile Glut. For that, you can import the Visual Studio workspace in CodeBlocks (search for the *.dsw in GLUT_DIRECTORY\lib. There are 2 : one for the static lib, and one for DLL. If you do not know which one to choose, pick the DLL.)

You have also other alternatives:
   - use FreeGlut (compiles & work without any problem on Windows 7) : http://freeglut.sourceforge.net/index.php
   - follow one of these tutorials
          http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks
          http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/glut/
   - use wxWidgets or QT instead - Glut is a bit outdated (but functional and easy to learn)
     You do not have the Teapot in wxWidgets or QT

Seb
         

MortenMacFly:

--- Quote from: seb_seb0 on September 29, 2011, 10:29:42 pm ---You need to compile Glut.

--- End quote ---
Not really, you can also just use the DevPak for GLUT:
http://www.nigels.com/glt/devpak/

bjnilsen61:
Thanks for the suggestions guys!

I'm now up and running with GLUT and all that.

BJ

Navigation

[0] Message Index

Go to full version