View Single Post
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#30
Seems ppsspp can't be compiled with gcc-4.2. It uses "-std=c++0x" / "-std=c++11", e.g. code uses 'auto iter' which is introduced in gcc-4.4.

---
So using gcc-4.7.
1) Compile (or package) cmake (2.8.9) inside scrathbox. Install.

2) Fetch code for ppsspp (seems this can't be done inside sb)
Code:
git clone  https://github.com/hrydgard/ppsspp.git
cd ppsspp
git submodule update --init
3) patch
file: Common/Log.h
Code:
#if !defined(_WIN32) && !defined(PANDORA)
+//ucontext.h will be then skipped 
+#define _SYS_UCONTEXT_H 1
#include <signal.h>
#endif
(Reason: some files includes <signal.h> (currently first time is Common/Log.h). Signal.h includes /usr/include/sys/ucontext.h which uses names R0...R10 (registers) which then clashes with names in Common/ArmEmitter.h.
This hack/patch skips loading of sys/ucontext.h (and we seriously hope nothing else will not broke) [https://github.com/hrydgard/ppsspp/issues/347])

4) compile (inside sb)
Code:
mkdir build
cd build
cmake .. -DARM:boolean=ON -DX86:boolean=OFF -DUSING_GLES2:boolean=ON -DHEADLESS:boolean=OFF
make
5) copy to the device
file: build/PPSSPPSDL
directory: build/assets/

I have compiled version git-eb97a3bd15e021789f81bfe5c3eb3be1bb5b7e90 (but haven't tested to run it at all).
 

The Following User Says Thank You to AapoRantalainen For This Useful Post: