Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PPSSPP for Pi
#1
Lightbulb 
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?
Reply
#2
Moved to Development.
Reply
#3
What compiler version is this?

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

-[Unknown]
Reply
#4
(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/)
Reply
#5
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
Reply
#6
Hmm, sounds like there's some problem with OpenGL. The device definitely supports GLES2 right?

-[Unknown]
Reply
#7
It supports GLES2 but sounds like it's not configured properly.
Can check `glxinfo`.
Reply
#8
(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
Reply
#9
Well that sucks :\ I guess raspbian screwed up their graphics driver. Can try a different graphics driver, or a different distro.
Reply
#10
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...
Reply
#11
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.
Reply
#12
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
Reply
#13
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.
Reply
#14
(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
Reply
#15
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.
Reply


Forum Jump: