maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [ANNOUNCE] Qt Mobility 1.1 for Fremantle (https://talk.maemo.org/showthread.php?t=67588)

Jaffa 2011-03-05 12:11

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Quote:

Originally Posted by attila77 (Post 924993)
libqtm-11 1.1.0-0fn~fremantle7 should have proper(er) import paths. It's still a hack, tho, track http://bugreports.qt.nokia.com/browse/QTMOBILITY-949 if it still causes you pain.

For now, you might need to do something like viewer.engine()->addImportPath(QString("/opt/qtm11/imports"));

I can't get my Qt Mobility working application to work on an actual N900. I've:
  1. Created a blank Qt Quick application in the latest Qt SDK
  2. Uncommented the lines about mobility in the .pro file
  3. Added import QtMobility.sensors 1.1 at the top of my script
  4. Added an Accelerometer component
  5. Run apt-get install libqtm-11-declarative

This works in the simulator, and everything's works as I rotate the screen. So I deployed on to my N900 and I get "module "QtMobility.sensors" is not installed".

I've tried adding the line above to my main.cpp:

Code:

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QmlApplicationViewer viewer;
    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
    viewer.engine()->addImportPath(QString("/opt/qtm11/imports"));
    viewer.setMainQmlFile(QLatin1String("qml/attitude/main.qml"));
    viewer.showExpanded();

    return app.exec();
}

But now it doesn't compile: invalid use of incomplete type 'struct QDeclarativeEngine'.

Any ideas?

thp 2011-03-05 12:29

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Did you..

Code:

#include <QtDeclarative>

vivainio 2011-03-05 12:37

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Quote:

Originally Posted by Jaffa (Post 961143)
But now it doesn't compile: invalid use of incomplete type 'struct QDeclarativeEngine'.

Any ideas?

#include <QDeclarativeEngine>

In Qt Creator, the fact that you don't get autocompletions is a good hint you need to include the header for that class.

Jaffa 2011-03-05 13:02

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Thanks to Ville, Arek & Thomas, it was indeed missing:

Code:

#include <QtDeclarative>
What is the effect of having the setImports line on Symbian? Or MeeGo? Will it error or be ignored?

attila77 2011-03-05 15:46

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
You mean addImportPath ? It works as a path, even if you add non-existent paths, no biggie as long as it *does* find the things it's looking for (the function itself is part of Qt, so whether it's Symbian, Maemo, Desktop... doesn't matter). And I do plan on fixing it (as in making it unnecessary), but it depends on upstream.

conny 2011-03-18 16:59

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
There is a bug in Qt Mobility 1.1.1 which prevents audio playback using gstreamer. It occurs on desktop Linux and on Maemo5. The bug is fixed in the 1.1 git branch.

Would it be possible to get that version into Extras-devel? It's even enough to replace plugins/mediaservice/libqgstengine.so. Having no audio playback is (for some apps) a major blocker.

pkliang 2011-04-03 20:39

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
:):):):):):)

marxian 2011-04-03 21:07

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Quote:

Originally Posted by pkliang (Post 981225)
Hi,I couldn't install libqtm-11 on N900 Maemo 5 using apt-get install, can anyone figures out what's wrong?

The command you need is

Code:

apt-get install libqtm-11*

pkliang 2011-04-03 21:16

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Quote:

Originally Posted by marxian (Post 981238)
The command you need is

Code:

apt-get install libqtm-11*

i get it worked, extras-devel wasn't enabled in my repositories,

attila77 2011-04-07 08:15

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Good news everyone, I got 1.1.2 with a few extra Maemo fixes in extras-devel, all interested parties, please try it out !

Note: Since I included the extra Maemo patches I had to go a little ahead of the 1.1.2 tag, so the reported version is actually 1.1.3, but don't let that confuse you, it really is 1.1.2 under the hood.

Quote:

Originally Posted by conny (Post 970449)
There is a bug in Qt Mobility 1.1.1 which prevents audio playback using gstreamer. It occurs on desktop Linux and on Maemo5. The bug is fixed in the 1.1 git branch.

Would it be possible to get that version into Extras-devel? It's even enough to replace plugins/mediaservice/libqgstengine.so. Having no audio playback is (for some apps) a major blocker.

Can you check if the 1.1.2+ I uploaded fixed this ?


All times are GMT. The time now is 00:10.

vBulletin® Version 3.8.8