News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

CodeBlocks/GLUT.

Started by bjnilsen61, September 29, 2011, 09:26:14 PM

Previous topic - Next topic

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

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

bjnilsen61

Thanks for the suggestions guys!

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

BJ