打印

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

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

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)

TOP

ubuntu 你 make 安装什么啊?
这个问题应该是你的 mesa 和某个系统库不兼容,虽然 ./configure 通过了,但因为接口变化, mesa 编译失败。
不想要 ID 了请找我。

TOP

回复 #2 jiangtao9999 的帖子

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

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

TOP

别人有成功的例子,你能保证和你的环境相同?
既然是 ubuntu ,为什么不 apt 一个装上? mesa 7.0.1 已经出了很久了。
不想要 ID 了请找我。

TOP

回复 #4 jiangtao9999 的帖子

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

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

TOP

不想要 ID 了请找我。

TOP

解决了

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

TOP