{"id":419,"date":"2019-02-17T08:03:09","date_gmt":"2019-02-16T19:03:09","guid":{"rendered":"http:\/\/wp.gaborhargitai.hu\/?p=419"},"modified":"2019-02-17T10:14:30","modified_gmt":"2019-02-16T21:14:30","slug":"dolphin-gamecube-wii-emulator-compile-the-latest-version-under-macos-osx-10-14-mojave","status":"publish","type":"post","link":"https:\/\/wp.gaborhargitai.hu\/dolphin-gamecube-wii-emulator-compile-the-latest-version-under-macos-osx-10-14-mojave\/","title":{"rendered":"Dolphin GameCube \/ Wii Emulator – compile the latest version under macOS \/ OSX 10.14 Mojave"},"content":{"rendered":"\n

There are many ways to do this, but for me none of them worked as most of the time I simply ended up with an app bundle that crashes on start.<\/p>\n\n\n\n

I’ve successfully built the latest Dolphin<\/a> with these steps.<\/p>\n\n\n\n

First, make sure that you have Xcode installed (free download from the AppStore)<\/a> and have Xcode command line tools installed:<\/p>\n\n\n\n

xcode-select --install<\/pre>\n\n\n\n

Make sure to issue the following command, otherwise ibtool<\/strong> will likely fail during build:<\/p>\n\n\n\n

sudo xcode-select -s \/Applications\/Xcode.app\/Contents\/Developer<\/pre>\n\n\n\n

Now we need to install Homebrew<\/strong> – click here to visit the official site<\/a> and follow the steps to install it.<\/p>\n\n\n\n

Once homebrew is installed, we need to install CMake:<\/p>\n\n\n\n

brew install cmake<\/pre>\n\n\n\n

Next, we need to download the Qt library<\/strong> – visit the official website, choose Open Source and download the online installer (or click here).<\/a><\/p>\n\n\n\n

Mount the .dmg and double click on the installer<\/p>\n\n\n\n

When asked, first press ‘Deselect all’ from the list, then click on the currently available highest version (as of writing, it is 5.12.1<\/strong>) and select macos<\/strong>, then click next and begin installing.<\/p>\n\n\n\n

Alternatively, you can install it via <\/em>brew, <\/em><\/strong>but that somehow didn’t work for me. For anyone going that route, make sure to invoke <\/em>cmake<\/em><\/strong> with the following additional flag, like so:<\/em><\/p>\n\n\n\n

-DCMAKE_PREFIX_PATH=$(brew --prefix qt5)<\/pre>\n\n\n\n

After Qt is installed we need to download Ninja to build Dolphin – we’ll be using brew<\/strong> to do that, like so:<\/p>\n\n\n\n

brew install ninja<\/pre>\n\n\n\n

Finally, let’s follow the official Dolphin instructions. First, let’s checkout the latest Dolphin code to our home directory:<\/p>\n\n\n\n

git clone https:\/\/github.com\/dolphin-emu\/dolphin ~\/dolphin-emu
cd ~\/dolphin-emu
<\/pre>\n\n\n\n

Next, we prepare the build directory:<\/p>\n\n\n\n

mkdir -p build
cd build
<\/pre>\n\n\n\n

Now we preconfigure the build process with cmake<\/strong> and use Ninja to build Dolphin. Please note that I’m using version 5.12.1\u00a0of\u00a0Qt<\/strong> and yours may very well be different, be sure to issue the following command accordingly! Double-check your installed Qt version by navigating to the Qt install folder (by default it should be within your Home dir, ~\/Qt\/<\/strong>)<\/p>\n\n\n\n

cmake .. -DCMAKE_PREFIX_PATH=~\/Qt\/5.12.1\/clang_64\/ -G Ninja -DCMAKE_CXX_FLAGS=\"-Xclang -fcolor-diagnostics\"
<\/pre>\n\n\n\n

Once that finishes the final step is to build Dolphin with Ninja, simply issue:<\/p>\n\n\n\n

ninja<\/pre>\n\n\n\n

When that finishes you should find a complete Dolphin bundle within the Binaries<\/strong> folder (~\/dolphin-emu\/build\/Binaries)<\/p>\n\n\n\n

Updating the build should be easy, according to the official build instructions.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

There are many ways to do this, but for me none of them worked as most of the time I simply ended up with an app bundle that crashes on start. I’ve successfully built the latest Dolphin with these steps. First, make sure that you have Xcode installed (free download from the AppStore) and have […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/419"}],"collection":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/comments?post=419"}],"version-history":[{"count":9,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/419\/revisions"}],"predecessor-version":[{"id":446,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/419\/revisions\/446"}],"wp:attachment":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media?parent=419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/categories?post=419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/tags?post=419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}