perfect_dark icon indicating copy to clipboard operation
perfect_dark copied to clipboard

Need help building it for the PlayStation Classic Mini (Armv7)

Open shoddydev opened this issue 11 months ago • 7 comments

Hello, I'm trying to build it for the PlayStation Classic which is a linux armv7 device that came out in Dec 2018. I'm using gcc 12 and SDL2 2.0.12. I've successfully compiled it but when I try to run it it gives this error:

ERROR: FATAL: Could not open SDL window failed to create an EGL window surface

IMG_9360

I also tried building it against SDL2 2.0.14 and I see this warning: Assertion failture at SDL_GetWindowDisplayIndex_REAL (SDL2-2.0.14/src/video/SDL_Video.c:1080), triggered 1 time: 'window && window->magic == &_this->window_magic'

IMG_9362

Then I tried editing gfx_sdl2.cpp to delete this if (!wnd) { sysFatalError("Could not open SDL window:\n%s", SDL_GetError()); }

and it would give me more clues: IMG_9363

it would say Invalid window so I'm assuming that it's not able to connect to a window? I've compiled a few PC Ports previously for the PSC, Zelda soh, sonic mania, gta3, and I would really like to get Perfect Dark working.

The PSC uses wayland and weston 1.11.0, and OpenGL ES 3.2 which btw, does perfect dark have GLES support? I'm no expert I'm really just a amateur but initially I came across a similar issue when building zelda soh port. But luckily someone had just added GLES support and it worked.

I'm compiling it on something called psclassic Debian which is a linux debian distro for the PSC. Interestingly enough, the build worked on there. However it's running through software. I am told by the author of the distro that it's wrapped in software, so OpenGL is emulated which is why it runs super slow. It should run full speed if running it on the stock os. here's a video of it: https://www.youtube.com/watch?v=pPyXUKRvBas

shoddydev avatar Mar 14 '24 19:03 shoddydev