Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [ANNOUNCE] Qt Mobility 1.1 for Fremantle

    Reply
    Page 3 of 5 | Prev |   1     2   3   4     5   | Next
    Jaffa | # 21 | 2011-03-05, 12:11 | Report

    Originally Posted by attila77 View Post
    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    thp | # 22 | 2011-03-05, 12:29 | Report

    Did you..

    Code:
    #include <QtDeclarative>

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to thp For This Useful Post:
    Jaffa, mr id

     
    vivainio | # 23 | 2011-03-05, 12:37 | Report

    Originally Posted by Jaffa View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to vivainio For This Useful Post:
    Jaffa, mr id

     
    Jaffa | # 24 | 2011-03-05, 13:02 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    attila77 | # 25 | 2011-03-05, 15:46 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to attila77 For This Useful Post:
    Jaffa

     
    conny | # 26 | 2011-03-18, 16:59 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pkliang | # 27 | 2011-04-03, 20:39 | Report


    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by pkliang; 2011-04-03 at 21:15.

     
    marxian | # 28 | 2011-04-03, 21:07 | Report

    Originally Posted by pkliang View Post
    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*

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to marxian For This Useful Post:
    shawwawa

     
    pkliang | # 29 | 2011-04-03, 21:16 | Report

    Originally Posted by marxian View Post
    The command you need is

    Code:
    apt-get install libqtm-11*
    i get it worked, extras-devel wasn't enabled in my repositories,

    Edit | Forward | Quote | Quick Reply | Thanks

     
    attila77 | # 30 | 2011-04-07, 08:15 | Report

    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.

    Originally Posted by conny View Post
    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 ?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to attila77 For This Useful Post:
    shawwawa

     
    Page 3 of 5 | Prev |   1     2   3   4     5   | Next
vBulletin® Version 3.8.8
Normal Logout