maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Testing for maemo in QMake (https://talk.maemo.org/showthread.php?t=59688)

Boberfly 2010-08-03 12:25

Testing for maemo in QMake
 
Hi all,

I'm trying to work out how to test for "maemo" in qmake. I can test for unix but what if I want to compile for desktop linux? eg.
Code:

maemo {
    #add stuff here
}

Doesn't seem to work for me. I am guessing I should test for unix, but what if I want specifically maemo so I can do stuff like add in source/header files for EGL & OpenGL ES 2.0 instead of GLX & regular OpenGL?

Thanks! I tried searching various documentations but I couldn't find a straight answer.

uvatbc 2010-08-03 14:42

Re: Testing for maemo in QMake
 
Code:

maemo5 {
message("Maemo5 your world")
}

Works to distinguish the n900.

Boberfly 2010-08-04 05:40

Re: Testing for maemo in QMake
 
Thanks, but I wish I knew where this secret information is located. I can find Qt documentation & qtcreator stuff but the mobile-specific or MADDE integration is a bit elusive or spotty or there's just that one wiki article where it shows how to get the two to talk together and that's about it.

uvatbc 2010-08-04 06:59

Re: Testing for maemo in QMake
 
Quote:

Originally Posted by Boberfly (Post 775048)
Thanks, but I wish I knew where this secret information is located. I can find Qt documentation & qtcreator stuff but the mobile-specific or MADDE integration is a bit elusive or spotty or there's just that one wiki article where it shows how to get the two to talk together and that's about it.

I started here and here and as I read the examples, I saw
Code:

QT += maemo5
As a wild guess, I tried maemo5 as a platform differentiator and it worked.
Sorry I don't really have a pointer to exactly where you'd find this maemo/symbian specific qmake info.

If you look at the pro file that I have in my app, you'll see way too many hacks. Maybe thats the best way to learn: Someone else's code ;)

TNiga 2010-08-04 07:09

Re: Testing for maemo in QMake
 
You can find the different platform identifiers from Qt's mkspecs directory (for example C:\Qt\4.6.x\mkspecs).


All times are GMT. The time now is 19:16.

vBulletin® Version 3.8.8