2018-09-01 19:01:15 +00:00
## THIS GUIDE IS INTENDED FOR DEVELOPERS ONLY, SUPPORT WILL ONLY BE GIVEN IF YOU'RE A DEVELOPER.
2018-01-14 06:15:50 +00:00
## MSVC Build for Windows
2018-01-18 17:32:06 +00:00
2018-01-14 06:15:50 +00:00
### Minimal Dependencies
2018-01-18 17:32:06 +00:00
2018-01-14 06:15:50 +00:00
On Windows, all library dependencies are automatically included within the "externals" folder or can be downloaded on-demand. To build yuzu, you simply need to install:
* **[Visual Studio 2017 Community](https://www.visualstudio.com/products/visual-studio-community-vs)** - **Make sure to select C++ support in the installer** .
* **[CMake](http://www.cmake.org/cmake/resources/software.html)** - Used to generate Visual Studio project files.
2018-01-18 17:32:06 +00:00
2018-01-14 19:36:15 +00:00
![2 ](https://i.imgur.com/S1NH63P.png )
2018-01-18 17:32:06 +00:00
2018-01-14 06:15:50 +00:00
* **Git** - We recommend [msysgit ](http://msysgit.github.io/ ).
2018-01-18 17:32:06 +00:00
2018-01-14 06:15:50 +00:00
![3 ](http://i.imgur.com/joCBhIB.jpg )
2018-01-18 17:32:06 +00:00
2018-01-14 06:15:50 +00:00
* While installing Git Bash, you should tell it to include Git in your system path. (Choose the "Use Git from the Windows Command Prompt" option.) If you missed that, don't worry, you'll just have to manually tell CMake where your git.exe is, since it's used to include version info into the built executable.
![4 ](http://i.imgur.com/th8sFud.jpg )
2018-01-18 17:32:06 +00:00
### Cloning yuzu with Git
2018-01-14 06:15:50 +00:00
2018-01-18 17:32:06 +00:00
```cmd
2018-01-14 06:15:50 +00:00
git clone --recursive https://github.com/yuzu-emu/yuzu.git
cd yuzu
```
2018-01-18 17:32:06 +00:00
2018-01-14 21:48:26 +00:00
![9 ](https://i.imgur.com/xq15xTB.png )
2018-01-14 06:15:50 +00:00
NOTE: yuzu by default downloads to C:\Users\<user-name>\yuzu
### Building
2018-01-18 17:32:06 +00:00
2018-01-14 06:15:50 +00:00
* Open cmake-gui and point it to the yuzu directory. Default: C:\Users\<user name>\yuzu
2018-01-18 17:32:06 +00:00
2018-01-14 19:36:15 +00:00
![10 ](https://i.imgur.com/YKmNs1p.png )
![11 ](https://i.imgur.com/SWxOVKB.png )
2018-01-14 06:15:50 +00:00
2018-01-18 17:32:06 +00:00
* For the build directory, use a `build/` subdirectory inside the source directory or some other directory of your choice. (Tell CMake to create it.)
* Click the "Configure" button and choose "Visual Studio 15 2017 Win64"
2018-01-14 06:15:50 +00:00
![12 ](http://i.imgur.com/RvVcyCP.jpg )
2018-01-18 17:32:06 +00:00
* NOTE: If you used GitHub's own app to clone, run `git submodule update --init --recursive` to get the remaining dependencies.
* Click "Generate" to create the project files.
2018-01-14 06:15:50 +00:00
2018-01-14 19:36:15 +00:00
![15 ](http://i.imgur.com/CkZgD4p.jpg )
2018-01-14 06:15:50 +00:00
* Open the solution file yuzu.sln in Visual Studio 2017, which is located in the build folder.
2018-01-14 19:36:15 +00:00
![16 ](https://i.imgur.com/q4dSKXR.png )
2018-01-14 06:15:50 +00:00
2018-01-18 17:32:06 +00:00
* Depending if you want a graphical user interface or not ("yuzu" is with a graphical user interface, while "yuzu-cmd" is just the command line version of it), select "yuzu" or "yuzu-cmd" in the Solution Explorer, right-click and "Set as StartUp Project".
2018-01-14 06:15:50 +00:00
2018-01-14 19:36:15 +00:00
![17 ](https://i.imgur.com/2h8q6at.png )
2018-01-14 06:15:50 +00:00
2018-01-14 19:36:15 +00:00
![18 ](http://i.imgur.com/FkuAwd8.jpg )
2018-01-14 06:15:50 +00:00
2018-01-18 17:32:06 +00:00
* Select the appropriate build type, Debug for debug purposes or Release for performance (in case of doubt choose the latter).
2018-01-14 06:15:50 +00:00
2018-01-14 19:36:15 +00:00
![19 ](http://i.imgur.com/Gqifkc0.jpg )
2018-01-14 06:15:50 +00:00
2018-01-18 17:32:06 +00:00
* Press F5 or select Build → Rebuild Solution in the menu.
2018-01-14 06:15:50 +00:00
2018-01-14 19:36:15 +00:00
![20 ](http://i.imgur.com/7ro9uSB.jpg )
2018-01-14 06:15:50 +00:00
2018-01-16 19:21:59 +00:00
Feel free to ask us in the IRC channel #yuzu @ [Freenode ](https://webchat.freenode.net/ ) or on [Discord ](https://discord.gg/XQV6dn9 ) if you have issues.
2018-01-14 06:15:50 +00:00
## MinGW-w64 Build with MSYS2
2018-01-18 17:32:06 +00:00
### Prerequisites to install
2018-01-14 06:15:50 +00:00
2018-01-18 17:32:06 +00:00
* [MSYS2 ](http://msys2.github.io/ )
2018-01-14 06:15:50 +00:00
Make sure to follow the instructions and update to the latest version by running `pacman -Syu` as many times as needed.
2018-01-18 17:32:06 +00:00
### Install yuzu dependencies for MinGW-w64
2018-01-14 06:15:50 +00:00
2018-01-18 17:32:06 +00:00
* Open the "MSYS2 MinGW 64-bit" (mingw64.exe) shell
2018-11-15 09:25:27 +00:00
* Download and install all dependencies using: `pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-qt5 mingw-w64-x86_64-SDL2 mingw-w64-x86_64-cmake make git python2`
2018-01-14 06:15:50 +00:00
2018-01-18 17:32:06 +00:00
### Clone the yuzu repository with Git
2018-01-14 06:15:50 +00:00
2018-01-18 17:32:06 +00:00
* `git clone --recursive https://github.com/yuzu-emu/yuzu.git`
* `cd yuzu`
### Run the following commands to build yuzu (dynamic linked build)
```cmd
2018-01-14 06:15:50 +00:00
mkdir build & & cd build
2018-04-19 23:12:17 +00:00
cmake -G "MSYS Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_BUILD_TYPE=Release ..
mingw32-make -j4
2018-01-14 06:15:50 +00:00
# test yuzu out with
2018-02-10 20:05:20 +00:00
./bin/yuzu.exe
2018-01-14 06:15:50 +00:00
```
2018-01-18 17:32:06 +00:00
**Note! This build is not a static build meaning that you need to include all of the dlls with the exe in order to use it.**
2018-01-14 06:15:50 +00:00
2018-01-18 17:32:06 +00:00
### Building without Qt (Optional)
2018-01-14 06:15:50 +00:00
Doesn't require the rather large Qt dependency, but you will lack a GUI frontend.
* Pass the `-DENABLE_QT=no` flag to cmake
2018-03-24 09:09:49 +00:00
## Building from the command line with MSVC
```
git clone --recursive https://github.com/yuzu-emu/yuzu
2018-08-26 22:26:42 +00:00
cd yuzu
2018-03-24 09:09:49 +00:00
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017 Win64"
cmake --build .
```