diff --git a/Building-For-Windows.md b/Building-For-Windows.md index aa1bfca..5dc6f5d 100644 --- a/Building-For-Windows.md +++ b/Building-For-Windows.md @@ -1,3 +1,4 @@ +## MSVC Build for Windows ### Minimal Dependencies On Windows, all library dependencies are automatically included within the "externals" folder or can be downloaded on-demand. To build Citra, you simply need to install: @@ -50,4 +51,36 @@ NOTE: Citra by default downloads to C:\Users\\citra ![18](http://i.imgur.com/x30ZhtE.png?2) -* NOTE: Please refer to [Common Issues](https://github.com/citra-emu/citra/wiki/Common-Issues) if any errors. If you did not find a solution feel free to ask us in the IRC channel: #citra @ [Freenode](https://webchat.freenode.net/). \ No newline at end of file +* NOTE: Please refer to [Common Issues](https://github.com/citra-emu/citra/wiki/Common-Issues) if any errors. If you did not find a solution feel free to ask us in the IRC channel: #citra @ [Freenode](https://webchat.freenode.net/). + +## Mingw-w64 Build with MSYS2 + +### Note that these instructions are a draft, and are dependant on the mingw build changes to be merged + +#### Prerequistes to install + * [MSYS2](http://msys2.github.io/) + ** Make sure to follow the instructions and update to the latest version by running `pacman -Syu` as many times as needed. + +#### Install citra dependancies for mingw-w64 + * Open the mingw64.exe shell + * Use `pacman -S {name}` to install them where name is the following dependancies + ** mingw64/mingw-w64-x86_64-qt5 + ** mingw64/mingw-w64-x86_64-SDL2 + ** mingw64/mingw-w64-x86_64-cmake + ** git + +#### Clone the citra repository with git. + ** `git clone --recursive https://github.com/citra-emu/citra.git` + +#### Run the following commands to build citra (dynamic linked build) +```bash +mkdir build && cd build +cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release .. +``` + +##### 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. + +#### Creating a static build + + * Instead of installing mingw64/mingw-w64-x86_64-qt5 install mingw64/mingw-w64-x86_64-qt5-static + * Add -DMINGW_STATIC_BUILD to the cmake command line \ No newline at end of file