Qemu problem

Kami Član Ubuntu.si
Zaj sem si hotel namestiti program Qmu po članku ki je v Wikiju ampak, naletim na težavo.

Do make, gre vse ok, ko pa napišem pa dobim te errorje:
gcc -DQEMU_TOOL -Wall -O2 -g -fno-strict-aliasing -g -D_GNU_SOURCE -D_FILE_OFFS ET_BITS=64 -D_LARGEFILE_SOURCE -o qemu-img qemu-img.c block.c block-cow.c block- qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c bl ock-vvfat.c -lz
block-qcow.c:26:18: zlib.h: No such file or directory
block-qcow.c: In function `decompress_buffer':
block-qcow.c:408: error: `z_stream' undeclared (first use in this function)
block-qcow.c:408: error: (Each undeclared identifier is reported only once
block-qcow.c:408: error: for each function it appears in.)
block-qcow.c:408: error: syntax error before "strm1"
block-qcow.c:411: error: `strm' undeclared (first use in this function)
block-qcow.c:418: warning: implicit declaration of function `inflateInit2'
block-qcow.c:419: error: `Z_OK' undeclared (first use in this function)
block-qcow.c:421: warning: implicit declaration of function `inflate'
block-qcow.c:421: error: `Z_FINISH' undeclared (first use in this function)
block-qcow.c:423: error: `Z_STREAM_END' undeclared (first use in this function)
block-qcow.c:423: error: `Z_BUF_ERROR' undeclared (first use in this function)
block-qcow.c:425: warning: implicit declaration of function `inflateEnd'
block-qcow.c: In function `qcow_compress_cluster':
block-qcow.c:620: error: `z_stream' undeclared (first use in this function)
block-qcow.c:620: error: syntax error before "strm"
block-qcow.c:633: error: `strm' undeclared (first use in this function)
block-qcow.c:634: warning: implicit declaration of function `deflateInit2'
block-qcow.c:634: error: `Z_DEFAULT_COMPRESSION' undeclared (first use in this f unction)
block-qcow.c:635: error: `Z_DEFLATED' undeclared (first use in this function)
block-qcow.c:636: error: `Z_DEFAULT_STRATEGY' undeclared (first use in this func tion)
block-qcow.c:647: warning: implicit declaration of function `deflate'
block-qcow.c:647: error: `Z_FINISH' undeclared (first use in this function)
block-qcow.c:648: error: `Z_STREAM_END' undeclared (first use in this function)
block-qcow.c:648: error: `Z_OK' undeclared (first use in this function)
block-qcow.c:650: warning: implicit declaration of function `deflateEnd'
block-cloop.c:26:18: zlib.h: No such file or directory
block-cloop.c:37: error: syntax error before "z_stream"
block-cloop.c:37: warning: no semicolon at end of struct or union
block-cloop.c:38: warning: type defaults to `int' in declaration of `BDRVCloopState'
block-cloop.c:38: warning: data definition has no type or storage class
block-cloop.c: In function `cloop_open':
block-cloop.c:55: error: `s' undeclared (first use in this function)
block-cloop.c:55: error: (Each undeclared identifier is reported only once
block-cloop.c:55: error: for each function it appears in.)
block-cloop.c:96: warning: implicit declaration of function `inflateInit'
block-cloop.c:96: error: `Z_OK' undeclared (first use in this function)
block-cloop.c: At top level:
block-cloop.c:105: error: syntax error before '*' token
block-cloop.c: In function `cloop_read_block':
block-cloop.c:107: error: `s' undeclared (first use in this function)
block-cloop.c:107: error: `block_num' undeclared (first use in this function)
block-cloop.c:120: warning: implicit declaration of function `inflateReset'
block-cloop.c:121: error: `Z_OK' undeclared (first use in this function)
block-cloop.c:123: warning: implicit declaration of function `inflate'
block-cloop.c:123: error: `Z_FINISH' undeclared (first use in this function)
block-cloop.c:124: error: `Z_STREAM_END' undeclared (first use in this function)
block-cloop.c: In function `cloop_read':
block-cloop.c:135: error: `s' undeclared (first use in this function)
block-cloop.c: In function `cloop_close':
block-cloop.c:150: error: `s' undeclared (first use in this function)
block-cloop.c:156: warning: implicit declaration of function `inflateEnd'
block-dmg.c:27:18: zlib.h: No such file or directory
block-dmg.c:49: error: syntax error before "z_stream"
block-dmg.c:49: warning: no semicolon at end of struct or union
block-dmg.c:50: warning: type defaults to `int' in declaration of `BDRVDMGState'
block-dmg.c:50: warning: data definition has no type or storage class
block-dmg.c: In function `dmg_open':
block-dmg.c:78: error: `s' undeclared (first use in this function)
block-dmg.c:78: error: (Each undeclared identifier is reported only once
block-dmg.c:78: error: for each function it appears in.)
block-dmg.c:166: warning: implicit declaration of function `inflateInit'
block-dmg.c:166: error: `Z_OK' undeclared (first use in this function)
block-dmg.c: At top level:
block-dmg.c:174: error: syntax error before '*' token
block-dmg.c: In function `is_sector_in_chunk':
block-dmg.c:177: error: `chunk_num' undeclared (first use in this function)
block-dmg.c:177: error: `s' undeclared (first use in this function)
block-dmg.c:177: error: `sector_num' undeclared (first use in this function)
block-dmg.c: At top level:
block-dmg.c:184: error: syntax error before '*' token
block-dmg.c: In function `search_chunk':
block-dmg.c:187: error: `s' undeclared (first use in this function)
block-dmg.c:190: error: `sector_num' undeclared (first use in this function)
block-dmg.c: At top level:
block-dmg.c:200: error: syntax error before '*' token
block-dmg.c: In function `dmg_read_chunk':
block-dmg.c:202: error: `s' undeclared (first use in this function)
block-dmg.c:202: error: `sector_num' undeclared (first use in this function)
block-dmg.c:235: warning: implicit declaration of function `inflateReset'
block-dmg.c:236: error: `Z_OK' undeclared (first use in this function)
block-dmg.c:238: warning: implicit declaration of function `inflate'
block-dmg.c:238: error: `Z_FINISH' undeclared (first use in this function)
block-dmg.c:239: error: `Z_STREAM_END' undeclared (first use in this function)
block-dmg.c: In function `dmg_read':
block-dmg.c:259: error: `s' undeclared (first use in this function)
block-dmg.c: In function `dmg_close':
block-dmg.c:274: error: `s' undeclared (first use in this function)
block-dmg.c:285: warning: implicit declaration of function `inflateEnd'
make: *** [qemu-img] Error 1
Domnevam, da je problem nekaj z kompajlerjem.

Uporabljam pa Ubuntu 5.04

Hvala

Komentarji

  • Za Ubuntu 5.04 NE SMEŠ spreminjati simbolic linka od gcc-ja.
    Problem bi znal biti tudi če si že imel qemu nameščen preko apt-get (brez pospeševalnika).
  • Aja, pa preveri, da imaš pravi kernel in prave kernel headers. No, sporoči kaj si ugotovil....
  • Kami Član Ubuntu.si
    Am, nisem spreminjal simoblic linka, pa tudi kenerl in kernel headerji so pravi.

    Drugače verzija GCC-ja je gcc 3.3.5, probal sem tudi z nekaj drugimi (3.3, 3.4 in 4.0) pa je vrglo enak error.

    Pa tudi qemu nisem imel prej še inštaliran.
  • ja jaz sem spravil gor xp sam pol pa kao nek disk error a ve kdo to odpraviti
  • Kami Član Ubuntu.si
    Tudi meni ne, uporabi savevm (poglej članek kak se uporablja) in potem zaganjaj z -loadvm parametrom.
  • ja kako se uporablja sj sam tisto komandO?? a ni tako?
  • Kami Član Ubuntu.si
    Poglej članek, piše primer kak se uporabi
  • qemu -user-net -m 256 /home/matej/qemu/images/win2k.img -loadvm /home/matej/qemu/virtual_machines/win2k.vm

    a mislis tole??
  • Kami Član Ubuntu.si
    To je za nalaganje, jao, lepo počasi preberi pa boš videl kaj moreš naredit da shraniš trenutno snapshot, kasneje pa ga lowdaš :)
  • no sam povej a tebi dela al ne da vm
  • a mislis slucano tole?

    vtipkamo ‚Äúsavevm /home/matej/qemu/virtual_machines/win2k.vm‚Ä?, se bo znotraj podimenika virtual_machines (podimenik moramo prej seveda še ustvariti!), shranila datoteka win2k.vm. S tem smo shranili ‚Äústanje‚Ä? virtualnega računalnika (tim. snapshot)
  • ej povej mi a ti je dolgo delalo ko si mel xp gor. Tisti prvi zagon ko psie please waiting ... jaz sem cakal enen 15 minut pa nic??
  • Kami Član Ubuntu.si
    Meni je delalo samo traja nekaj časa
  • kolko casa je trajal tisti prvi zagon tak priblizno:D tnx
  • Kami Član Ubuntu.si
    Par minut
  • Na novi mašini, 1 Gb RAMa traja prvi zagov Xpjev... kaj pa vem, lahko tudi pol ure.

    Lahko pa poiskusiš ugotoviti katere parametre je treba uporabiti pri konfiguraciji. Potegni si dol apt source:

    apt-get source qemu

    Potem pojdi v direktorij /debian in odpri datoteko rules. Poglej spremenljivko DEB_CONFIGURE_NORMAL_ARGS:

    DEB_CONFIGURE_NORMAL_ARGS := --prefix=$(DEB_CONFIGURE_PREFIX) --enable-slirp \
    --cc=gcc-3.4

    Tukaj vidiš potrebne parametre za configure, npr.: "--enable-slirp \ --cc=gcc-3.4".

    Potem poiskušaj zadevo zagnati s temi parametri.
    Č ene bo delalo, pa je po moje problem v gccju. Kaj pa vem, apt-get install --reinstall build-essential?
  • Kami Član Ubuntu.si
    Sem pogledal pa sem probal z tistim kompajlerjem ko piše pa tistimi parametri, pa sem dobil enak error.

    Sicer nisem še reinstallal paketa build-essential ampak sem probal kr brez kqemu (accelatorja) in ni slabo glede na to, da je freeware ampak mi je windows inštaliralo like 5 ur (tudi če je iz diska - iso bralo).

    Drugače potem v celo zaslonskem načinu ne deluje tako slabo ampak mi je vseeno vmware malo bolši.

    Sicer pa sem to šel bol iz radovednosti delat, ker ne rabim windowsa, no če ga bom pa bom uporabo kr qemu brez accelatorja, če nebo šlo ištalirat z njim.

    Hvala vseeno
  • Kami Član Ubuntu.si
    No samo tolko da še to povem.

    Pri 5.10 dobim enaki error, pa uporabljam tisti kompajler ko treba :)
Za komentiranje se prijavite ali pa se vpišite.