QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4152|回复: 6

[请教]Ubuntu下的图形库mesa安装

[复制链接]
发表于 2007-10-20 19:36:07 | 显示全部楼层 |阅读模式
Ubuntu下,make那个mesa库出的一堆error,问题大概会在什么地方呢?
make的东西不全?
还是选项不对(make linux-x86)?
新手,请大家指教,谢谢。

下面是错误提示的一小部分,后来我又尝试了freeglut库,也出现了很类似问题。

../../include/GL/glxext.h:561: error: expected ')' before '*' token
../../include/GL/glxext.h:563: error: expected ')' before '*' token
../../include/GL/glxext.h:564: error: expected ')' before '*' token

../../include/GL/glx.h:347: error: expected ')' before '*' token
../../include/GL/glx.h:348: error: expected ')' before '*' token
../../include/GL/glx.h:349: error: expected ')' before '*' token
../../include/GL/glx.h:350: error: expected ')' before '*' token
../../include/GL/glx.h:351: error: expected ')' before '*' token

In file included from drivers/x11/glxapi.c:39:
drivers/x11/glxapi.h:40: error: expected specifier-qualifier-list before
'Display'
drivers/x11/glxapi.h:64: error: expected specifier-qualifier-list before
'XVisualInfo'

drivers/x11/glxapi.c:1197: error: 'glXChooseVisual' undeclared here (not in a
function)
drivers/x11/glxapi.c:1198: error: 'glXCopyContext' undeclared here (not in a
function)
drivers/x11/glxapi.c:1199: error: 'glXCreateContext' undeclared here (not in
a function)
发表于 2007-10-20 20:11:21 | 显示全部楼层
ubuntu 你 make 安装什么啊?
这个问题应该是你的 mesa 和某个系统库不兼容,虽然 ./configure 通过了,但因为接口变化, mesa 编译失败。
回复

使用道具 举报

 楼主| 发表于 2007-10-20 20:24:26 | 显示全部楼层

回复 #2 jiangtao9999 的帖子

谢谢回复~
在mesa的lib,demo解压之后的目录下
make linux-x86
貌似是行得通的,因为网上别人有成功的例子。并且在我机器上前面也已经成功编译了N个.o文件出来,中途才出现问题。我下的是mesa的7.0.1版本,ubuntu是7.0.4版本。

小弟刚学,大侠见笑了……
回复

使用道具 举报

发表于 2007-10-20 21:40:20 | 显示全部楼层
别人有成功的例子,你能保证和你的环境相同?
既然是 ubuntu ,为什么不 apt 一个装上? mesa 7.0.1 已经出了很久了。
回复

使用道具 举报

 楼主| 发表于 2007-10-21 12:53:50 | 显示全部楼层

回复 #4 jiangtao9999 的帖子

呃,我再试试看吧,因为从apt似乎拿不到那个库,要不具体给出一个例子看看?

还有,从出错的提示上看,我觉得应该是缺了某些东西,但是我又不确定缺的是什么……
回复

使用道具 举报

发表于 2007-10-21 13:49:11 | 显示全部楼层
回复

使用道具 举报

 楼主| 发表于 2007-10-31 14:15:56 | 显示全部楼层

解决了

最近一直没时间上网……1楼那个问题已经解决了……虽然我也不知道到底缺少的是什么东西,把QT库装好后,那个mesa库就很顺利地make成功了
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-23 14:54 , Processed in 0.055909 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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