QtMultimediaKit compatibility with maemo5 pr1.3
-
Hello I am trying to deploy a simple app on a nokia n900 (freemantle pr1.3) that uses QtMultimediaKit
main.qml
@
import Qt 4.7
import QtMultimediaKit 1.1Rectangle {
id:cameraui
width: 1280
height: 720
color: "black"
state: "PhotoCapture"
PhotoPreview {
id:photoPreview
anchors.fill : parent
onClosed: cameraUI.state = "PhotoCapture"
focus: visibleKeys.onPressed : { //return to capture mode if the shutter button is touched if (event.key == Qt.Key_CameraFocus) { cameraUI.state = "PhotoCapture" event.accepted = true; } } } Camera { id:camera1 x:0 y:0 width: 1280 height: 720 focus: visible flashMode: camera1.FlashOff whiteBalanceMode: Camera.WhiteBalanceAuto onImageCaptured: { photoPreview.source = preview stillControls.previewAvailable = true cameraUI.state = "PhotoPreview" } } states: [ State { name: "PhotoCapture" StateChangeScript { script: { camera1.visible=true camera1.focus = true photoPreview.visible = false } } }, State { name: "PhotoPreview" StateChangeScript { script: { camera1.visible=false photoPreview.visible = true photoPreview.focus = true } } } ]
}
@
PhotoCapture.qml
@
import Qt 4.7
import QtMultimediaKit 1.2Item {
property alias source : preview.source
signal closedImage { id: preview anchors.fill : parent fillMode: Image.PreserveAspectFit smooth: true } MouseArea { anchors.fill: parent onClicked: { parent.closed(); } }
}
@
main.cpp
@#include <QtGui/QApplication>
#include <QDeclarativeEngine>
#include "qmlapplicationviewer.h"int main(int argc, char *argv[])
{
QApplication app(argc, argv);QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape); viewer.setMainQmlFile(QLatin1String("qml/xyz/main.qml")); viewer.engine()->addImportPath(QString("/home/opt/qtm12/imports")); viewer.showExpanded(); return app.exec();
}
@I get the following error file:///opt/xyz/qml/xyz/main.qml:2:1: module "QtMultimediaKit" is not installed
import QtMultimediaKit 1.2
^
I have already installed the package libqtm-12 on the device using apt-get
I also added manually the import path in main.cpp shown above
Now how do I get the qml QtMultimediaKit to work???
Please help
Thanks.