+ -
当前位置:首页 → 问答吧 → MDK2006下opengl/glut开发问题

MDK2006下opengl/glut开发问题

时间:2006-04-09

来源:互联网

g++ xxx.cpp -l glut
系统提示说找不到-lglut库,无语
以前在fc下同样的命令却好好的
唯一不同的是fc下用的是freeglut,MDK下用的是libmesaglut-dev
请达人指教~~急

作者: shiftily   发布时间: 2006-04-09

怎么没人回呢?没人遇到同样的问题吗?

作者: shiftily   发布时间: 2006-04-09

解决了,我到redhat 官网下了它的freeglut包装上,把MDV自带的mesaglut卸了就好了;
真是讽刺。。。

作者: shiftily   发布时间: 2006-04-09

libmesaglut-dev
看名字是DEV mesaglut 的,不是mesaglut

作者: Edouard   发布时间: 2006-04-09

mesaglut
mesaglut-dev都装了

作者: shiftily   发布时间: 2006-04-09

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.net/f...ar.gz?download
http://bugs.gentoo.org/show_bug.cgi?id=36783
http://jumpgate.homelinux.net/random/freeglut-fedora/

不至于讽刺吧。

作者: csyfek   发布时间: 2006-04-10

楼主没有什么的,就是性急罢了。急了谁都会说这样的话。

作者: Edouard   发布时间: 2006-04-10

其实我一个同学在ubuntu下用libmesaglut-dev就可以。。。
谢谢Edouard体会我这等菜鸟的心情啊^_^

作者: shiftily   发布时间: 2006-04-10

引用:
作者: shiftily
其实我一个同学在ubuntu下用libmesaglut-dev就可以。。。
谢谢Edouard体会我这等菜鸟的心情啊^_^
估计是MDV本身路径设置的问题,象楼上说的太久没有维护了,没有改路径了

作者: marabase   发布时间: 2006-04-10

热门下载

更多