

If you need to compile with newer versions of clang (to get f.i. To specify a certain version, use the -cc and -cxx options. You can have several versions of GCC on your system. You can build it from source (expect that to take several hours) or obtain third party binaries of gcc available from Homebrew or MacPorts. You may have to install your own version of gcc. Note: If after the configure step you see a message like this:ĮRROR: Your compiler does not support the _thread specifier for The configure script will automatically pick this. We recommend building QEMU with the default compiler provided by Apple, for your version of Mac OS X (which will be 'clang'). You can use './configure -help' to see a full list of options. configure -target-list=i386-softmmu,ppc-softmmu & make say "I'm all done compiling QEMU" If your system has the 'say' command, you can use it to tell you when QEMU is done This way doesn't require you to wait for the configure command to complete:

If you don't specify it, all machines would be built. The target-list option is used to build only the machine or machines you want. Make (when installed through brew, make is installed as gmake, so use gmake)Īfter downloading the QEMU source code, double-click it to expand it. GCC might also work, but we recommend clang The clang compiler shipped with the version of Xcode for that OS X.One of the two most recent versions of macOS (currently Catalina or Big Sur).If your host's (your computer) architecture matches the guest's (QEMU) architecture and is running Mac OS 10.10 or higher, then you could speed up execution to near native speed using this option: -accel hvf Should you want to run Qemu with KVM support on a G5, depending on your distribution, you might have to compile your own kernel with KVM support. KVM is mainly used for x86 (32 and 64 bit) emulation on x86 hosts running Linux. Some system emulations on Linux use KVM, a special emulation mode which claims to reach nearly native speed. 1.1 Installing QEMU using a package manager.
