首頁 > 程式設計 > OpenGL (GLUT) with Code::Blocks on Windows Operating System

OpenGL (GLUT) with Code::Blocks on Windows Operating System

1. Go to  http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/glut/ and download  glut-3.x.x-bin

2. Unzip it, and then copy glut32.dll to C:\\Windows\system32

copy glut.h to <CodeBlocks directory>\MinGW\include\GL\

copy glut32.lib to <CodeBlocks directory>\MinGW\lib\

3. Execute Code::Blocks , and create a glut project

4. Attention that GLUT’s location : <CodeBlocks>\MinGW and next.

5. Then you can compile it successfully.

Note:  If you can’t link it successfully, try to open Project->build Opetions ,

then select the linker settings , add the glut32.dll address into the library list. Then, you will enjoy it.

Ref: 1) http://web.ntpu.edu.tw/~jyhuang/Course/97(1)-Computer%20Graphics.htm

2) http://www.allegro.cc/forums/thread/596253

分類:程式設計 標籤:
  1. 仍無迴響。
  1. No trackbacks yet.

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

%d 位部落客按了讚: