Author Topic: CodeBlocks/GLUT.  (Read 9798 times)

Offline bjnilsen61

  • Single posting newcomer
  • *
  • Posts: 3
CodeBlocks/GLUT.
« 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

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: CodeBlocks/GLUT.
« Reply #1 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
   - 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
         

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeBlocks/GLUT.
« Reply #2 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/
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline bjnilsen61

  • Single posting newcomer
  • *
  • Posts: 3
Re: CodeBlocks/GLUT.
« Reply #3 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