Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: bjnilsen61 on September 29, 2011, 09:26:14 pm

Title: CodeBlocks/GLUT.
Post by: bjnilsen61 on September 29, 2011, 09:26:14 pm
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
Title: Re: CodeBlocks/GLUT.
Post by: seb_seb0 on September 29, 2011, 10:29:42 pm
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 (http://freeglut.sourceforge.net/index.php)
   - follow one of these tutorials
          http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks (http://wiki.codeblocks.org/index.php?title=Using_FreeGlut_with_Code::Blocks)
          http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/glut/ (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
         
Title: Re: CodeBlocks/GLUT.
Post by: MortenMacFly on September 30, 2011, 07:26:23 am
You need to compile Glut.
Not really, you can also just use the DevPak for GLUT:
http://www.nigels.com/glt/devpak/
Title: Re: CodeBlocks/GLUT.
Post by: bjnilsen61 on September 30, 2011, 05:34:36 pm
Thanks for the suggestions guys!

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

BJ