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)

attila77 2010-12-29 10:12

[ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
... and a happy new year !

We have kickstarted a community 'compatibility program' with a little Forum Nokia help which will focus on bringing the latest Qt and related tech tools/fixes/updates to developers, without having to worry about Nokia release schedules and support status. The first component that is released as part of this effort is QtMobility 1.1 (as 1.0.2 is getting long in the tooth), currently available as libqtm-11-* in extras-devel. If/when a SSU is released with 1.1 as the official, these libraries will be replaced with placeholders that point to those 1.1 libs. The bleeding edge can always be attained with libqtm-experimental which will permanently remain in extras-devel (after we test 1.1 this will switch to 1.2, etc)

Install howto: http://wiki.forum.nokia.com/index.ph...ation_on_Maemo

Enjoy (and provide feedback/patches !)

EDIT: To use these packages you need do to CONFIG += mobility11 in your .pro file instead of just 'mobility' (as mobility will reference always the official one from the firmware).

dbrodie 2010-12-29 10:39

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Thats great, thanks alot!
What other packages of Qt are you working on? can we expect an updated qml or pyside?

attila77 2010-12-29 11:03

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

Originally Posted by dbrodie (Post 906608)
Thats great, thanks alot!
What other packages of Qt are you working on? can we expect an updated qml or pyside?

mairas and his team is working on PySide and I do expect them to have their own releases in the future just as they did in the past. We will integrate packages like the bearer hotfix or the qtquick compatibility one (these will probably, along with mobility, form the base of the first edition of the community service pack), and likely Qt4.8 when it accumulates enough features/stability to be interesting to people.

hqh 2010-12-29 11:19

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Nice job, it's good to know that someone is working on bringing the latest Qt fixes and features to Maemo :)

I guess something like
Code:

maemo5 {
        CONFIG += mobility11
} else {
        CONFIG += mobility
}

has to be used with these in the project file?

attila77 2010-12-29 11:27

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

Originally Posted by hqh (Post 906628)
Nice job, it's good to know that someone is working on bringing the latest Qt fixes and features to Maemo :)

I guess something like
Code:

maemo5 {
        CONFIG += mobility11
} else {
        CONFIG += mobility
}

has to be used with these in the project file?

Oops, yes, forgot to mention that - one of the key aspects of this is to make it non-destructive with regard to the original firmware and packages that might be upgraded via the SSU, so yes, you need to use the proper CONFIG keyword - mobility11 as you said.

dbrodie 2010-12-30 00:05

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Wow that was quick, new version of pyside is in!

Venemo 2010-12-30 00:27

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

Originally Posted by attila77 (Post 906633)
Oops, yes, forgot to mention that - one of the key aspects of this is to make it non-destructive with regard to the original firmware and packages that might be upgraded via the SSU, so yes, you need to use the proper CONFIG keyword - mobility11 as you said.

This sounds annoying, seriously.

attila77 2010-12-30 08:20

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

Originally Posted by Venemo (Post 907123)
This sounds annoying, seriously.

I think one line in your .pro file is a small price to pay for being able to develop for two versions (=future-proof SSU-wise and Extras/Ovi compatible). If someone has a better solution that keeps those goals and requires no .pro changes - I'm all ears :)

hqh 2010-12-30 09:38

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
What still seems to be missing are the mobility QML plugins (which are packaged in libdeclarative-* in the "original" version).
They seem to be there after all, maybe my problem is somewhere else...

Update: Qt seems to load some mobility stuff from the old libraries if both are installed. Will report more information next week if required :)

jaem 2011-01-02 23:06

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Excellent! This just made my day. My thanks to everyone who made this happen. :)

attila77 2011-01-03 00:19

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

Originally Posted by hqh (Post 907358)
What still seems to be missing are the mobility QML plugins (which are packaged in libdeclarative-* in the "original" version).
They seem to be there after all, maybe my problem is somewhere else...

Update: Qt seems to load some mobility stuff from the old libraries if both are installed. Will report more information next week if required :)

There is some path munching going on (apparently mobility does not honor the specified prefix and has no option of setting it manually), I'll try and work around it in the .pri file and/or get a patch from the mobility guys if it's a real bug.

attila77 2011-01-04 10:29

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Upped a new version (libqtm-11 1.1.0-0fn~fremantle6) that fixes the problem of a few missing dependencies (i.e. this one has the maemo5 contacts/addressbook module, ICD and photography). Paths still kooky, but starting to look better.

hqh 2011-01-14 14:49

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

Originally Posted by attila77 (Post 911351)
Upped a new version (libqtm-11 1.1.0-0fn~fremantle6) that fixes the problem of a few missing dependencies (i.e. this one has the maemo5 contacts/addressbook module, ICD and photography). Paths still kooky, but starting to look better.

This version seems to have some trouble under /opt/qtm11/imports. The files under each import directory (like for example QtMultimediaKit) are in extra subdirectories preventing the import from loading.

attila77 2011-01-20 22:00

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
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"));

attila77 2011-02-08 15:07

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
A few more plugins added to the pack (libqtorganizer_maemo5.so, etc) in the latest update (...fremantle11).

lardman 2011-02-18 17:56

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
I'm also getting problems with include files being mixed if I have both qtm 1.0 and 1.2 installed.

Thanks for packaging these up mind you :)

attila77 2011-02-19 19:25

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

Originally Posted by lardman (Post 949918)
I'm also getting problems with include files being mixed if I have both qtm 1.0 and 1.2 installed.

Thanks for packaging these up mind you :)

Soo... what problems exactly are talking about here ? BTW this is the *1.1* thread :)

attila77 2011-02-19 22:17

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Aha, I think I see the issue - but not sure if I can solve it easily - I cannot remove the original include path as that is also the base path for Qt includes. I could play with directory ordering in the includepath, but that's by no means a robust solution... for now I'd recommend to just avoid parallel installs of mobility headers.

attila77 2011-03-01 21:21

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Good news, everyone !

Quote:

Qt Mobility 1.1.1 released

Posted by Minjung Shin on March 1, 2011 · 2 comments

We are happy to announce our Qt Mobility 1.1.1 release. This release is a maintenance release which includes a lot of bug fixes and improved QML bindings and performance especially for the Symbian platform. We have also enhanced the documentation and auto tests.

Qt Mobility 1.1.1 is also included in the Qt SDK 1.1 Beta release.

Packages are available from http://qt.nokia.com/products/qt-addons/mobility.

Here are some of the high priority bugs fixed in this release.

* Multimedia: Video graphics item causes a Symbian device to reboot
* Multimedia: QMediaPlayer does not play an MP4 file if header is after the encoded data block
* Multimedia: Memory leaks on Symbian
* System Information: Symbian devices crashes when 32 char long WLAN access point name is used
* Contacts: QML contacts model is not updated when a contact is deleted
* Organizer: Opening a file dialog in calendar demo cause crashes on Symbian devices
* Organizer: QML organizer item does not respect the detail changes
* Messaging: QMessageManager::updateMessage() crashes on Symbian
* Location: QLandmarkFetchRequest::waitForFinished() causes a crash on Symbian
* Service Framework: Memory leaks on Symbian
* Document Gallery: Mediabrowser displays 0 songs on Symbian
* And hundreds more bug fixes

As always, thank you for your feedback, bug reports and fixes so far and we look forward to hearing more from you.

* Qt Bug Tracker: http://bugreports.qt.nokia.com
* Code/Doc contributions: http://qt.gitorious.org
* Mailing list: http://lists.qt.nokia.com/mailman/li...ility-feedback
Also available from Extras-devel for Fremantle (with a few maemo-specific fixes like pulseaudio support) in a couple of minutes, woo !

attila77 2011-03-04 01:30

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

Originally Posted by attila77 (Post 950720)
Aha, I think I see the issue - but not sure if I can solve it easily - I cannot remove the original include path as that is also the base path for Qt includes. I could play with directory ordering in the includepath, but that's by no means a robust solution... for now I'd recommend to just avoid parallel installs of mobility headers.

The latest 1.1.1 (...fremantle6) packages should have this resolved, they should include & link properly even if you have the 1.0.2 -dev package (even with the Qt SDK), please check and report back.

EDIT: Sorry, ...fremantle6 I meant

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 ?

conny 2011-04-07 08:30

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

Originally Posted by attila77 (Post 983469)
Can you check if the 1.1.2+ I uploaded fixed this ?

Yes, it works. Thank you :)

conny 2011-04-21 10:52

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Is it normal that I have to add /opt/qtm11/lib to LD_LIBRARY_PATH manually?

I thought I only have to do that on my broken installation, but now I did a re-flash and I still have to do that.

EDIT: It looks like my app is trying to use the old qtm version in /usr/lib

attila77 2011-04-25 13:45

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Are you compiling/deploying locally or is this about apps in Extras ? If local, make sure you have the latest libqtm-11 xdpkgd in MADDE as that's where the lib paths get determined.

conny 2011-04-25 13:50

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
I'm compiling using scratchbox, so probably I'll need to update libqtm-11 there. I'll give it a try. Thanks for the hint!

conny 2011-04-25 14:12

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Thanks again atilla! It's now working fine!

attila77 2011-05-16 20:37

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Good news everyone (again :) ! Since I was playing around with QtMobility I thought I'd update it to an official 1.1.3 (now that we have a tag for it on gitorious ;). As point releases go, this is mainly a bugfix release, the goodies mostly happen in the 1.2 thread, where also good news is expected.

rlinfati 2011-06-24 22:39

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
the libqtm-11 is installable from extras-testing ? (without extras devel)

attila77 2011-06-27 19:47

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
libqtm-11 is actually in extras already (and will be followed by libqtm-12 shortly)

rlinfati 2011-06-27 21:10

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

Nokia-N900:~# apt-get install libqtm-11
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libqtm-11: Depends: libqtm-11-declarative (= 1:1.1.2-0fn~fremantle0) but it is not going to be installed
            Depends: libqtm-11-versit (= 1:1.1.2-0fn~fremantle0) but it is not going to be installed
E: Broken packages
Nokia-N900:~# apt-cache policy libqtm-11
libqtm-11:
  Installed: (none)
  Candidate: 1:1.1.2-0fn~fremantle0
  Version table:
    1:1.1.2-0fn~fremantle0 0
        500 http://repository.maemo.org fremantle-1.3/free Packages
        500 http://repository.maemo.org fremantle/free Packages


attila77 2011-11-05 01:19

Re: [ANNOUNCE] Qt Mobility 1.1 for Fremantle
 
Just a heads-up - I'm discontinuing/deprecating libqtm-11-* packages . They are outdated, not maintained upstream, and 1.2 had a stable release in the meantime. Fear not - this does not mean that you have to go back to mobility 1.0.2, just that I'll focus on the libqtm-12 packages, for which we can actually submit bugs and get something done. If you have anything that worked in 1.1.x but doesn't on 1.2, please go to the Mobility 1.2 thread so we could get it fixed.


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

vBulletin® Version 3.8.8