From patchwork Thu Aug 6 15:35:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 504920 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 56C461402B7 for ; Fri, 7 Aug 2015 07:41:16 +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=EjrBV4mG; dkim-atps=neutral Received: from localhost ([::1]:45594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNDf-0006dC-Tb for incoming@patchwork.ozlabs.org; Thu, 06 Aug 2015 11:36:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNDB-0006b1-9w for qemu-devel@nongnu.org; Thu, 06 Aug 2015 11:36:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNND7-0005t0-UG for qemu-devel@nongnu.org; Thu, 06 Aug 2015 11:36:05 -0400 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:33986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNND7-0005sJ-OR for qemu-devel@nongnu.org; Thu, 06 Aug 2015 11:36:01 -0400 Received: by qkcs67 with SMTP id s67so5188678qkc.1 for ; Thu, 06 Aug 2015 08:36:00 -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=5p1w5NuQmQWa1T4VDGyMJRh6T+TlBcyt/d0/3vOQa2Y=; b=EjrBV4mG6KBkyy+zG9DZeeOmO+5VcQh/B8QwV8/wRbyZLLYu5DzW38kYmloiWrWZow 2cKX2QQTbN4VQKTr4Xxvi0OyEa2vEbY5BU4RoHgMSqdORurk9A1FCMVTvzrybgbJ7WIL /Q13YQdbuK76q9G4QE+kL7/IdNSGvCxf2kLymjvVaAf6smhFKJAJOKjuXvCymWZ36Uci tRuHFOKswFNBLL3/gtMxz/O2aseEZhD82IBAkzQh7zhrK/27hFQjZPA5uVqzx0yjjkpk kBPlna+KWYpTvxwYQVFtULMY1QIsJZT4ZQNly7WUxcJl4UwDJ4HxWs84YUQMhaF2Tgen sOQw== X-Received: by 10.55.33.35 with SMTP id h35mr3801749qkh.75.1438875359453; Thu, 06 Aug 2015 08:35:59 -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 p74sm3382557qkp.11.2015.08.06.08.35.58 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Aug 2015 08:35:58 -0700 (PDT) From: Programmingkid Date: Thu, 6 Aug 2015 11:35:57 -0400 Message-Id: <6D2243E1-9AB5-43A1-B6B1-A99C71A48B69@gmail.com> To: qemu-devel qemu-devel 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:c09::22f Cc: Peter Maydell Subject: [Qemu-devel] [PATCH] 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 Add information on compiling source code on Mac OS X to the documentation. Signed-off-by: John Arbuckle --- This patch may depend on the other patch I sent in for the qemu-doc.texi file. qemu-doc.texi | 41 ++++++++++++++++++++++++++++++++++++++--- 1 files changed, 38 insertions(+), 3 deletions(-) diff --git a/qemu-doc.texi b/qemu-doc.texi index 9a8f353..eb4ce8d 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -3024,9 +3024,44 @@ 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. +After downloading the QEMU source code, double-click it to expand it. + +Then configure QEMU to build the emulator you want using the --target-list option: +@example +./configure --target-list=ppc-softmmu,i386-softmmu --disable-sdl --disable-gtk +@end example + +@smalldisplay +*Disabling SDL and GTK support is suggested because QEMU runs poorly with them. +@end smalldisplay + +Start building QEMU using the make command: +@example +make +@end example + +Note: Apple supplied versions of gcc may not work with QEMU. 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. GCC 4.3 or above would work. More information can be found here: +https://gcc.gnu.org/install/ @* + +These are some of the third party binaries of gcc available for download: +@itemize +@item Homebrew http://brew.sh/ +@item https://www.litebeam.net/gcc/gcc_472.pkg +@item 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