Skip to content

Commit

Permalink
Merge pull request #981 from jfroco/patch-1
Browse files Browse the repository at this point in the history
Update windows.md
  • Loading branch information
fpscan authored Sep 2, 2024
2 parents 224ff3c + fbbe242 commit d6fa640
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion docs/development/retroarch/compilation/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ We recommend MinGW-W64 from MSYS2. You can download MSYS2 installer from [here](

Follow the installation instructions and once finished start the MSYS2 shell.

MSYS2 shell is a maintenance shell. We are going to use this shell to install the toolchain and other packages. First order of business is to update MSYS2. Start the MSYS2 Shell and run the following commands:
You may need to add "Full Control" permission to your MSYS folder (for example, C:\msys64) or run the shell as Administrator.

MSYS2 shell is a maintenance shell. We are going to use this shell to install the toolchain and other packages. First order of business is to update MSYS2. Start the MSYS2 MINGW64 or MINGW32 Shell (mingw64.exe or mingw32.exe), It is important to use this particular shell (MINGW) because the makefile uses it to detect the target platform as Windows.

Once we're in the shell, run the following commands:

```bash
pacman --noconfirm -Sy
Expand Down Expand Up @@ -79,6 +83,14 @@ wget https://sourceforge.net/projects/mingw-w64-archlinux/files/x86_64/mingw-w64
pacman -U mingw-w64-x86_64-nvidia-cg-toolkit-3.1-2-any.pkg.tar.xz
```

If you encounter any errors, you may try the following procedure instead:

```bash
pacman -S mingw-w64-x86_64-crt
pacman -S mingw-w64-x86_64-nvidia-cg-toolkit
```


Once these packages are installed close MSYS2 shell and open MinGW-w32 shell or MinGW-w64 shell depending on the platform you want to build for.

You'll need gcc and make:
Expand Down Expand Up @@ -275,6 +287,13 @@ cd libretro-fceumm
make -f Makefile.libretro
```

If the Makefile.libretro is not present, as in the libretro-atari800 core, you might try the following:

```bash
cd libretro-atari800
make
```

Optionally strip the build product:

```bash
Expand Down

0 comments on commit d6fa640

Please sign in to comment.