在线求助!zhcon编译错误!!!!
在线求助!zhcon编译错误!!!!我编译zhcon出现的问题
有哪位大侠能指出哪不对为什么编译不成?
我的机器能支持framebuffer吗?
root@darkstar:~/zhcon-0.2.3#./configure
...................
....................
config.status: creating intl/Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating doc/zhcon.1
config.status: creating debian/Makefile
config.status: creating tools/Makefile
config.status: creating font/Makefile
config.status: creating input/Makefile
config.status: creating src/Makefile
config.status: creating src/display/Makefile
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
Configuration:
Target system: i486-pc-linux-gnu
Source code location: .
C++ Compiler: g++
C++ Compiler flags: -funsigned-char -march=i486 -DNDEBUG -Wall
C Compiler: gcc
C Compiler flags: -funsigned-char -march=i486 -DNDEBUG -Wall
VGA support: yes
gpm moues support: no
libggi support: no
unicon support: no
zhcon binary dir: /usr/local/bin
zhcon files dir: /usr/local/lib/zhcon
Config complete, now type make to build zhcon.
Good Luck!
root@darkstar:~/zhcon-0.2.3#
root@darkstar:~/zhcon-0.2.3#make
..........
................
.......................
/bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
config.status: executing default-2 commands
makeall-recursive
make: Entering directory `/root/zhcon-0.2.3'
Making all in src
make: Entering directory `/root/zhcon-0.2.3/src'
Making all in display
make: Entering directory `/root/zhcon-0.2.3/src/display'
source='fbdev.cpp' object='fbdev.o' libtool=no \
depfile='.deps/fbdev.Po' tmpdepfile='.deps/fbdev.TPo' \
depmode=gcc /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -funsigned-char -march=i486 -DNDEBUG -Wall -c -o fbdev.o `test -f fbdev.cpp || echo './'`fbdev.cpp
In file included from /usr/include/sys/ioctl.h:27,
from fbdev.cpp:26:
.................................
....错误!!!!!!!!!!!!!!!!!!!!!!!..
.................................
/usr/include/bits/ioctls.h:24: asm/ioctls.h: No such file or directory
In file included from /usr/include/sys/ioctl.h:30,
from fbdev.cpp:26:
/usr/include/bits/ioctl-types.h:25: asm/ioctls.h: No such file or directory
In file included from fbdev.h:24,
from fbdev.cpp:30:
../../src/graphdev.h:23: asm/types.h: No such file or directory
fbdev.cpp:64: linux/fb.h: No such file or directory
make: *** Error 1
make: Leaving directory `/root/zhcon-0.2.3/src/display'
make: *** Error 1
make: Leaving directory `/root/zhcon-0.2.3/src'
make: *** Error 1
make: Leaving directory `/root/zhcon-0.2.3'
make: *** Error 2
root@darkstar:~/zhcon-0.2.3#
下面是我第一次编译时的问题:
In function `void outw(short unsigned int, short unsigned int)':
bash: syntax error near unexpected token `outw(s'
root@darkstar:~/zhcon-0.2.3# /usr/include/sys/io.h:111: parse error before `::'
> /usr/include/sys/io.h: In function `void outw_p(short unsigned int, short unsigned int)':
bash: syntax error near unexpected token `outw_p(s'
root@darkstar:~/zhcon-0.2.3# /usr/include/sys/io.h:118: parse error before `::'
> /usr/include/sys/io.h: In function `void outl(unsigned int, short unsigned int)':
bash: syntax error near unexpected token `outl(u'
root@darkstar:~/zhcon-0.2.3# /usr/include/sys/io.h:125: parse error before `::'
> /usr/include/sys/io.h: In function `void outl_p(unsigned int, short unsigned int)':
bash: syntax error near unexpected token `outl_p(u'
root@darkstar:~/zhcon-0.2.3# /usr/include/sys/io.h:131: parse error before `::'
> make: *** Error 1
> make: Leaving directory `/root/zhcon-0.2.3/src/display'
> make: *** Error 1
> make: Leaving directory `/root/zhcon-0.2.3/src'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 4: syntax error: unexpected end of file
bash: /usr/include/sys/io.h:131:: No such file or directory
root@darkstar:~/zhcon-0.2.3# make: *** Error 1
bash: make:: command not found
root@darkstar:~/zhcon-0.2.3# make: Leaving directory `/root/zhcon-0.2.3'
> make: *** Error 2
> root@darkstar:~/zhcon-0.2.3# 安装 kernel-source 了没?
页:
[1]