QEMU/Guests/Mac OS 9: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
 
====Compiling on Linux====
Clone the source code tree like so:
 
<pre>git clone --recursive -b screamer https://github.com/mcayland/qemu.git qemu-screamer
 
cd qemu-screamer/</pre>
 
Install the proper build dependencies. This varies from distro to distro, so I included a table with a few example commands:
 
{| class="wikitable"
|-
! Distribution
! Command
|-
| Arch Linux
| <code>pacman -S libffi gettext glib2 pkgconf autoconf automake pixman ninja mesongnutls libjpeg-turbo libpng libslirp libssh libusb lzo ncurses nettle snappy vde2</code>
|-
| Debian/Ubuntu
| <code>apt install libglib2.0-dev libgcrypt20-dev zlib1g-dev autoconf automake libtool bison flex libpixman-1-dev</code>
|-
|}
 
<code>cd</code> into the folder. We'll configure the build here. We're only going to compile the PowerPC version of QEMU to save time, though if you want to build every version, just remove the <code>--target-list="ppc-softmmu"</code> flag at the very end. Execute the following command:
 
<pre>./configure --target-list=ppc-softmmu</code>
 
Finally, build QEMU:
 
<pre>cd build/
make -j$(nproc)
</pre>
 
Afterwards, you'll find the proper <code>qemu-system-ppc</code> in the <code>build/</code> folder.
 
====Compiling on macOS====
First things first, this requires Homebrew. If you don't have it, install it by following the guide [https://brew.sh/ on the official website].
 
Clone the source code tree onto your hard drive like so:
 
<pre>git clone --recursive -b screamer https://github.com/mcayland/qemu.git qemu-screamer
<pre>brew install libffi gettext glib pkg-config autoconf automake pixman ninja meson gnutls jpeg libpng libslirp libssh libusb lzo ncurses nettle snappy vde</pre>
 
Now, <code>cd</code> into the folder. We are going to configure the build. We are only going to compile the PowerPC version of QEMU to save time, though if you want to build every version of QEMU, just remove the <code>--target-list="ppc-softmmu"</code> flag fromat the very end. Execute the following command:
 
<pre>PKG_CONFIG_PATH="$(brew --prefix)/opt/ncurses/lib/pkgconfig" ./configure --target-list="ppc-softmmu"</pre>

Navigation menu