qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qemu-doc.texi: Add information on compiling sou


From: Programmingkid
Subject: Re: [Qemu-devel] [PATCH] qemu-doc.texi: Add information on compiling source code on Mac OS X
Date: Fri, 7 Aug 2015 16:32:51 -0400

On Aug 7, 2015, at 1:00 PM, Peter Maydell wrote:

>> -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.
> 
> Heh, that's laughably ancient. Thanks for writing a fix for this.
Your welcome. 

> 
> At the top of this section is probably a good place to say
> 
> # QEMU should run on Mac OS X versions 10.5 and later.
Good suggestion. Will include a system requirement section.

> 
>> +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:
>> address@hidden
>> +./configure --target-list=ppc-softmmu,i386-softmmu --disable-sdl
>> --disable-gtk
>> address@hidden example
> 
> I think it would be better to just make configure disable
> SDL and GTK automatically when building the OSX binary.
> I'll write a patch for this...

If you are certain this patch will fix the problem, then removing the SDL and 
GTK info would be fine.

> 
> Suggestions like --target-list= belong in a host-OS-agnostic
> section of the documentation; they're not OSX specific.
OK.

> 
>> +
>> address@hidden
>> +*Disabling SDL and GTK support is suggested because QEMU runs poorly with
>> them.
>> address@hidden smalldisplay
>> +
>> +Start building QEMU using the make command:
>> address@hidden
>> +make
>> address@hidden example
>> +
>> +Note: Apple supplied versions of gcc may not work with QEMU. If after the
>> configure
> 
> I think the first and most important thing we should say is:
> 
> # 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 OSX as
> # part of Xcode (which will be 'clang'). The configure script will
> # automatically pick this.
> 
> That will cover almost everybody who wants to build QEMU
> (on the assumption that most people are running a new OSX).
> 
> Then after that you can have the information about older
> OSX which don't have a working compiler:
> 
> # Apple supplied versions of GCC do not work with QEMU.
> # If after the configure step ....
> 
> (https://trac.macports.org/wiki/UsingTheRightCompiler
> suggests that XCode 3.2 for OSX 10.6 provided a non-default
> 'clang'; I don't have a 10.6 + 3.2 system to check whether that
> clang will build QEMU though. If it does then we should
> recommend using it rather than building gcc. 10.5 users
> are definitely stuck with finding or building a non-Apple
> compiler, though.)

I just checked and my system does include clang. Didn't even know about it. Too 
bad it didn't work to compile QEMU. It doesn't support Thread-Local Storage. It 
is probably too old (version 3.0). 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]