[SOLVED]Cant Use QtMultimediakit 1.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..
-
You need build the mingw version on Desktop of Qt Mobility.
- Download the Qt Mobility source package, upzip
- configure
- make/make install
If you just want to use multimedia, you can type
@configure -modules "multimedia"@
when configure step -
With the Windows version of Qt SDK 1.1.2 I run Multimedia Kit as follows:
-
Make sure your project file has:
@CONFIG += mobility
MOBILITY += multimedia@ -
Add the kit itself in your qml file:
@import QtMultimediaKit 1.1@
-
-
where would i put the
CONFIG += mobility
MOBILITY += multimedia?? -
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.
-
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
-
lexan, how did you do that, if it's ok with you to share it.
-
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();
}@ -
a small correction in the above post. may be a typo :)
its not SoundEffects its SoundEffect