LinuxSir.cn,穿越时空的Linuxsir!

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

被我搞得有点乱.(用非正规方法解决了xserver版本低的问题。)

[复制链接]
发表于 2009-1-14 08:50:52 | 显示全部楼层 |阅读模式
前面说道已完成lfs6.3+xorg7.2+gnome2.18.3,装上xf86-video-intel驱动后X启动不了,driver "i810"上不了1440x900分辨率,试过网上很多方法,915rosolution什么的(好象是这个词,记不住)gtf生成加入xorg.conf什么的都没有作用。另外有高人我这个82845G集成显卡说不用intel驱动,用dri+内核+Mesa等可以驱动,我也不懂,就没试。
所以我想安装xorg7.4应该没问题了吧?7。2也没删除,按照blfs svn手册碰上高版本就安装,相同的版本就不装,安装目录也一样设为/usr,我想安装时相同名称文件应该会覆盖吧。一路安装都没有出现问题。最后装xorg-serever-1.5.3时./configure那行通过,make出错,好象是10来个错误。
我想这样安装软件肯定有问题出现,现在问题是如何清理已安装的xorg?另外还安装了intel官方网站的一些不同版本的驱动,还有Mesa,xorg中也有Mesa7.2,也安装了,总之有点乱。
 楼主| 发表于 2009-1-14 22:15:17 | 显示全部楼层

编译xorg-server-1.5.3时的错误,是少了头文件吧?

gcc -DHAVE_CONFIG_H -I. -I../include -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb "-DVENDOR_NAME=\"The X.Org Foundation\"" "-DVENDOR_RELEASE=(((1) * 10000000) + ((5) * 100000) + ((3) * 1000) + 0)" -g -O2 -MT devices.lo -MD -MP -MF .deps/devices.Tpo -c devices.c  -fPIC -DPIC -o .libs/devices.o
devices.c: In function 'EnableDevice':
devices.c:190: error: 'devicePresenceNotify' undeclared (first use in this function)
devices.c:190: error: (Each undeclared identifier is reported only once
devices.c:190: error: for each function it appears in.)
devices.c:190: error: expected ';' before 'ev'
devices.c:209: error: 'ev' undeclared (first use in this function)
devices.c:211: error: 'DeviceEnabled' undeclared (first use in this function)
devices.c: In function 'DisableDevice':
devices.c:232: error: 'devicePresenceNotify' undeclared (first use in this function)
devices.c:232: error: expected ';' before 'ev'
devices.c:246: error: 'ev' undeclared (first use in this function)
devices.c:248: error: 'DeviceDisabled' undeclared (first use in this function)
devices.c: In function 'ActivateDevice':
devices.c:269: error: 'devicePresenceNotify' undeclared (first use in this function)
devices.c:269: error: expected ';' before 'ev'
devices.c:278: error: 'ev' undeclared (first use in this function)
devices.c:280: error: 'DeviceAdded' undeclared (first use in this function)
devices.c: In function 'RemoveDevice':
devices.c:645: error: 'devicePresenceNotify' undeclared (first use in this function)
devices.c:645: error: expected ';' before 'ev'
devices.c:689: error: 'ev' undeclared (first use in this function)
devices.c:691: error: 'DeviceRemoved' undeclared (first use in this function)
make[2]: *** [devices.lo] 错误 1
make[2]: Leaving directory `/home/xc/xorg-server-1.5.3/dix'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/home/xc/xorg-server-1.5.3/dix'
make: *** [all-recursive] 错误 1
查看config.log发现:
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory

conftest.c:64:24: error: sys/endian.h: No such file or directory
conftest.c:31:24: error: sys/endian.h: No such file or directory
conftest.c:87:18: error: ndbm.h: No such file or directory
conftest.c:87:17: error: dbm.h: No such file or directory
conftest.c:87:24: error: rpcsvc/dbm.h: No such file or directory
conftest.c:88:23: error: sys/agpio.h: No such file or directory
conftest.c:91:26: error: sys/memrange.h: No such file or directory
conftest.c:92:26: error: machine/mtrr.h: No such file or directory
conftest.c:61:24: error: sys/linker.h: No such file or directory
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "xorg-server"
| #define PACKAGE_TARNAME "xorg-server"
| #define PACKAGE_VERSION "1.5.3"
| #define PACKAGE_STRING "xorg-server 1.5.3"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
| #define PACKAGE "xorg-server"
| #define VERSION "1.5.3"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
少了这么多头文件,是哪个包没装啊?记得依赖的包都装了啊。
find / -name ac_nonexistent.h 在本机没有查到记录。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-16 21:06:54 | 显示全部楼层

用了一个非正规的方法解决了xserver版本过低的问题

去到gentoo下equery f xorg-server > xserverfile1.3把gentoo下xorg-server-1.3的所有文件列到xserverfile1.3 然后拷到lfs6.3相应的目录。终于成功加载了xf86-video-intel-2.3.0的驱动。可以上到1440x900了,字体用了文泉,清晣多了。
本想在gentoo下编译xorg-server的,然后到lfs6.3下再来make install的。谁知竞然说缺少依赖什么的。原来已经装了xorg-server-1.3 ,原来怎么装上去的?无奈只好emerge xorg-server 又重新装了一次,装了有7个包,后来想找到源程序后在lfs6.3执行make install的,结果总找不到源码,难道emerge 过后会自动删除源码吗?不管怎样,总算解决了一个问题。lfs 真的比较难,如果是使用的话,恐怕还是gentoo好用些。
回复 支持 反对

使用道具 举报

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

本版积分规则

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