ubuntu下如何安装svgalib图形库阿?

hit9 发布于 2012/02/16 02:23
阅读 996
收藏 0
一直报错:root@ubuntu:/home/hit9/svgalib-1.9.25# make install
Installing header files in /usr/local/include.
(cd sharedlib/; \
make -f /home/hit9/svgalib-1.9.25/src/Makefile libvga.so.1.9.25 \
SRCDIR="/home/hit9/svgalib-1.9.25" DLLFLAGS="-fPIC -DPIC"; \
ln -fs libvga.so.1.9.25 libvga.so; \
)
make[1]: 正在进入目录 `/home/hit9/svgalib-1.9.25/sharedlib'
cc -Wall -Wstrict-prototypes  -DPIC -I../include -I. -I../src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -DSVGALIB_CONFIG_FILE=\"/etc/vga/libvga.config\" -DALLOW_MOUSE_OVERRIDE -DNO_DELAY -DLIBC_MEMCPY -c -o lrmi.o ../src/lrmi.c
In file included from ../src/lrmi.c:4:0:
../src/lrmi.6.c: In function ‘set_regs’:
../src/lrmi.6.c:300:27: error: ‘IF_MASK’ undeclared (first use in this function)
../src/lrmi.6.c:300:27: note: each undeclared identifier is reported only once for each function it appears in
../src/lrmi.6.c:300:27: error: ‘IOPL_MASK’ undeclared (first use in this function)
../src/lrmi.6.c: In function ‘run_vm86’:
../src/lrmi.6.c:778:31: error: ‘VIP_MASK’ undeclared (first use in this function)
../src/lrmi.6.c:795:32: error: ‘VIF_MASK’ undeclared (first use in this function)
../src/lrmi.6.c:795:43: error: ‘TF_MASK’ undeclared (first use in this function)
../src/lrmi.6.c: In function ‘LRMI_int’:
../src/lrmi.6.c:880:8: error: ‘IF_MASK’ undeclared (first use in this function)
../src/lrmi.6.c:880:8: error: ‘IOPL_MASK’ undeclared (first use in this function)
make[1]: *** [lrmi.o] 错误 1
make[1]:正在离开目录 `/home/hit9/svgalib-1.9.25/sharedlib'
(cd sharedlib/; \
make -f /home/hit9/svgalib-1.9.25/gl/Makefile libvgagl.so.1.9.25 \
SRCDIR="/home/hit9/svgalib-1.9.25" DLLFLAGS="-fPIC -DPIC"; \
ln -fs libvgagl.so.1.9.25 libvgagl.so; \
)
make[1]: 正在进入目录 `/home/hit9/svgalib-1.9.25/sharedlib'
make[1]: “libvgagl.so.1.9.25”是最新的。
make[1]:正在离开目录 `/home/hit9/svgalib-1.9.25/sharedlib'
Installing shared library image as /usr/local/lib/libvga.so.1.9.25 /usr/local/lib/libvgagl.so.1.9.25.
install: 无法获取"sharedlib/libvga.so.1.9.25" 的文件状态(stat): 没有那个文件或目录
ldconfig
/sbin/ldconfig.real: /usr/lib/libgraph.so.1 不是符号连接

mkdir -p /etc/vga;
Installing default keymap file in /etc/vga.
(cd utils; \
make -f /home/hit9/svgalib-1.9.25/utils/Makefile SRCDIR="/home/hit9/svgalib-1.9.25")
make[1]: 正在进入目录 `/home/hit9/svgalib-1.9.25/utils'
cc -Wall -Wstrict-prototypes -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -I../include -L../sharedlib -s -o restorefont restorefont.o -lvga -lm
/usr/lib/libvga.a(vesa.o): In function `vesa_linear':
(.text+0xc0): undefined reference to `LRMI_int'
/usr/lib/libvga.a(vesa.o): In function `vesa_linear':
(.text+0x10b): undefined reference to `LRMI_int'
/usr/lib/libvga.a(vesa.o): In function `vesa_setlogicalwidth':
(.text+0x17c): undefined reference to `LRMI_int'
/usr/lib/libvga.a(vesa.o): In function `vesa_setdisplaystart':
(.text+0x1f2): undefined reference to `LRMI_int'
/usr/lib/libvga.a(vesa.o): In function `vesa_setwrpage':
(.text+0x251): undefined reference to `LRMI_int'
/usr/lib/libvga.a(vesa.o):(.text+0x2b1): more undefined references to `LRMI_int' follow
/usr/lib/libvga.a(vesa.o): In function `vesa_init':
(.text+0xccf): undefined reference to `LRMI_alloc_real'
/usr/lib/libvga.a(vesa.o): In function `vesa_init':
(.text+0xd94): undefined reference to `LRMI_init'
/usr/lib/libvga.a(vesa.o): In function `vesa_init':
(.text+0xda0): undefined reference to `LRMI_alloc_real'
/usr/lib/libvga.a(vesa.o): In function `vesa_test':
(.text+0x1003): undefined reference to `LRMI_init'
/usr/lib/libvga.a(vesa.o): In function `vesa_test':
(.text+0x100f): undefined reference to `LRMI_alloc_real'
/usr/lib/libvga.a(vesa.o): In function `vesa_test':
(.text+0x1055): undefined reference to `LRMI_int'
collect2: ld returned 1 exit status
make[1]: *** [restorefont] 错误 1
make[1]:正在离开目录 `/home/hit9/svgalib-1.9.25/utils'
make: *** [textutils] 错误 2

加载中
返回顶部
顶部