mirror of
https://github.com/citra-emu/citra.git
synced 2025-05-12 20:40:18 +00:00
First draft of mingw build instructions.
parent
542ca29886
commit
8fcbf43611
@ -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\<user-name>\citra
|
||||
|
||||

|
||||
|
||||
* 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/).
|
||||
* 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
|
Loading…
x
Reference in New Issue
Block a user