[완료]qeum 설치 관련 질문입니다.
글쓴이: neuk / 작성시간: 금, 2010/07/30 - 5:48오후
안녕하세요! 날씨가.. 여전히 덥군요.
다들 시원하고 지내고 계신지요 !
이만우님이 지으신 '도전! 임베디드 OS 만들기' 란 책을 보면서 나빌눅스를 만들어 보려고 합니다.
여기서 에뮬레이터 환경 구성할 때 막히는데요,
지금 사용하고 있는 건,
VMware를 이용하여 centOS 5.5 입니다.
일단 gcc는 3.3.2 버전으로 설치했고,
arm-linux-gcc-3.3.2 도 설치하였습니다.
이제 문제는 qemu 인데요,
설치 도중에 다음과 같은 메시지가 떴습니다.
[admin@localhost qemu-0.9.1]$ ./configure Install prefix /usr/local BIOS directory /usr/local/share/qemu binary directory /usr/local/bin Manual directory /usr/local/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /home/admin/qemu/qemu-0.9.1 C compiler gcc Host C compiler gcc make make install install host CPU i386 host big endian no target list i386-linux-user arm-linux-user armeb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user mips-linux-user mipsel-linux-user m68k-linux-user alpha-linux-user sh4-linux-user sh4eb-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user x86_64-linux-user cris-linux-user i386-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu arm-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu m68k-softmmu sh4-softmmu sh4eb-softmmu cris-softmmu gprof enabled no profiler no static build no -Werror enabled no SDL support no mingw32 support no Adlib support no CoreAudio support no ALSA support no DSound support no FMOD support no OSS support yes VNC TLS support no kqemu support yes Documentation no The error log from compiling the libSDL test is: /tmp/qemu-conf-21743-10336-27477.c:1:17: SDL.h: No such file or directory /tmp/qemu-conf-21743-10336-27477.c: In function `main': /tmp/qemu-conf-21743-10336-27477.c:3: error: `SDL_INIT_VIDEO' undeclared (first use in this function) /tmp/qemu-conf-21743-10336-27477.c:3: error: (Each undeclared identifier is reported only once /tmp/qemu-conf-21743-10336-27477.c:3: error: for each function it appears in.) ERROR: QEMU requires SDL or Cocoa for graphical output To build QEMU without graphical output configure with --disable-gfx-check Note that this will disable all output from the virtual graphics card. [admin@localhost qemu-0.9.1]$
마지막에 에러라고 대문자로 써있는 것을 보니, SDL devel package를 설치하라는 말인듯 싶어서,
$ yum search SDL
이렇게 명령어를 입력하여 SDL-devel.i386 을 발견하고
# yum install SDL-devel ...(중간생략)... Installed: SDL-devel.i386 0:1.2.10-8.el5 Dependency Installed: alsa-lib-devel.i386 0:1.0.17-1.el5 libICE-devel.i386 0:1.0.1-2.1 libSM-devel.i386 0:1.0.1-3.1 libX11-devel.i386 0:1.0.3-11.el5 libXau-devel.i386 0:1.0.1-3.1 libXdmcp-devel.i386 0:1.0.1-2.1 libXext-devel.i386 0:1.0.1-2.1 libXrandr-devel.i386 0:1.1.1-3.3 libXrender-devel.i386 0:0.9.1-3.1 libXt-devel.i386 0:1.0.2-3.2.el5 mesa-libGL-devel.i386 0:6.5.1-7.8.el5 mesa-libGLU-devel.i386 0:6.5.1-7.8.el5 xorg-x11-proto-devel.i386 0:7.1-13.el5 Complete! [root@localhost qemu-0.9.1]#
이렇게 까지 왔습니다. 그리고 다시 qemu를 설치하기 위해서 ./configure를 입력하였는데 이번에는
[root@localhost qemu-0.9.1]# ./configure Install prefix /usr/local BIOS directory /usr/local/share/qemu binary directory /usr/local/bin Manual directory /usr/local/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /home/admin/qemu/qemu-0.9.1 C compiler gcc Host C compiler gcc make make install install host CPU i386 host big endian no target list i386-linux-user arm-linux-user armeb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user mips-linux-user mipsel-linux-user m68k-linux-user alpha-linux-user sh4-linux-user sh4eb-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user x86_64-linux-user cris-linux-user i386-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu arm-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu m68k-softmmu sh4-softmmu sh4eb-softmmu cris-softmmu gprof enabled no profiler no static build no -Werror enabled no SDL support yes SDL static link yes mingw32 support no Adlib support no CoreAudio support no ALSA support no DSound support no FMOD support no OSS support yes VNC TLS support no kqemu support yes Documentation no [root@localhost qemu-0.9.1]#
이렇게만 뜨고 마는군요.. 혹시 된건가 싶어서 make를 쳤습니다. 그러자..
[root@localhost qemu-0.9.1]# make gcc -Wall -O2 -g -fno-strict-aliasing -I. -I/home/admin/qemu/qemu-0.9.1 -MMD -MP -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/admin/qemu/qemu-0.9.1/slirp -c -o block-qcow.o block-qcow.c block-qcow.c:26:18: warning: zlib.h: No such file or directory block-qcow.c: In function `decompress_buffer': block-qcow.c:400: error: `z_stream' undeclared (first use in this function) block-qcow.c:400: error: (Each undeclared identifier is reported only once block-qcow.c:400: error: for each function it appears in.) block-qcow.c:400: error: syntax error before "strm1" block-qcow.c:403: error: `strm' undeclared (first use in this function) block-qcow.c:410: warning: implicit declaration of function `inflateInit2' block-qcow.c:411: error: `Z_OK' undeclared (first use in this function) block-qcow.c:413: warning: implicit declaration of function `inflate' block-qcow.c:413: error: `Z_FINISH' undeclared (first use in this function) block-qcow.c:415: error: `Z_STREAM_END' undeclared (first use in this function) block-qcow.c:415: error: `Z_BUF_ERROR' undeclared (first use in this function) block-qcow.c:417: warning: implicit declaration of function `inflateEnd' block-qcow.c: In function `qcow_write_compressed': block-qcow.c:818: error: `z_stream' undeclared (first use in this function) block-qcow.c:818: error: syntax error before "strm" block-qcow.c:831: error: `strm' undeclared (first use in this function) block-qcow.c:832: warning: implicit declaration of function `deflateInit2' block-qcow.c:832: error: `Z_DEFAULT_COMPRESSION' undeclared (first use in this function) block-qcow.c:833: error: `Z_DEFLATED' undeclared (first use in this function) block-qcow.c:834: error: `Z_DEFAULT_STRATEGY' undeclared (first use in this function) block-qcow.c:845: warning: implicit declaration of function `deflate' block-qcow.c:845: error: `Z_FINISH' undeclared (first use in this function) block-qcow.c:846: error: `Z_STREAM_END' undeclared (first use in this function) block-qcow.c:846: error: `Z_OK' undeclared (first use in this function) block-qcow.c:848: warning: implicit declaration of function `deflateEnd' make: *** [block-qcow.o] Error 1 [root@localhost qemu-0.9.1]#
이렇게 되고 진행이 안되고 있습니다.
음, 여기서 도대체 무엇이 문제일까요?
Forums:
zlib-devel깔아보세여
yum install zlib-devel
즐린
즐린
감사합니다 :)
감사합니다. 에러에 대한 이유는 그 줄에 잘 나와있었네요.
덕분에 설치 잘 했습니다 :)
댓글 달기