Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1527577
  • 博文数量: 290
  • 博客积分: 3468
  • 博客等级: 中校
  • 技术积分: 3461
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-28 22:21
文章分类

全部博文(290)

文章存档

2016年(13)

2015年(3)

2014年(42)

2013年(67)

2012年(90)

2011年(75)

分类: LINUX

2011-03-03 23:25:38

编译环境:loongson 2F + gcc-4.2.3 + kernel-2.6.27.6
xorg版本:1.4

下载地址/

安装软件包 util-macros-1.11.0.tar.gz

  安装方法

$ tar xf util-macros-1.11.0

$ cd util-macros-1.11.0

$ ./autogen.sh

$ ./configure

$ make && make install

  安装完成之后 设置环境变量

$ export  ACLOCAL="aclocal -I/usr/local/share/aclocal"

安装xorg-server-1.4.0

$ export C_INCLUDE_PATH=/usr/include:/usr/local/include

$ ./configure --enable-dri --disable-dmx --disable-xnest --disable-xvfb --disable-xwin  prefix=/xorg --enable-install-libxf86config --enable-fontcache  --enable-xorg  --disable-xephyr --enable-kbd_mode --enable-kdrive --enable-xfbdev   --with-xkb-output=/var/xkb --with-log-dir=/var/log

make && make install

安装所需要的驱动

安装方法:

$ ./autogen.sh

$ ./configure --prefix=/xorg

$ make

$ make install

xf86-video-fbdev-0.4.2.tar.gz 

./configure: line 11644: syntax error near unexpected token `RANDR,'

./configure: line 11644: `XORG_DRIVER_CHECK_EXT(RANDR, randrproto)'

解决方法:注释掉check

2 xf86-input-keyboard-1.40.tar.gz.gz

 

安装所需的字体

安装方法:

$ ./autogen.sh

$ ./configure --prefix=/xorg

$ make

$ make install

 

注意事项:

编译过程出错解决方法参见文档“编译过程遇到的错误”部分

如果configure报错,缺少依赖库,或者版本不匹配

根据报错信息 安装需要依赖的库(以下是编译需要的所有依赖库,根据需要安装缺少的库)

所有的头文件包

 

bigreqsproto-1.0.2.tar.gz 

 

  

 

 

 

10    

11  

12  

13  

14  

15  

16  

17  

18  

19  

20  

21  

22  

23     

24  

25   

26 xextproto-7.1.1.tar.gz

26  

27  

28  

29  

30  

31  

32  

所有的依赖库

 

 

  

 

 

  

 

 

 

10  

11  

12  

13  

14 libfontenc_1.0.4.orig.tar.gz.gz 

注意复制/usr/local/include/zlib.h zconf.h src目录

15  

16   

17  

18  

19  

20  

21   

22  

23  

24 libXcursor-1.1.8.tar.gz  

25   

26   

27  

28   

29  

30  

31    

32  

33  

34  

35  

36  

37  

38  

编译过程遇到的错误

1 configure.ac:1965: error: AC_SUBST: `libdir exec_prefix prefix' is not a valid shell    variable name

解决方法:  #AC_SUBST([libdir exec_prefix prefix]) 注释掉这行 ,增加以下三行

     AC_SUBST([libdir])

     AC_SUBST([exec_prefix])

     AC_SUBST([prefix])

2 configure.ac:58: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL

      If this token and others are legitimate, please use m4_pattern_allow.

      See the Autoconf documentation.

configure.ac:59: error: possibly undefined macro: AC_DISABLE_STATIC

configure.ac:60: error: possibly undefined macro: AC_PROG_LIBTOOL

autoreconf: /usr/bin/autoconf failed with exit status: 1

解决方法:安装高版本libotool 2.4

./configure --prefix=/usr

make && make install

3 setjmp 未声明

解决方法:注释掉错误所在文件的 出错行

缺少tslib.h 引起的错

解决方法:

注释掉 hw/kdrive/linux/Makefile 里所有的tslib项 

阅读(4117) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~