Skip to main content

Steps to Install and Configure GLUT package using Code::Blocks

OpenGL programs using Code::Blocks can be run using two modes:
  1. Creating an OpenGL Project in Code::Blocks. Click Here to know more.
  2. Creating a stand alone OpenGL program, compiling and running it using Code::Blocks.
Steps to configure GLUT on Code::Blocks:
  • Download glut.zip, unzip it and place it in respective directories.
  • Copy the file glut.h and paste it in GL folder of Code Blocks (Ex: C:\Program Files (x86)\CodeBlocks\MinGW\include\GL)
  • Copy the file libglut32.a and paste it in lib folder of Code Blocks (Ex: C:\Program Files (x86)\CodeBlocks\MinGW\lib)
  • Copy the file glut32.dll and paste it in C:\Windows\SysWOW64 folder (in-case of 64-bit Windows OS) or C:\Windows\System32 folder (in-case of 32-bit Windows OS.
Creating a stand alone OpenGL program, compiling and running it using Code::Blocks:
  • Start Code::Blocks from the start menu.
  • Goto Settings menu and click on Compiler menu option.
  • Compiler Settings window will be opened.
  • Ensure that selected compiler is GNU GCC Compiler.
  • Goto Linker Settings and add the linker libraries glu32, glut32 and opengl32 by click on "Add" button and adding them individually.
  • This activity needs to be done ONLY ONCE.
  • Now Code::Blocks is ready to compiler and execute OpenGL programs.

Comments

  1. Best casinos near Maysoue Hotel & Casino, Inc. - MJH
    Find your ideal 광양 출장안마 location in Louisiana, with lots of options 충청남도 출장샵 for you from 하남 출장샵 casinos around the world. Just 광주광역 출장샵 minutes away from the beach, 전라남도 출장샵 you'll be

    ReplyDelete

Post a Comment

Popular posts from this blog

Chapter-3b: Working with Callbacks

Following topics are discussed in this presentation: Handling the event types in OpenGL - mouse, keyboard, active and passive motion and reshape Viewport Menus in OpenGL Note:  This PPT was taken from  https://www.cs.unm.edu/~angel/BOOK/INTERACTIVE_COMPUTER_GRAPHICS/FIFTH_EDITION/PPT/  and modified according to the syllabus needs.