Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PPSSPP for nokia n900??
#16
(03-24-2013, 05:53 AM)xsacha Wrote: Only problem is it broke Pandora build.
Hmm, can it be trivially fixed? Or is there some fundamentally wrong?

(03-24-2013, 05:53 AM)xsacha Wrote: And PPSSPP already worked on Maemo.
What do you mean? Are you speaking of Maemo5?

(03-24-2013, 05:53 AM)xsacha Wrote: By the way, audio will work in Qt for Maemo. It is only QSound that doesn't work (which isn't used by PPSSPP).
Ok, but I don't still know how to get it compiled with Qt for Maemo.
Reply
#17
(03-24-2013, 07:17 AM)AapoRantalainen Wrote: Hmm, can it be trivially fixed? Or is there some fundamentally wrong?
Basically the eglConfig's need to be #ifdef'd cause they work differently on Pandora.
(03-24-2013, 07:17 AM)AapoRantalainen Wrote: What do you mean? Are you speaking of Maemo5?
Yes, Maemo 5. It is able to use the Qt build. There are no known blockers. I guess Maemo 5 users seem anti-Qt though. Prefer running SDL builds even though they aren't as optimised. I see that trend with most emulators/games. In that case, just fix the eglConfig.
The aim is to have only Qt builds in future though because it solves a lot of issues (like shared code, native UI and localisation).
Reply
#18
(03-24-2013, 10:41 PM)xsacha Wrote: Yes, Maemo 5. It is able to use the Qt build. There are no known blockers. I guess Maemo 5 users seem anti-Qt though. Prefer running SDL builds even though they aren't as optimised. I see that trend with most emulators/games. In that case, just fix the eglConfig.
The aim is to have only Qt builds in future though because it solves a lot of issues (like shared code, native UI and localisation).

Hi, I think Maemo5 community is not against QT (and qmake).

Point is that currently (1.Jan.2014) git head can be easily compiled with:
Code:
cd build ; cmake .. -DMAEMO:boolean=ON ; make

I understand very well reason to use only one build system.

Can you help how to start with qmake for Maemo5?

Trivial
Code:
cd Qt qmake PPSSPPQt.pro make

will end
Code:
/usr/include/QtOpenGL/qgl.h:74:17: error: conflicting declaration 'typedef GLfloat GLdouble' In file included from ../native/gfx/gl_common.h:26:0, from ../native/gfx_es2/draw_text.cpp:3: ../native/ext/glew/GL/glew.h:287:16: error: 'GLdouble' has a previous declaration as 'typedef double GLdouble'
Which seems there are some very basic step missing.

Maemo5 has
Code:
QMake version 2.01a Using Qt version 4.7.4 in /usr/lib
Reply
#19
The problem appears to be that it is compiling as x86 instead of ARM. I will add an exception for Maemo (like I did for Meego) to fix that.
Reply
#20
(01-01-2014, 11:03 PM)xsacha Wrote: The problem appears to be that it is compiling as x86 instead of ARM. I will add an exception for Maemo (like I did for Meego) to fix that.
Thanks. I got little further. And I was able to add this:
Code:
index 46d61b1..8d2de3a 100644 --- a/Qt/Settings.pri +++ b/Qt/Settings.pri @@ -51,7 +51,7 @@ else { # Assume ARM gleslib = $$lower($$QMAKE_LIBS_OPENGL) gleslib = $$find(gleslib, "gles") maemo|!count(gleslib,0) { - DEFINES += USING_GLES2 + DEFINES += USING_GLES2 MAEMO }
Compiling with cmake, there are even more defines (should they be used also?):
Code:
-DPPSSPP -DMAEMO -DARM -DUSING_GLES2 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64


Make then ended with:
Code:
../native/base/QtMain.cpp: In function 'int main(int, char**)': ../native/base/QtMain.cpp:104:29: error: 'AA_X11InitThreads' is not a member of 'Qt'

I already tested to just comment it out and then next error will be:
Code:
cannot find -lQtSensors
Reply
#21
OK. Thanks. So it seems X11 threads doesn't work even though maemo uses X11. A few things to fix up there.
Reply
#22
(01-04-2014, 11:43 PM)xsacha Wrote: OK. Thanks. So it seems X11 threads doesn't work even though maemo uses X11. A few things to fix up there.

git pull and couple more fixes:
Code:
index 08dfab0..13ea21b 100644 --- a/base/QtMain.h +++ b/base/QtMain.h @@ -45,7 +45,7 @@ public: #if QT_VERSION < 0x50000 setAttribute(Qt::WA_LockLandscapeOrientation); #endif -#ifdef USING_GLES2 +#if defined(USING_GLES2) && !defined(MAEMO) acc = new QAccelerometer(this); acc->start(); #endif @@ -54,7 +54,7 @@ public: startTimer(16); } ~MainUI() { -#ifdef USING_GLES2 +#if defined(USING_GLES2) && !defined(MAEMO) delete acc; #endif NativeShutdownGraphics();

I got it compiled and running.
Reply


Forum Jump: