Chinaunix
标题:
redhat 9中如何进行opengl编程
[打印本页]
作者:
daisybear
时间:
2008-02-25 11:22
标题:
redhat 9中如何进行opengl编程
rt,目前需要在redhat9中用gcc和opengl联合起来编程,请问需要什么软件和如何配置,已经安装了gcc,谢谢,在线等!!
作者:
何强
时间:
2008-05-19 15:20
标题:
回复 #1 daisybear 的帖子
好像readhat 中默认是安装有opengl开发库的,你可以用
#ls /usr/lib/pkgconfig | grep gl
来看一下有没有gl*.pk glut.pkg 这一类的东东,我不太知道在readhat 9.0下的具体是什么,
如果没有可以到google中找一下mesa,解压到一个目录,然后make linux && make install
再到/usr/lib/pkgconfig中运行#ln -s /usr/local/lib/pkgconfig/"**" ./ "**"
其中的"**"代表/usr/local/lib/pkgconfig目录中的文件名,如果没出错的话应该就安好了OPenGL
编译你的代码时要用如下的一个形式;
#gcc `pkg-config gl` main.c
我说的不太详细,希望你成功!
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2