关闭

GLUI库的配置

2017人阅读 评论(0) 收藏 举报

下面是Alfie对于VS2005以及VS2008用户最完美的解决方案:

 

1. Install opengl, and make sure it works out.

 

2. Download "glui-2.35.zip" (http://glui.sourceforge.net/#download)

 

3. In "glui-2.35/glui-2.35/src/include/GL",you get glui.h.

   creat file C:/Program Files/Microsoft Visual Studio 9.0/VC/include/GL, and put "glui.h" there.

 

4. in "glui-2.35/glui-2.35/src/msvc", click "glui.dsw" (load and open).

 

5. in the project Properties: -> C/C++ -> Preprocessor -> Preprocessor definitions and append GLUT_BUILDING_LIB to the existing definitions, seperated by semicolons.

 

6. in the project Properties: -> C/C++ -> Code Generation -> Runtime Library, and chang it to "Multi-threaded DLL(/MD)" or "Multi-threaded Debug DLL(/MDd)"(Latter one is Better).

 

7. run project "_glui library", then you get "glui32.lib" in a new "lib" file. Put glui32.lib in "C:/Program Files/Microsoft Visual Studio 9.0/VC/lib".

 

8. Now you can open an example of GLUI, and repeat step 5 and 6.

Then, Click the menu item "Project" --> "Properties...". Click "Linker" --> "Input" .

Type in Additional Dependencies: glui32.lib glut32.lib glu32.lib opengl32.lib

(Tag1: glui32.lib is only neccesary when you are using GLUI, but make sure there's glui32.lib when you are actually using GLUI).(Tag2: GLUI User Manual mentions that this is the proper order of specifying additional libraries for GLUI, GLUT and OpenGL)

 

9. Enjoy.

0
0

猜你在找
深度学习基础与TensorFlow实践
【在线峰会】前端开发重点难点技术剖析与创新实践
【在线峰会】一天掌握物联网全栈开发之道
【在线峰会】如何高质高效的进行Android技术开发
机器学习40天精英计划
Python数据挖掘与分析速成班
微信小程序开发实战
JFinal极速开发企业实战
备战2017软考 系统集成项目管理工程师 学习套餐
Python大型网络爬虫项目开发实战(全套)
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:5664次
    • 积分:108
    • 等级:
    • 排名:千里之外
    • 原创:5篇
    • 转载:1篇
    • 译文:0篇
    • 评论:2条
    文章分类
    文章存档
    最新评论