Post Reply 
 
Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PPSSPP for Pi
03-27-2013, 12:15 PM
Post: #1
Lightbulb PPSSPP for Pi
No one has done that before so i tried it.
At first, it all goes fine. I changed target to ARM(-DARM=ON), installed every package that may needed by the compilation. However, after few minutes, it stopped.

[ 52%] Built target GPU
[ 52%] Building CXX object CMakeFiles/Core.dir/Core/MIPS/ARM/ArmAsm.cpp.o
/home/pi/Desktop/ppsspp-master/Core/MIPS/ARM/ArmAsm.cpp: In member function ‘void MIPSComp::Jit::GenerateFixedCode()’:
/home/pi/Desktop/ppsspp-master/Core/MIPS/ARM/ArmAsm.cpp:158:38: error: expected primary-expression before ‘,’ token
/home/pi/Desktop/ppsspp-master/Core/MIPS/ARM/ArmAsm.cpp:158:40: error: ‘pc’ was not declared in this scope
/home/pi/Desktop/ppsspp-master/Core/MIPS/ARM/ArmAsm.cpp:158:42: error: ‘offsetof’ was not declared in this scope
make[2]: *** [CMakeFiles/Core.dir/Core/MIPS/ARM/ArmAsm.cpp.o] Error 1
make[1]: *** [CMakeFiles/Core.dir/all] Error 2
make: *** [all] Error 2

Any ideas?
Find all posts by this user
Quote this message in a reply
03-27-2013, 12:17 PM
Post: #2
RE: PPSSPP for Pi
Moved to Development.
Find all posts by this user
Quote this message in a reply
03-27-2013, 01:43 PM
Post: #3
RE: PPSSPP for Pi
What compiler version is this?

Quick Google showed e.g.:
http://code.google.com/p/ttf2eot/issues/detail?id=22

-[Unknown]
Find all posts by this user
Quote this message in a reply
03-27-2013, 02:08 PM (This post was last modified: 03-27-2013 02:44 PM by porkness.)
Post: #4
RE: PPSSPP for Pi
(03-27-2013 01:43 PM)[Unknown] Wrote:  What compiler version is this?

Quick Google showed e.g.:
http://code.google.com/p/ttf2eot/issues/detail?id=22

-[Unknown]

Yes i'm using gcc4.6.3, and this method works for me, thx

EDIT: So the result is:
Put "-DARM=ON" on cmake, and add "#include <cstddef>" to ArmRegCache.cpp, ArmJitCache.cpp, ArmCompVFPU.cpp, ArmCompFPU.cpp, ArmCompBranch.cpp, and ArmAsm.cpp (all of them are in Core/MIPS/ARM/)
Find all posts by this user
Quote this message in a reply
03-28-2013, 04:01 AM
Post: #5
RE: PPSSPP for Pi
Well, it still has some problem...
when i tried to run the emulator, the screen will flash and i got this error
F: /home/pi/Desktop/ppsspp-master/native/gfx_es2/glsl_program.cpp:161: F: Could not link program.
and after that the emulator segfault outSad
Find all posts by this user
Quote this message in a reply
03-28-2013, 04:44 AM
Post: #6
RE: PPSSPP for Pi
Hmm, sounds like there's some problem with OpenGL. The device definitely supports GLES2 right?

-[Unknown]
Find all posts by this user
Quote this message in a reply
03-28-2013, 05:11 AM
Post: #7
RE: PPSSPP for Pi
It supports GLES2 but sounds like it's not configured properly.
Can check `glxinfo`.
Find all posts by this user
Quote this message in a reply
03-28-2013, 09:21 AM (This post was last modified: 03-28-2013 09:42 AM by porkness.)
Post: #8
RE: PPSSPP for Pi
(03-28-2013 05:11 AM)xsacha Wrote:  It supports GLES2 but sounds like it's not configured properly.
Can check `glxinfo`.

Error: couldn't find RGB GLX visual or fbconfig
i'm pretty sure it's the problem about the gpu driver for rpi (at least raspbian) cause some people also encountered the same problem, and till now i still not found an idea how to solve it.Confused
Find all posts by this user
Quote this message in a reply
03-28-2013, 10:20 AM
Post: #9
RE: PPSSPP for Pi
Well that sucks :\ I guess raspbian screwed up their graphics driver. Can try a different graphics driver, or a different distro.
Find all posts by this user
Quote this message in a reply
03-28-2013, 11:56 AM
Post: #10
RE: PPSSPP for Pi
http://www.raspberrypi.org/phpBB3/viewto...66&t=11620
Yeah, actually the X-based drive sucks in some ways, but there is (probably be) a solution...maybe needs a lot of modifications on emulator though...
Find all posts by this user
Quote this message in a reply
03-29-2013, 12:08 AM (This post was last modified: 03-29-2013 12:10 AM by xsacha.)
Post: #11
RE: PPSSPP for Pi
If you need to modify the emulator, there's something wrong with your distro/drivers/compiler.
The code should work fine on Raspberry PI as-is.
PPSSPP works with X and without X.

If having issue with the SDL code, you can try the Qt code as well.
Find all posts by this user
Quote this message in a reply
04-01-2013, 08:29 AM (This post was last modified: 04-01-2013 09:07 AM by porkness.)
Post: #12
RE: PPSSPP for Pi
I tried to use the OpenGL libraries in /opt/vc (the offical one from pi foundation, some people said the one from raspbian repo. is software-emulated), but it still not work. Sad
it seems the implementation of X on pi is not support gles properly
Find all posts by this user
Quote this message in a reply
04-01-2013, 10:33 AM
Post: #13
RE: PPSSPP for Pi
Well I've seen a lot of GLES2 demos running on Pi and also have seen glxinfo printout with working GLES2. So some people have this working. There's probably a wiki that explains how to set it up properly.
Find all posts by this user
Quote this message in a reply
04-03-2013, 04:44 AM
Post: #14
RE: PPSSPP for Pi
(04-01-2013 10:33 AM)xsacha Wrote:  Well I've seen a lot of GLES2 demos running on Pi and also have seen glxinfo printout with working GLES2. So some people have this working. There's probably a wiki that explains how to set it up properly.

I also saw it on youtube, raspbian with working glxinfo and glxgear, though it seems to be a software render(low fps and high cpu usage), it actually works
Find all posts by this user
Quote this message in a reply
04-03-2013, 05:37 AM
Post: #15
RE: PPSSPP for Pi
The ones I saw were definitely hardware accelerated.
It's like the main selling point of RPi. Other than the beastly GPU, you have a rather weak CPU.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: