05 10月 2010

[Extract] set up environment for OpenGL and GLUT on VC++ 2010 Express

Those steps are extracted from the good blog Here! and Here!, written by Nafee M Sadh's.
Write records here just for fear that if the original blog is removed someday.


Key Steps to create Win32 console application:

  • Select "Empty Project" in the wizard dialog.
  • In the Project Property, Configuration Properties  Linker  Input, Type “opengl32.lib;glu32.lib” in Additional Dependencies.
  • For above step, remember to select the "All configurations" to set the debug and release environment at the same time.

Key Step to set up GLUT environment:


  • Download the original GLUT library from Nate Robins’ site. (for my case, the zip package will generate one .h file, two .lib files, two .dll files after upzipped.) 
  • put the files as below: (VS2010) ( I copy these three lines form the original blog..)
    glut.h to the folder C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\gl\
    glut32.lib to the folder C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\
    glut32.dll to the folder C:\Windows\System32\
Try it, and don't forget to visit the original blog for more useful information. :P

2 則留言:

  1. It is nice that my quick-note was helpful to you, and I'm proud that u kept link to by blog here :)

    回覆刪除
  2. my friend, I'm so happy to see your message. It surprises me that you find this rookie blog :) ..really cheers me up!

    回覆刪除