Page 2 of 2

Re: PPSSPP on Pi2?

Posted: Sun Feb 22, 2015 8:15 pm
by GAMELASTER
So u can provide full manual how it build good? :/ I trying it really long and still failing :-(

Re: PPSSPP on Pi2?

Posted: Mon May 04, 2015 5:26 pm
by Cael
if anyone could post a decent guide in how to get it compiling that'd be helpfull,

Re: PPSSPP on Pi2?

Posted: Mon Jun 08, 2015 11:44 pm
by bucker
memeka wrote:Got it working on RPI2.

You don't need to change much:
- you need to get the EGL, GLES, GLESv2 and KHR headers from the mesa packages, preferably put them in the ppsspp source folder
- change CMakeLists.txt and remove RPI references: ppssppsdl uses SDL2 which already has videocore backend, so we don't need any rpi-specific backend here
- add the egl/gles include folder (where you copied the EGL, GLES, GLESv2 and KHR folders from mesa) and the egl/gles lib folder (the rpi one - /opt/vc/lib) - you can see in CMakeLists.txt how it was done previously for rpi

Run cmake, edit CMakeCache.txt and set FBDEV to ON, GLES2 to ON, maybe even MOBILE_DEVICE to ON, run cmake again, then run make.

A bit disappointed with the performance (GPU clocked at 500MHz), it runs fullspeed on the odroid...
https://www.youtube.com/watch?v=O8juShfoJtE
any chance on sharing the compiled binaries mate?

Re: PPSSPP on Pi2?

Posted: Fri Jun 12, 2015 1:35 pm
by Noroimusha
bucker wrote:
memeka wrote:Got it working on RPI2.

You don't need to change much:
- you need to get the EGL, GLES, GLESv2 and KHR headers from the mesa packages, preferably put them in the ppsspp source folder
- change CMakeLists.txt and remove RPI references: ppssppsdl uses SDL2 which already has videocore backend, so we don't need any rpi-specific backend here
- add the egl/gles include folder (where you copied the EGL, GLES, GLESv2 and KHR folders from mesa) and the egl/gles lib folder (the rpi one - /opt/vc/lib) - you can see in CMakeLists.txt how it was done previously for rpi

Run cmake, edit CMakeCache.txt and set FBDEV to ON, GLES2 to ON, maybe even MOBILE_DEVICE to ON, run cmake again, then run make.

A bit disappointed with the performance (GPU clocked at 500MHz), it runs fullspeed on the odroid...
https://www.youtube.com/watch?v=O8juShfoJtE
any chance on sharing the compiled binaries mate?
It would be great. I've tried to build it several times, once via libretro and 3-5 times as described by memeka. It throws several make errors and aborts at 52%. I'm on Archlinux ARM, so any Raspbian-specific errors are out of question.

One of my errors contains "/GPU/GLES/DepalettizeShader.o".

This thread here states that there's a broken commit:
https://github.com/libretro/libretro-ppsspp/issues/42

Thanks.

Re: PPSSPP on Pi2?

Posted: Sun Aug 16, 2015 2:49 pm
by Noroimusha
Today I thought I'd give it a try in 2 months. Surprisingly, I've built PPSSPPSDL w/o my previous errors. So the devs have fixed whatever caused them. Gotta try to run it. Hope it's fine. :D

Re: PPSSPP on Pi2?

Posted: Tue Aug 18, 2015 6:26 pm
by Lonk the Sane
Noroimusha wrote:Today I thought I'd give it a try in 2 months. Surprisingly, I've built PPSSPPSDL w/o my previous errors. So the devs have fixed whatever caused them. Gotta try to run it. Hope it's fine. :D
Any Luck?

Re: PPSSPP on Pi2?

Posted: Tue Aug 18, 2015 9:55 pm
by Noroimusha
Lonk the Sane wrote:
Noroimusha wrote:Today I thought I'd give it a try in 2 months. Surprisingly, I've built PPSSPPSDL w/o my previous errors. So the devs have fixed whatever caused them. Gotta try to run it. Hope it's fine. :D
Any Luck?
Actually it segfaults after being executed. Complains about some shaders. I'll post the exact error text later, but I've also seen it at a Github thread. The thread is unanswered.

Re: PPSSPP on Pi2?

Posted: Thu Jun 02, 2016 6:24 am
by Arutema
So I got it to compile and run on Pi 3 after much mucking about with dependencies. PPSSPP is very touchy about how you built SDL2.

To mostly copy-paste my results from the PPSSPP forums:

Code: Select all

$ sudo apt-get install libudev-dev cmake libsdl1.2-dev
You need all of these before you try to build SDL2. libudev is required for keyboard and mouse, libsdl1.2 is required for sound. cmake is required for PPSSPP's build process.

Then grab the SDL2 sources and build SDL2:

Code: Select all

$ tar xvzf SDL2-2.0.4.tar.gz
$ cd SDL2-2.0.4/
$ ./configure --prefix=/usr \
    --enable-sdl-dlopen \
    --disable-arts --disable-esd --disable-nas \
    --enable-alsa \
    --disable-pulseaudio \
    --disable-video-wayland \
    --without-x --disable-video-x11 --disable-x11-shared \
    --disable-video-x11-xcursor --disable-video-x11-xinerama \
    --disable-video-x11-xinput --disable-video-x11-xrandr \
    --disable-video-x11-scrnsaver --disable-video-x11-xshape \
    --disable-video-x11-vm --disable-video-opengl \
    --disable-video-directfb --disable-rpath \
    --enable-video-opengles --host=arm-raspberry-linux-gnueabihf
$ make -j4
$ sudo make install
Now you're ready to build PPSSPP. Git clone it into a new directory and from there:

Code: Select all

$ git submodule update --init
$ cd SDL
$ ./buildassets.sh
$ cd ..
$ cmake -DRASPBIAN=ON .
DRASPBIAN=ON is required to disable a shader that doesn't work so well in Rasbian's user space.

Don't build yet. There's one bit of code that needs editing in the current git version.

edit ext/native/base/PCMain.cpp and comment out (add "//" before) the following lines near the end of the file:

Code: Select all

#ifndef MOBILE_DEVICE
      exit(0);
#endif
That will mostly resolve an issue where the keyboard locks up on PPSSPP exit.

Now run "make -j4" and wait while it all builds.

Game compatibility has been somewhat varied, but those that do run seem to do well on the Pi 3 even when rendered at 2x or 3x PSP native resolution. Just don't go crazy with texture upscaling.