glui
来源:互联网 发布:网络公安举报电话 编辑:程序博客网 时间:2024/06/01 08:38
如何在OpenGL基础上配置好GLUI?
网上以及GLUI自带文档都是不详细且有问题的,特别是对于VS2005,以及VS2008的用户,通常会产生一些exit()重定义问题,以及enternal symbol的问题。在一夜研究之后,终于成功。
下面是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 existingdefinitions, 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 Studio9.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 surethere's glui32.lib when you are actually using GLUI).(Tag2: GLUI UserManual mentions that this is the proper order of specifying additionallibraries for GLUI, GLUT and OpenGL)
9. Enjoy.
-------------------------------------------------------
If you need a complete version of glpng(including glpng.h,glpng.lib, glpngd.lib), you would find hard to find glpng.lib,glpngd.lib, yet you can download a complete version here: http://digsys.linuxberg.com/preview/47311.html
- glui
- GLUI配置
- GLUI库的配置
- glui资料好缺乏
- 开源项目之C++界面库 GLUI
- 开源项目之C++界面库 GLUI
- Linux下glui 的安装,以及错误解决
- VS2010编译以及使用GLUI过程中碰到的一些问题
- 空闲时读一读
- TIF格式图像文件初探
- [转载]Streaming API for XML (StAX) 简介
- WM_NCHITTEST无标题对话框的移动
- 我心中的敏捷(6)----SCRUM之如何规划每一天
- glui
- 对年轻人求职跳槽的忠告
- 数据仓库开发过程中的七个禁忌
- FC 的 yum...
- IEEE论文PDF文件的字体嵌入(embedded font)问题
- 瀑布汗,一句邪恶的话描述儿时卡通片
- 君子生非异也,善假于物也
- MyEclipse6.6中自动补齐失效
- 培训方案