Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED]QML+QtMultimediaKit to play audio on n900
Qt 6.11 is out! See what's new in the release blog

[SOLVED]QML+QtMultimediaKit to play audio on n900

Scheduled Pinned Locked Moved QML and Qt Quick
14 Posts 3 Posters 11.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jkosonen
    wrote on last edited by
    #5

    What type is that viewer? I can't do like that with
    @
    QDeclarativeView view;
    view.engine()->addImportPath(QString("/opt/qtm11/imports"));@

    it says error: invalid use of incomplete type 'struct QDeclarativeEngine'

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shullw
      wrote on last edited by
      #6

      Well that was to point to the libqtm-11 on n900. If you are getting that error on the N8 it might be possible to do the same maemo5{ view.engine()->addImportPath(QString("/opt/qtm11/imports")); }
      I don't know if that will work or not.

      A QML Purest Point of View!

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jkosonen
        wrote on last edited by
        #7

        I made that installation to my n900, but that's build error, not device error?
        and QDeclarative view doesn't have showExpanded ?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          shullw
          wrote on last edited by
          #8

          Just checking to make sure you have the #include <QtDeclarative> at the top of the .cpp file. If not only have one more idea.

          A QML Purest Point of View!

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jkosonen
            wrote on last edited by
            #9

            Yeah, i missed some include, but now it's saying .qml:3:1: module "QtMultimediaKit" is not installed.. so the apt-get install didn't install all the needed files then :/

            1 Reply Last reply
            0
            • S Offline
              S Offline
              shullw
              wrote on last edited by
              #10

              It is saying that on the n900 or is it saying that when you build in QtCreator?

              A QML Purest Point of View!

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jkosonen
                wrote on last edited by
                #11

                It's saying that in the QtCreator application output window, when it is trying to launch the program in the N900

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  shullw
                  wrote on last edited by
                  #12

                  Try building it in the simulator. If it gives the same error try adding this to your PATH on the computer you have QtCreator installed. C:\QtSDK\Simulator\QtMobility\mingw\lib It is almost like it isn't seeing the libraries in the SDK to build it. If that doesn't work you might have to install QtMobility on your machine outside of the SDK. I had done that but didn't think that is what made the difference. I guess I was totally wrong. If you have to do that google the source code for QtMobility 1.1 and download the source and follow the directions here.

                  http://qt-mobility.blogspot.com/2010/01/installing-qt-mobility-on-windows-7.html

                  I have Vista and it is running fine. It is a very simple process so don't feel overwhelmed.

                  A QML Purest Point of View!

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    srav219
                    wrote on last edited by
                    #13

                    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 ?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      shullw
                      wrote on last edited by
                      #14

                      If you have Mobility 1.2 installed then it is safe to say that you are declaring the wrong version of QtMultidemiaKit. Try

                      @import QtMultimediaKit 1.2@

                      Sometimes it is just the version. Hope that helps.

                      A QML Purest Point of View!

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved