From patchwork Fri Aug 14 17:54:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 507548 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D1C1914012C for ; Sat, 15 Aug 2015 03:55:01 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=o5/tlVvM; dkim-atps=neutral Received: from localhost ([::1]:47700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQJC0-0003Rp-51 for incoming@patchwork.ozlabs.org; Fri, 14 Aug 2015 13:55:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQJBZ-0002oN-J6 for qemu-devel@nongnu.org; Fri, 14 Aug 2015 13:54:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQJBW-0002PZ-2C for qemu-devel@nongnu.org; Fri, 14 Aug 2015 13:54:33 -0400 Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:33047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQJBV-0002PM-Qc for qemu-devel@nongnu.org; Fri, 14 Aug 2015 13:54:29 -0400 Received: by qged69 with SMTP id d69so56106991qge.0 for ; Fri, 14 Aug 2015 10:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:date:message-id:cc:to:mime-version; bh=00r1Tb508kgEi6iMc72Z/FZWkbPDhFvCQofI8GTVQ4U=; b=o5/tlVvMCCDRTfRij4+7DNt4LG2cOCtqMkHRPuZtqLv2Mo3INupWSOb1CliZ1ESYdn 8xYWtX/01cQda3xrrs6sm7HuZ6VopLBhAcEj/yObY+zGW9VI43UpdciLz5tPcekemjzs 42Tb4aW/ZM7EXP+QYTFIPUGEgw9pzRrKEmCAt8hiZ+qyOcZQnfxLzJR2DpMWD/t32IL5 dz91LF/4ijyp3+vOt5X0SBD/p92G0GtlXFpQvNeiUtWfbiNWwCOU6+lfDu5lJP024Imi Z7jauXK4Da60JouXvcpbTXm9WKxVZWWitlPFsoSWIGAcd6nj7svx+K+BBfHkMDMUgVPd UeMw== X-Received: by 10.140.144.11 with SMTP id 11mr85482911qhq.46.1439574869149; Fri, 14 Aug 2015 10:54:29 -0700 (PDT) Received: from [192.168.0.6] (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by smtp.gmail.com with ESMTPSA id e196sm3440950qka.40.2015.08.14.10.54.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Aug 2015 10:54:28 -0700 (PDT) From: Programmingkid Date: Fri, 14 Aug 2015 13:54:25 -0400 Message-Id: <50C9DB6F-C47F-45A1-A7B1-C0A10C3BADC9@gmail.com> To: Peter Maydell Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::22f Cc: qemu-devel qemu-devel Subject: [Qemu-devel] [PATCH v3] qemu-doc.texi: Add information on compiling source code on Mac OS X X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch will add information to the documentation web page on how to build Qemu on Mac OS X. Signed-off-by: John Arbuckle --- Add info on additional libraries that need to be installed. qemu-doc.texi | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 57 insertions(+), 3 deletions(-) diff --git a/qemu-doc.texi b/qemu-doc.texi index 0125bc7..dc6bca9 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -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 -information. +System Requirements: +@itemize +@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): +@enumerate +@item libffi: @uref{https://sourceware.org/libffi/} +@item gettext: @uref{http://www.gnu.org/software/gettext/} +@item glib: @uref{http://ftp.gnome.org/pub/GNOME/sources/glib/} +@item pkg-config: @uref{http://www.freedesktop.org/wiki/Software/pkg-config/} +@item autoconf: @uref{http://www.gnu.org/software/autoconf/autoconf.html} +@item automake: @uref{http://www.gnu.org/software/automake/} +@item libtool: @uref{http://www.gnu.org/software/libtool/} +@item pixman: @uref{http://www.pixman.org/} +@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: +@example +./configure +make +@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: +@example +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{https://gcc.gnu.org/install/} @* + +These are some of the third party binaries of gcc available for download: +@itemize +@item Homebrew: @uref{http://brew.sh/} +@item @uref{https://www.litebeam.net/gcc/gcc_472.pkg} +@item @uref{http://www.macports.org/ports.php?by=name&substr=gcc} +@end itemize + +You can have several versions of GCC on your system. To specify a certain version, +use the --cc and --cxx options. +@example +./configure --cxx= --cc= +@end example @node Make targets @section Make targets