Qt Mobility 1.1.0 installation help



  • Ok guys. Here what i did now.
    I completely format my PC. I reinstall windows 7. Then Download Qt SDK from this "link":http://qt.nokia.com/downloads/
    Then I install Qt SDK in C:Qt2010.05 folder.
    Then I download Qt Mobility 1.1.0 from this "link":ftp://ftp.qt.nokia.com/qt/solutions/qt-mobility-opensource-src-1.1.0-tp.zip
    Then I extracted zip file at C:QtMobility.
    Then turn on the command line by “start>type cmd in run and press enter”.
    Then I navigate to c:QtMobility
    Then I follow instructions on this "link":http://doc.qt.nokia.com/qtmobility-1.1.0-beta/installation.html
    Then I opened Qt Command prompt.
    here is how I get to QtMobility folder in this command pormpt
    !http://img697.imageshack.us/i/capture2xt.jpg/()!

    and here are the outputs of configure commands

    !http://img233.imageshack.us/i/capture5ur.jpg/()!

    !http://img547.imageshack.us/i/capture6h.jpg/()!

    !http://img12.imageshack.us/i/capture7zp.jpg/()!

    !http://img63.imageshack.us/i/capture8m.jpg/()!

    !http://img828.imageshack.us/i/capture9md.jpg/()!

    and these are the output images after running mingw32-make

    !http://img213.imageshack.us/i/capture3oa.jpg/()!

    !http://img227.imageshack.us/i/capture4e.jpg/()!

    Now When i run this program
    @
    import Qt 4.7
    import QtMultimediaKit 1.1

    Video {
    id: video
    width : 800
    height : 600
    source: "video.avi"

    MouseArea {
        anchors.fill: parent
        onClicked: {
            video.play()
        }
    }
    
    focus: true
    Keys.onSpacePressed: video.paused = !video.paused
    Keys.onLeftPressed: video.position -= 5000
    Keys.onRightPressed: video.position += 5000
    

    }
    @

    it displays this error
    @
    file:///C:/Qt/examples/qml/untitled1/untitled1.qml:2:1: module "QtMultimediaKit" is not installed
    import QtMultimediaKit 1.1

     ^ 
    

    @

    How can I fix this? Help...



  • Have you tried installing ActivePerl? or if you have it installed, have you tried editing the environment settings to appropriate perl and qt paths?

    Or try using Qt Command Prompt which comes with the Qt SDK.



  • Can you please guide me how can i set up environment settings according to information i provide above?



  • Can you just try to open Qt Command Prompt from the start menu and try entering the commands you tried on a normal command prompt first, because I don't know exactly where your problem is, but first let's try that.



  • I have tried Qt Command Prompt. All those images that I provided are the output of that Qt Command Prompt.

    I was trying to give the whole output i got but forum was not allowing me to enter more than 6000 words. :(



  • I think Qt Multimedia API is not correctly installed in your PC.

    Do you have this path in your PC ?
    C:\NokiaQtSDK\Simulator\QtMobility\mingw\include\QtMultimediaKit

    Check this.



  • After following all those steps to install QtMobility I got a C:\QtMobility folder. I checked QtMultimediaKit in this location

    C:\QtMobility\include\

    and it is present there.

    And i did not install QtNokiaSDK, I installed Qt SDK as i mentioned above.

    [quote author="qtrahul" date="1293460553"]I think Qt Multimedia API is not correctly installed in your PC.

    Do you have this path in your PC ?
    C:\NokiaQtSDK\Simulator\QtMobility\mingw\include\QtMultimediaKit

    Check this.[/quote]



  • and i set my path variable to this

    c:\QtMobility\lib

    it is correct??



  • Even i got stucked with this sometimes back .Just do the following Steps while installing QTMobility 1.1
    configure -prefix c:\QtMobility
    mingw32-make
    make install (u forgot this step)
    add C:\QtMobility\lib to the Path variable



  • i did this step like this

    mingw32-make install



  • I just installed 4.7.1 and qtMobility 1.1 with the above mentioned steps ,multimedia started working... Some issue with QT SDK i guess (even i had similar issue)



  • ok can you please tell me how can i install 4.7.1? I think it will work with 4.7.1.



  • Here is the link...
    http://qt.nokia.com/downloads/windows-cpp

    just install it :)



  • ok I am still having problems in installing QtMobility 1.1.0. Here is the "link":http://rapidshare.com/files/440103701/installing-qtmobility.avi
    for a video in which i install QtMobility 1.1.0. Please watch it and tell me where am I making mistake. Or where are the errors and how can i solve it.

    And here is the "link":http://rapidshare.com/files/440105414/afterInstalling.avi of a video after installing QtMobility 1.1.0 and testing it in QtCreator

    Help...



  • When installing on a mac, I had these errors:

    @ld: warning: directory '/Developer/Applications/Qt/plugins/Library/Frameworks' following -L not found
    ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found
    ld: warning: directory '/Developer/Applications/Qt/plugins/Library/Frameworks' following -F not found
    ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -F not found
    Undefined symbols for architecture x86_64:
    "QtMobility::QBluetoothServiceDiscoveryAgent::QBluetoothServiceDiscoveryAgent(QObject*)", referenced from:
    Discoverer::serviceDiscovery() in servicediscovery.o
    "QtMobility::QBluetoothServiceDiscoveryAgent::start(QtMobility::QBluetoothServiceDiscoveryAgent::DiscoveryMode)", referenced from:
    Discoverer::serviceDiscovery() in servicediscovery.o
    "QtMobility::QBluetoothDeviceDiscoveryAgent::QBluetoothDeviceDiscoveryAgent(QObject*)", referenced from:
    Discoverer::deviceDiscovery() in devicediscovery.o
    "QtMobility::QBluetoothDeviceDiscoveryAgent::start()", referenced from:
    Discoverer::deviceDiscovery() in devicediscovery.o
    ld: symbol(s) not found for architecture x86_64
    collect2: ld returned 1 exit status
    ld: warning: directory '/Developer/Applications/Qt/plugins/Library/Frameworks' following -L not found
    ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found
    ld: warning: directory '/Developer/Applications/Qt/plugins/Library/Frameworks' following -F not found
    ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -F not found
    Undefined symbols for architecture i386:
    "QtMobility::QBluetoothServiceDiscoveryAgent::QBluetoothServiceDiscoveryAgent(QObject*)", referenced from:
    Discoverer::serviceDiscovery() in servicediscovery.o
    "QtMobility::QBluetoothServiceDiscoveryAgent::start(QtMobility::QBluetoothServiceDiscoveryAgent::DiscoveryMode)", referenced from:
    Discoverer::serviceDiscovery() in servicediscovery.o
    "QtMobility::QBluetoothDeviceDiscoveryAgent::QBluetoothDeviceDiscoveryAgent(QObject*)", referenced from:
    Discoverer::deviceDiscovery() in devicediscovery.o
    "QtMobility::QBluetoothDeviceDiscoveryAgent::start()", referenced from:
    Discoverer::deviceDiscovery() in devicediscovery.o
    ld: symbol(s) not found for architecture i386
    collect2: ld returned 1 exit status
    lipo: can't open input file: /var/folders/ni/nicf53WVEO4Xcp5huoo1cU+++TI/-Tmp-//ccvqsLTH.out (No such file or directory)
    make[3]: *** [../../../../bin/connectivity.app/Contents/MacOS/connectivity] Error 1
    make[2]: *** [sub-connectivity-make_default] Error 2
    make[1]: *** [sub-src-snippets-make_default] Error 2
    make: *** [sub-doc-make_default-ordered] Error 2
    @



  • I am using windows 7.

    How did you solve this problem then?



  • It would seem really beneficial to me for someone to make an installer for Qt Mobility. Is this feasible?



  • hi there,
    well I think it is not the best way to solve this, but for me simple copy of

    @<path_to>\QtSDK112\Simulator\Qt\mingw\imports\QtMultimediaKit@

    into

    @<path_to>\c:\temp\Qt\4.7.1\imports@
    worked.

    After that application output says:

    @QDeclarativeImports(qrc:/qml/QML/VideoPlayback.qml)::addImport: "QtMultimediaKit" 1.1 Library as ""
    QDeclarativeImports(qrc:/qml/QML/VideoPlayback.qml::importExtension: loaded "C:/temp/Qt/4.7.1/imports/QtMultimediaKit/qmldir"
    QDeclarativeImportDatabase::importPlugin: "QtMultimediaKit" from "C:/temp/Qt/4.7.1/imports/QtMultimediaKit/declarative_multimedia.dll"@

    cheers
    simon:)



  • Hi,

    I am facing similar issue "module "QtMultimediaKit" is not installed " on Centos Linux. I have my libs ,imports and plugins in /usr/local/lib on my embedded target


    I have the following env variables set

    export QT_PLUGIN_PATH="/usr/local/lib/plugins"
    export QML_IMPORT_PATH="/usr/local/lib/imports"

    In Imports Folder, i have the following

    ls /usr/local/lib/imports

    QtMultimediaKit

    ls /usr/local/lib/imports/QtMultimediaKit/

    libdeclarative_multimedia.so qmldir

    ls /usr/local/lib/plugins/

    accessible imageformats playlistformats webkit
    bearer kbddrivers qmltooling
    gfxdrivers mediaservice script
    iconengines mousedrivers sqldrivers


    I tried with the following qml


    import Qt 4.7
    import QtMultimediaKit 1.1
    Rectangle {
    id: page
    width: 300; height:200
    color: "lightgray"

     Text {
         id: helloText
         text: "Hello world!"
         y: 30
         anchors.horizontalCenter: page.horizontalCenter
         font.pointSize: 10; font.bold: true
     }
    

    Audio {
    id: playMusic
    source: "audio.wav"
    }
    MouseArea {
    id: playArea
    anchors.fill: parent
    onPressed: { playMusic.play() }
    }
    }


    In the PRO file , I have the following

    QT += declarative multimedia
    +CONFIG += mobility
    +MOBILITY = multimedia


    Inspite all these changes I am seeing the issue "module "QtMultimediaKit" is not installed".

    QT - v4.7.4
    Mobility - v1.2

    Can Anyone help me what has gone wrong ?



  • @srav219: Did you find your solution? I am having the same problem as you. It works when I run on my Ubuntu desktop, but it does not run on my embedded target device (Angstrom). I can build (cross compile) it just find on my host machine, but running on the target does not work. Please help! Thanks,


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.