GLUI库的配置
2011-03-12 09:27
176 查看
下面是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.
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.
相关文章推荐
- 传统网络配置命令与ip高级路由命令学习示例
- java环境配置笔记1
- 核心交换机的TRUNK配置详细讲解
- 通过Apache访问svn代码库的配置步骤
- CCNA配置命令大全
- WinCE初级教程-Platform Builder 5.0建立和配置指南[三]
- ubuntu-网络配置
- 在Hibernate中使用JTA事务j简单方法配置
- 配置YUM服务器
- CentOS http服务器配置
- nginx(二)初识配置文件
- VC项目配置基础
- Ubuntu下U8500设备配置
- java环境变量配置
- 打开 Excel 时 总是进行配置
- MYSQL 配置 my 默认
- 不需要配置文件就可以使用Quartz.NET的方法
- oracle 两个日期相差天数 以及定时器的配置
- 如何加密ASP.NET配置数据
- 利用GetPrivateProfileString读取配置文件(.ini)