Commit b352153f authored by G 3's avatar G 3 Committed by Peter Maydell

From: John Arbuckle <>

qemu-doc.texi: Add information on compiling source code on Mac OS X

Add information to the documentation on how to build QEMU
on Mac OS X.
Signed-off-by: default avatarJohn Arbuckle <>
Reviewed-by: default avatarPeter Maydell <>
[PMM: fixed a minor capitalization error]
Signed-off-by: default avatarPeter Maydell <>
parent 351053e7
......@@ -3021,9 +3021,63 @@ and all other qemu-system-@var{target}.exe compiled for Win32.
@node Mac OS X
@section Mac OS X
The Mac OS X patches are not fully merged in QEMU, so you should look
at the QEMU mailing list archive to have all the necessary
System Requirements:
@item Mac OS 10.5 or higher
@item The clang compiler shipped with Xcode 4.2 or higher,
or GCC 4.3 or higher
@end itemize
Additional Requirements (install in order):
@item libffi: @uref{}
@item gettext: @uref{}
@item glib: @uref{}
@item pkg-config: @uref{}
@item autoconf: @uref{}
@item automake: @uref{}
@item libtool: @uref{}
@item pixman: @uref{}
@end enumerate
* You may find it easiest to get these from a third-party packager
such as Homebrew, Macports, or Fink.
After downloading the QEMU source code, double-click it to expand it.
Then configure and make QEMU:
@end example
If you have a recent version of Mac OS X (OSX 10.7 or better
with Xcode 4.2 or better) we recommend building QEMU with the
default compiler provided by Apple, for your version of Mac OS X
(which will be 'clang'). The configure script will
automatically pick this.
Note: If after the configure step you see a message like this:
ERROR: Your compiler does not support the __thread specifier for
Thread-Local Storage (TLS). Please upgrade to a version that does.
@end example
You may have to build your own version of gcc from source. Expect that to take
several hours. More information can be found here:
@uref{} @*
These are some of the third party binaries of gcc available for download:
@item Homebrew: @uref{}
@item @uref{}
@item @uref{}
@end itemize
You can have several versions of GCC on your system. To specify a certain version,
use the --cc and --cxx options.
./configure --cxx=<path of your c++ compiler> --cc=<path of your c compiler> <other options>
@end example
@node Make targets
@section Make targets
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment