Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CallumCarmicheal/3d3c4666a4e0bfa9d697e35d360ce036 to your computer and use it in GitHub Desktop.
Save CallumCarmicheal/3d3c4666a4e0bfa9d697e35d360ce036 to your computer and use it in GitHub Desktop.
Setting up Decaf-Emu for dummies like me!.md

How to build on windows with Visual Studio for idiots!

Prereq: Install Windows SDK

Guide without images

To see images scroll down

  1. Clone the decaf-emu repository, git clone https://github.com/decaf-emu/decaf-emu.git
  2. Go into the downloaded repository and update the submodules git submodule update --init
  3. Open CMake-GUI
  4. Setup the source code directory, for the build directory use the folder {repository}/build. (As shown in the image )
  5. Click configure and click yes to create the build directory
  6. When prompted, select your IDE (If using Visual Studio, make sure you have Win64 selected).
  7. Wait for CMake to finish configuring the project.
  8. Check if glbinding_DIR is set, if the folder is not set place in the current path {repository}/libraries/glbinding
  9. Click Generate.
Visual Studio Steps
  1. Goto {repository}/build and open decaf-emu.sln
  2. Make the project compile even faster, select the projects shown on the image. (Check image on step 11 below)
  3. Right click -> Properties or press alt+enter
  4. Click C/C++ -> Command Line
  5. Add /MP as an additional option, this will compile using multiple processors making the compilation faster.
  6. Build the solution by pressing Ctrl+Shift+B or Goto the Build menu (from the top of visual studio) and clicking Build Solution.
  7. Wait roughly about 9 years for the project to compile.
  8. Confirm that all projects have compiled correctly: You should see 20 succeeded and 0 failed.
    1. If you have any errors try to figure out what went wrong, if all else fails 1) Google it, 2) Go moan on the IRC #wiiu-emu on freenode.
  9. Click on the output windows and press CTRL+F to search, search in "decaf-sdl.exe"
  10. Go into the folder where decaf-sdl.exe is located and have fun!

Guide without images

  1. Clone the decaf-emu repository, git clone https://github.com/decaf-emu/decaf-emu.git step_1
  2. Go into the downloaded repository and update the submodules git submodule update --init step_2
  3. Open CMake-GUI
  4. Setup the source code directory, for the build directory use the folder {repository}/build. (As shown in the image ) step_4
  5. Click configure and click yes to create the build directory step_5
  6. When prompted, select your IDE (If using Visual Studio, make sure you have Win64 selected). step_6
  7. Wait for CMake to finish configuring the project. step_7
  8. Check if glbinding_DIR is set, if the folder is not set place in the current path {repository}/libraries/glbinding step_8
  9. Click Generate. step_9
Visual Studio Steps:
  1. Goto {repository}/build and open decaf-emu.sln step_10
  2. Make the project compile even faster, select the projects shown on the image. step_11
  3. Right click -> Properties or press alt+enter step_12
  4. Click C/C++ -> Command Line step_13
  5. Add /MP as an additional option, this will compile using multiple processors making the compilation faster. step_14
  6. Build the solution by pressing Ctrl+Shift+B or Goto the Build menu (from the top of visual studio) and clicking Build Solution. step_15
  7. Wait roughly about 9 years for the project to compile. step_16
  8. Confirm that all projects have compiled correctly: You should see 20 succeeded and 0 failed. step_17
    1. If you have any errors try to figure out what went wrong, if all else fails 1) Google it, 2) Go moan on the IRC #wiiu-emu on freenode.
  9. Click on the output windows and press CTRL+F to search, search in "decaf-sdl.exe" step_18
  10. Go into the folder where decaf-sdl.exe is located and have fun! step_19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment