Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/libretro/README_WINDOWS.txt
3185 views
1
Install msys.
2
3
Follow the guide here to set up your MSYS installation for retroarch compilation:
4
5
https://docs.libretro.com/development/retroarch/compilation/windows/
6
7
You can probably really skip most of the packages but you need make:
8
9
pacman -S make
10
11
Start Retroarch ones to create the cores directory.
12
13
Then use the following in msys (edit the last part as appropriate):
14
15
```
16
cd libretro
17
make platform=windows_msvc2019_desktop_x64 -j32 && cp ppsspp_libretro.* /d/retroarch/cores
18
```
19
20
To make a debug build:
21
22
```
23
make DEBUG=1 platform=windows_msvc2019_desktop_x64 -j32 && cp ppsspp_libretro.* /d/retroarch/cores
24
```
25
26
Note that the latter part copies the DLL/PDB into wherever retroarch reads it from. Might need to adjust the path,
27
and adjust -j32 depending on your number of logical CPUs - might not need that many threads (or you might need more...).
28
29
Also, the "2019" part has no significance, it seems - it's fine even if you're on MSVC 2022.
30
31
(plain make without a platform parameter doesn't work - g++ isn't able to build the D3D11 stuff, or at least it fails to link).
32
33
To debug from within MSVC, open retroarch.exe (or retroarch_debug.exe) as a Project/Solution (important! Not as File), then open a few of the cpp files,
34
set some breakpoints and just launch using F5. Then just choose the core and game in retroarch.
35
36
Useful libretro/vulkan sample code:
37
38
https://github.com/libretro/libretro-samples/blob/master/video/vulkan/vk_rendering/libretro-test.c
39
40