[SOLVED]QML+QtMultimediaKit to play audio on n900
-
Hey, thanks!!
I'll try that out, and report what's happening with N8 also :)
-
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'
-
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. -
I made that installation to my n900, but that's build error, not device error?
and QDeclarative view doesn't have showExpanded ? -
Just checking to make sure you have the #include <QtDeclarative> at the top of the .cpp file. If not only have one more idea.
-
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 :/
-
It is saying that on the n900 or is it saying that when you build in QtCreator?
-
It's saying that in the QtCreator application output window, when it is trying to launch the program in the N900
-
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.
-
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 ? -
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.