Build qemu on MacOS
Automated build script
See the attached file for an automated build script. To use:
- Download the latest compressed tar files into a build/work directory. See the list down below for their names and where you can get them from. Make sure the automated build script is in the same directory.
- Modify the install directory setting in the build script, if required. It's initially set to
/Users/Shared
leading to the built software to be installed in/Users/Shared/qemu-<version>
. Build options for qemu are towards the bottom of the script. - Remove or move any existing/old destination directories (as well as any PATH variable pointing to them).
- The component packages are untarred into the same directory as the build script. You need to remove them manually if you want to rebuild.
- Run the script.
↓↓ Older material ↓↓
Build order
libffi | 3.2.1 | http://sourceware.org/libffi/ | ./configure --prefix=/Users/Shared/qemu-2.11.0 make make install |
gettext | 0.19.8 | http://www.gnu.org/software/gettext/ | ./configure --prefix=/Users/Shared/qemu-2.11.0 make make install |
glib | 2.55.1 | http://ftp.gnome.org/pub/gnome/sources/glib/ | LIBFFI_CFLAGS=-I/Users/Shared/qemu-2.11.0/lib/libffi-3.2.1/include LIBFFI_LIBS=-L/Users/Shared/qemu-2.11.0/lib CFLAGS=-I/Users/Shared/qemu-2.11.0/include CPPFLAGS=-I/Users/Shared/qemu-2.11.0/include LIBS=-L/Users/Shared/qemu-2.11.0/lib PATH=$PATH:/Users/Shared/qemu-2.11.0/bin ./configure --prefix=/Users/Shared/qemu-2.11.0 --with-pcre=internal make make install |
pkg-config (not used, see below) | 0.29.2 | https://pkg-config.freedesktop.org/releases/ | GLIB_CFLAGS="-I/Users/Shared/qemu-2.11.0/include/glib-2.0 -I/Users/Shared/qemu-2.11.0/lib/glib-2.0/include" GLIB_LIBS=-L/Users/Shared/qemu-2.11.0/lib ./configure --prefix=/Users/Shared/qemu-2.11.0 |
pkg-config | 0.29.2 | https://pkg-config.freedesktop.org/releases/ | ./configure --with-internal-glib --prefix=/Users/Shared/qemu-2.11.0 make make install |
pixman | 0.34.0 | https://www.cairographics.org/releases/ | ./configure --prefix=/Users/Shared/qemu-2.11.0 make make install |
qemu | 2.11.0 | - | ../configure_qemu make make install make install-doc |
Files: