Chinaunix

标题: 龙芯MIPS架构linux安装mesa的问题 [打印本页]

作者: unixhanyuan    时间: 2013-05-21 11:11
标题: 龙芯MIPS架构linux安装mesa的问题
用的mesa7.8.2和mesa9.0都一样的问题
configure没问题之后,make,中途出现如下错误

/usr/bin/ld: /usr/lib/gcc/mipsel-linux-gnu/4.4.5/../../../../lib/libX11.a(ChGC.o): relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/mipsel-linux-gnu/4.4.5/../../../../lib/libX11.a: could not read symbols: Bad value
请问如何解决这个问题?困扰好久,我也不太懂linux,所以还请详细教授,谢谢
作者: dooros    时间: 2013-05-21 13:06
recompile with -fPIC, 加上这个试试。
作者: unixhanyuan    时间: 2013-05-21 13:36
回复 2# dooros

怎么加?


   
作者: dooros    时间: 2013-05-21 13:42
本帖最后由 dooros 于 2013-05-21 13:43 编辑

./configure 后面添加--enable-shared 试试。
作者: unixhanyuan    时间: 2013-05-21 14:16
回复 4# dooros

还是不行,是不是要在makefile里加什么东西?


   
作者: dooros    时间: 2013-05-21 16:40
unixhanyuan 发表于 2013-05-21 14:16
回复 4# dooros

还是不行,是不是要在makefile里加什么东西?


你先把原来的东西删了,重新配置,再编译,也不行?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2