QEMU/Guests/Mac OS 9: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
|}
 
<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>
<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 at the very end. Execute the following command:
 
<pre>PKG_CONFIG_PATH="$(brew --prefix)/opt/ncurses/lib/pkgconfig" ./configure --target-list="ppc-softmmu"</pre>
 
Finally, build QEMU:
 
====Compiling on Windows====
We will need to download and install the latest version of [https://www.msys2.org/#installation MSYS2]. Follow the instructions on the page.
 
A terminal should open when the installation finishes, if not just open it from the Start menu. When the terminal is open, we'll update MSYS2's packages by running:
 
<pre>pacman -Syu</pre>
 
When the updates are installed, the terminal will close. Open it again and run the following command to finish updating the packages:
 
<pre>pacman -Su</pre>
 
Now, install the build dependencies for QEMU:
 
<pre>pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-glib2 mingw64/mingw-w64-x86_64-gtk3 mingw64/mingw-w64-x86_64-SDL2 git python python-setuptools ninja</pre>
 
When this is finished, close the MSYS2 terminal and open the MinGW terminal (should be in the Start menu), and run the commands below to prepare the build environment for QEMU's build scripts:
 
<pre>
cp -v /mingw64/bin/x86_64-w64-mingw32-gcc-ar.exe /mingw64/bin/x86_64-w64-mingw32-ar.exe
cp -v /mingw64/bin/x86_64-w64-mingw32-gcc-ranlib.exe /mingw64/bin/x86_64-w64-mingw32-ranlib.exe
cp -v /mingw64/bin/windres.exe /mingw64/bin/x86_64-w64-mingw32-windres.exe
cp -v /mingw64/bin/nm.exe /mingw64/bin/x86_64-w64-mingw32-nm.exe
cp -v /mingw64/bin/objcopy.exe /mingw64/bin/x86_64-w64-mingw32-objcopy.exe
</pre>
 
Now it's time to clone the source tree like so:
 
<pre>git clone --recursive -b screamer https://github.com/mcayland/qemu.git qemu-screamer
 
cd qemu-screamer/</pre>
 
Now we'll configure the build. To save time we only build the PowerPC QEMU target, but if you want to build all of them, just remove the <code>--target-list=ppc-softmmu</code> flag from the end. Also, unlike with macOS/Linux builds, we'll be disabling the GTK UI since it has mouse input issues, as well as DirectSound audio backend because it results in audio issues with OS X (though not Mac OS 9).
 
<pre>./configure --cross-prefix=x86_64-w64-mingw32- --disable-gtk --enable-sdl --audio-drv-list=sdl --target-list=ppc-softmmu</code>
 
Now we 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.
 
==Credits==
*[https://gist.github.com/akemin-dayo/0e9bdcd74b2ad7f0bcf56e0680256103 akemin-dayo's QEMU Screamer guide]

Navigation menu