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]Cant Use QtMultimediakit 1.1 :(

[SOLVED]Cant Use QtMultimediakit 1.1 :(

Scheduled Pinned Locked Moved QML and Qt Quick
9 Posts 5 Posters 5.4k 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.
  • L Offline
    L Offline
    lexan
    wrote on last edited by
    #1

    hi Im trying to incorporate sounds on my game but there is an error

    plugin cannot be loaded for module "QtMultimediaKit": Cannot load library C:/QtSDK/Simulator/Qt/mingw/imports/QtMultimediaKit/declarative_multimediad.dll: The specified module could not be found.
    import QtMultimediaKit 1.1
    ^

    how would i fix this? please help me..

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2

      You need build the mingw version on Desktop of Qt Mobility.

      1. Download the Qt Mobility source package, upzip
      2. configure
      3. make/make install

      If you just want to use multimedia, you can type
      @configure -modules "multimedia"@
      when configure step

      Chuck

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cmer4
        wrote on last edited by
        #3

        With the Windows version of Qt SDK 1.1.2 I run Multimedia Kit as follows:

        1. Make sure your project file has:
          @CONFIG += mobility
          MOBILITY += multimedia@

        2. Add the kit itself in your qml file:
          @import QtMultimediaKit 1.1@

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lexan
          wrote on last edited by
          #4

          where would i put the

          CONFIG += mobility
          MOBILITY += multimedia??

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nhojyer07
            wrote on last edited by
            #5

            I'm having the same problem with lexan here.

            @CONFIG += mobility
            MOBILITY += multimedia@

            can be found in the PRO file. You'll find a commented

            @CONFIG +=
            MOBILITY += @

            there. Just add mobility and multimedia after those.

            What I don't understand yet is the building procedure. If I'm using the default installation of Qt SDK (C:\QtSDK), where should we unzip the package? What I did was unzip the package in c:\QtMobility. I ran the configure exe but I'm not sure what path to put after -prefix.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lexan
              wrote on last edited by
              #6

              i can now include sounds on my qml file.. but why is it that every time i click it i only hear a POPping sound instead of the sound i expected??

              *im using an angry birds sound fx

              1 Reply Last reply
              0
              • N Offline
                N Offline
                nhojyer07
                wrote on last edited by
                #7

                lexan, how did you do that, if it's ok with you to share it.

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  lexan
                  wrote on last edited by
                  #8

                  i just uncommented the line

                  @CONFIG +=mobility
                  MOBILITY +=multimedia@

                  and import
                  @import QtMultimediaKit 1.1@

                  and add my codes

                  @SoundEffects{
                  id:effects
                  source:""your sound"
                  }
                  @

                  and triggered on a mouse event

                  @
                  MouseArea{
                  onClicked:effects.play();
                  }@

                  1 Reply Last reply
                  0
                  • Z Offline
                    Z Offline
                    zanes
                    wrote on last edited by
                    #9

                    a small correction in the above post. may be a typo :)

                    its not SoundEffects its SoundEffect

                    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