ppsspp/libretro/README_WINDOWS.txt

38 lines
1.3 KiB
Plaintext
Raw Normal View History

Install msys.
Follow the guide here to set up your MSYS installation for retroarch compilation:
https://docs.libretro.com/development/retroarch/compilation/windows/
You can probably really skip most of the packages but you need make:
pacman -S make
"Install" the plugin in Retroarch.
Then use the following in msys:
cd libretro
make platform=windows_msvc2019_desktop_x64 -j32 && cp ppsspp_libretro.* /d/retroarch/cores && rm nul
Note that the latter part copies the DLL/PDB into wherever retroarch reads it from. Might need to adjust the path,
and adjust -j32 depending on your number of logical CPUs - might not need that many threads (or you might need more...).
(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).
To debug from within MSVC, open retroarch.exe (or retroarch_debug.exe) as a Project/Solution, then open a few of the cpp files,
set some breakpoints and just launch using F5.
If you get
```
../git-version.cpp(3): error C2374: 'PPSSPP_GIT_VERSION': redefinition; multiple initialization
../git-version.cpp(1): note: see declaration of 'PPSSPP_GIT_VERSION'
```
just do `rm ../git-version.cpp`.
Useful libretro/vulkan sample code:
https://github.com/libretro/libretro-samples/blob/master/video/vulkan/vk_rendering/libretro-test.c