QtMultimedia 5.0 not installed.
-
my error: module is not installed:
i know my problem lies not on my qt creator because i can create video via a new qml. it lies on this old legacy code, i believe. any workaround?file:///home/common/Desktop/Untitled Folder/MarqueeQuickApp/build-MarqueeQuickApp-Desktop_Qt_5_3_GCC_32bit-Debug/qml/MarqueeQuickApp/main.qml:3:1: module "QtMultimedia" is not installed
import QtMultimedia 5.0@
-----------main-----------------------
#include <QApplication>
#include "qmlapplicationviewer.h"int main(int argc, char *argv[])
{
QApplication app(argc, argv);QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/MarqueeQuickApp/main.qml")); viewer.showExpanded(); return app.exec();
}
import QtQuick 1.0
//import QtQuick 2.0
import QtMultimedia 1.0Rectangle {
id: myApp
width: 360
height: 640
color:"blue"
MediaPlayer{
id:player
source:"girl.mp4"
autoPlay:true
}VideoOutput{ id:video source:player anchors.left: parent.left }
}
@
-
QT += declarative
QT += multimediahas been added to qmlapplicationviewer.pri & project file.
error:
module "QtMultimedia" is not installed" when i add import QtMultimedia 5.0 without any multimedia code. Is it because QmlApplicationViewer and multimedia not compatible -
Hi,
[quote author="houmingc" date="1418657763"]i know my problem lies not on my qt creator because i can create video via a new qml. it lies on this old legacy code, i believe.[/quote]
What version of Qt (Qt version + compiler version) did you use to create the new QML project?
What version of Qt (Qt version + compiler version) did you use to create your legacy code?
Did "import QtMultimedia" ever work in your legacy code?