Next: , Up: compilation


6.1 Linux/Unix

6.1.1 Compilation

First you must decompress the sources:

cd /tmp
tar zxvf qemu-x.y.z.tar.gz
cd qemu-x.y.z

Then you configure QEMU and build it (usually no options are needed):

./configure
make

Then type as root user:

make install

to install QEMU in /usr/local.

6.1.2 GCC version

In order to compile QEMU successfully, it is very important that you have the right tools. The most important one is gcc. On most hosts and in particular on x86 ones, gcc 4.x is not supported. If your Linux distribution includes a gcc 4.x compiler, you can usually install an older version (it is invoked by gcc32 or gcc34). The QEMU configure script automatically probes for these older versions so that usually you don't have to do anything.