LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1116|回复: 8

MDK2006下opengl/glut开发问题

[复制链接]
发表于 2006-4-9 08:33:17 | 显示全部楼层 |阅读模式
g++ xxx.cpp -l glut
系统提示说找不到-lglut库,无语
以前在fc下同样的命令却好好的
唯一不同的是fc下用的是freeglut,MDK下用的是libmesaglut-dev
请达人指教~~急
 楼主| 发表于 2006-4-9 09:06:43 | 显示全部楼层
怎么没人回呢?没人遇到同样的问题吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-9 09:29:30 | 显示全部楼层
解决了,我到redhat 官网下了它的freeglut包装上,把MDV自带的mesaglut卸了就好了;
真是讽刺。。。
回复 支持 反对

使用道具 举报

发表于 2006-4-9 11:59:16 | 显示全部楼层
libmesaglut-dev
看名字是DEV mesaglut 的,不是mesaglut
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-9 19:06:28 | 显示全部楼层
mesaglut
mesaglut-dev都装了
回复 支持 反对

使用道具 举报

发表于 2006-4-9 23:50:00 | 显示全部楼层
What?

freeglut is a completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to support the sample programs in the second edition OpenGL 'RedBook'. Since then, GLUT has been used in a wide variety of practical applications because it is simple, widely available and highly portable.

GLUT (and hence freeglut) allows the user to create and manage windows containing OpenGL contexts on a wide range of platforms and also read the mouse, keyboard and joystick functions.

freeglut is released under the X-Consortium license.

Why?

The original GLUT library seems to have been abandoned with the most recent version (3.7) dating back to August 1998. Its license does not allow anyone to distribute modified library code. This would be OK, if not for the fact that GLUT is getting old and really needs improvement. Also, GLUT's license is incompatible with some software distributions (e.g., XFree86).

Who?

freeglut was originally written by Pawel W. Olszta with contributions from Andreas Umbach and Steve Baker. Steve is now the official owner/maintainer of freeglut.
When?

Pawel started freeglut development on December 1st, 1999. The project is now virtually a 100% replacement for the original GLUT with only a few departures (such as the abandonment of SGI-specific features such as the Dials&Buttons box and Dynamic Video Resolution) and a shrinking set of bugs.

没有打一个包,也许有很多原因的。而且从来我们就可以自己动手丰衣足食。。下面是源代码的下载地址、Gentoo 的ebuild和 RedHat Fedora 相应的spec文件,抓下来编译就是了。。。
http://prdownloads.sourceforge.n ... 4.0.tar.gz?download
http://bugs.gentoo.org/show_bug.cgi?id=36783
http://jumpgate.homelinux.net/random/freeglut-fedora/

不至于讽刺吧。
回复 支持 反对

使用道具 举报

发表于 2006-4-10 00:28:31 | 显示全部楼层
楼主没有什么的,就是性急罢了。急了谁都会说这样的话。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-10 11:55:51 | 显示全部楼层
其实我一个同学在ubuntu下用libmesaglut-dev就可以。。。
谢谢Edouard体会我这等菜鸟的心情啊^_^
回复 支持 反对

使用道具 举报

发表于 2006-4-10 12:42:17 | 显示全部楼层
Post by shiftily
其实我一个同学在ubuntu下用libmesaglut-dev就可以。。。
谢谢Edouard体会我这等菜鸟的心情啊^_^

估计是MDV本身路径设置的问题,象楼上说的太久没有维护了,没有改路径了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表