LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1350|回复: 12

sis 771/671 显卡驱动谜

[复制链接]
发表于 2010-1-1 13:26:32 | 显示全部楼层 |阅读模式
说实话,我的系统显示分辨率800X600实在是看不下去了,最近一直在找sis 771/671显卡驱动,现在找到了方法,但是在make && make install 的时候却没编译成功,希望论谈的高手们帮帮忙想想办法解决此问题!

make 的时候出现错误,不知是如何原因!
13:04 xiaohui@network ~/sis672-driver/xorg-driver-sis671-0.9 $ sudo make
make  all-recursive
make[1]: Entering directory `/home/xiaohui/sis672-driver/xorg-driver-sis671-0.9'
Making all in src
make[2]: Entering directory `/home/xiaohui/sis672-driver/xorg-driver-sis671-0.9/src'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1     -I/usr/include/drm -I/usr/include/X11/dri   -g -O2 -MT init301.lo -MD -MP -MF .deps/init301.Tpo -c -o init301.lo init301.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -MT init301.lo -MD -MP -MF .deps/init301.Tpo -c init301.c  -fPIC -DPIC -o .libs/init301.o
在包含自 init301.h:60 的文件中,
                 从 init301.c:76:
sis.h:74:27: 错误:xf86Resources.h:没有那个文件或目录
make[2]: *** [init301.lo] 错误 1
make[2]: Leaving directory `/home/xiaohui/sis672-driver/xorg-driver-sis671-0.9/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/xiaohui/sis672-driver/xorg-driver-sis671-0.9'
make: *** [all] 错误 2
发表于 2010-1-2 00:32:07 | 显示全部楼层
朋友,我把UBUNTU的X64驱动放到SABAYON可以用,不用忍受800*600的煎熬
回复 支持 反对

使用道具 举报

发表于 2010-1-2 01:16:47 | 显示全部楼层
Post by yyh3345;2061127
说实话,我的系统显示分辨率800X600实在是看不下去了,最近一直在找sis 771/671显卡驱动,现在找到了方法,但是在make && make install 的时候却没编译成功,希望论谈的高手们帮帮忙想想办法解决此问题!

make 的时候出现错误,不知是如何原因!
13:04 xiaohui@network ~/sis672-driver/xorg-driver-sis671-0.9 $ sudo make
make  all-recursive
make[1]: Entering directory `/home/xiaohui/sis672-driver/xorg-driver-sis671-0.9'
Making all in src
make[2]: Entering directory `/home/xiaohui/sis672-driver/xorg-driver-sis671-0.9/src'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1     -I/usr/include/drm -I/usr/include/X11/dri   -g -O2 -MT init301.lo -MD -MP -MF .deps/init301.Tpo -c -o init301.lo init301.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -MT init301.lo -MD -MP -MF .deps/init301.Tpo -c init301.c  -fPIC -DPIC -o .libs/init301.o
在包含自 init301.h:60 的文件中,
                 从 init301.c:76:
sis.h:74:27: 错误:xf86Resources.h:没有那个文件或目录
make[2]: *** [init301.lo] 错误 1
make[2]: Leaving directory `/home/xiaohui/sis672-driver/xorg-driver-sis671-0.9/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/xiaohui/sis672-driver/xorg-driver-sis671-0.9'
make: *** [all] 错误 2


Seems this is a missing dependence error, this mean you have not installed the proper package which contains the "xf86Resources.h" header file, I think you should read the ReadMe (or something like this) file with your driver source code.

Another question is how old are your driver source, the current free X implementation is Xorg, so if this driver depends on xf86Resources.h, it should be very old.

Maybe you can just edit the source file try to change include<> to include "" and download the header file to your compilation directory.
回复 支持 反对

使用道具 举报

发表于 2010-1-2 01:17:32 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-2 09:01:34 | 显示全部楼层
谢谢楼上两位的细心解说.我先试试吧!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-2 09:28:36 | 显示全部楼层


那还问个小问题,也就是说下载后文件应该放在哪才行呢?
回复 支持 反对

使用道具 举报

发表于 2010-1-2 09:37:44 | 显示全部楼层
楼主的驱动来源于官方论坛:http://forums.gentoo.org/viewtopic-t-807395-highlight-sis.html
那里的有人编译成功了,可以去那边问一下的。


二楼说的不错,可以试试用二进制驱动直接替换,bugzilla里有人这么用:
http://bugs.gentoo.org/277273
  1. In the meantime, this is what I do to get the driver working:
  2. 1.  Get the debian package from
  3. [url]http://launchpadlibrarian.net/24820246/xorg-driver-sis671_0.9.tar.gz[/url]
  4. 2. Extract the files from the debian package in the current directory
  5. dpkg -x xorg-driver-sis671_0.9_i386.deb .
  6. 3. Copy sis671_drv.so into /usr/lib/xorg/modules/drivers/
  7. 4. Add the following options in xorg.conf
  8. Section "ServerFlag"
  9.         Option "IgnoreABI" "True"
  10. EndSection
  11. Section "Device"
  12.         Driver          "sis671"
  13. EndSection
复制代码
回复 支持 反对

使用道具 举报

发表于 2010-1-2 11:47:16 | 显示全部楼层
Post by yyh3345;2061280
那还问个小问题,也就是说下载后文件应该放在哪才行呢?


I mean you should put that file in a directory, that will be searched by gcc, but the exact location depends on your source code.

You can try, just put that file in your driver source directory, if you change include<> to include "".
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-2 14:14:26 | 显示全部楼层
现有了那个文件提示的错误又不一样了!
network src # make
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1     -I/usr/include/drm -I/usr/include/X11/dri   -g -O2 -MT init301.lo -MD -MP -MF .deps/init301.Tpo -c -o init301.lo init301.c
../libtool: line 463: CDPATH: command not found
../libtool: line 1141: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2.6b, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b
libtool: and run autoconf again.
make: *** [init301.lo] 错误 63

现在要怎么做?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-2 14:40:36 | 显示全部楼层
Post by zhou3345;2061281
楼主的驱动来源于官方论坛:http://forums.gentoo.org/viewtopic-t-807395-highlight-sis.html
那里的有人编译成功了,可以去那边问一下的。

里面的方法好像是说671/672的,但是我这里试了,不知道是编译的问题还是咋的,最后还是用不了,!
二楼说的不错,可以试试用二进制驱动直接替换,bugzilla里有人这么用:
http://bugs.gentoo.org/277273
  1. In the meantime, this is what I do to get the driver working:

  2. 1.  Get the debian package from
  3. [url]http://launchpadlibrarian.net/24820246/xorg-driver-sis671_0.9.tar.gz[/url]

  4. 2. Extract the files from the debian package in the current directory
  5. dpkg -x xorg-driver-sis671_0.9_i386.deb .

  6. 3. Copy sis671_drv.so into /usr/lib/xorg/modules/drivers/

  7. 4. Add the following options in xorg.conf

  8. Section "ServerFlag"
  9.         Option "IgnoreABI" "True"
  10. EndSection
  11. Section "Device"
  12.         Driver          "sis671"
  13. EndSection
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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