QtMultimedia" is not installed in Qt 5.0.2 MinGW 32bit
-
Hi guys,
I've created Qt Quick UI project in Qt 5.0.2 MinGW 32bit and I would like to play a sound, so I am trying to use QtMultimedia 5.0.
But when I run this project, I get: "module "QtMultimedia" is not installed".Can someone, please, help me? What can be the problem?
Thank You.
vladinko0 -
Are you sure QtMultimedia was available in such ancient version of Qt?
-
@sierdzio I don't know, but when I start to type "import QtMu", then QtMultimedia 5.0 is automatically suggested. This line is not red underlined.
I am using such ancient version of Qt, because I want to create application usable for new and also for older systems, that don't have OpenGL.
-
Hi,
Maybe a silly question but did you add
QT += multimedia
in your pro file ?
-
@SGaist In Qt Quick UI project, there is no pro file. There is just
mytest.qmlproject:
/* File generated by Qt Creator */import QmlProject 1.1
Project {
mainFile: "untitled14.qml"/* Include .qml, .js, and image files from current directory and subdirectories */ QmlFiles { directory: "." } JavaScriptFiles { directory: "." } ImageFiles { directory: "." } /* List of plugin directories passed to QML runtime */ // importPaths: [ "../exampleplugin" ]
}
-
Are you sure you don't have any pro file in the mytest folder ?
-
@SGaist Yes, I am sure. In these projects, pro files are never created.
-
Sorry, I've mixed it with QtQuick Application template.
Just tested but with 5.4 and its working fine. So I'd advise to check the content of your lib folder to see if you have QtMultimedia installed.
On a side note 5.0.2 is pretty old, are you locked to that version ?
-
I've just installed version 5.3 (just MinGW 4.8.2 32 bit) but still it doesn't work. Should I also install Source components (Add-Ons and Essentials)? Because I didn't do it.
In lib folder are libQt5MultimediaQuick_p.a, libQt5MultimediaQuick_pd.a, Qt5MultimediaQuick_p.prl and Qt5MultimediaQuick_prl.a files.
I am using 5.0.2, because I want to create application usable for new and also for older systems, that don't have OpenGL.
-
@vladinko0 said:
I am using 5.0.2, because I want to create application usable for new and also for older systems, that don't have OpenGL.
OpenGL requirements in Qt 5.0.2 are the same as they are in the newest Qt 5.4. In both, QtQuick 2 requires at least OpenGL 2.0.
-
@sierdzio said:
OpenGL requirements in Qt 5.0.2 are the same as they are in the newest Qt 5.4. In both, QtQuick 2 requires at least OpenGL 2.0.
I am using QtQuick 1.1.
As it is written in http://stackoverflow.com/questions/20530157/error-qopenglshader-could-not-create-shader-when-compiling-qtquick-applicati
I thought lower Qt versions use ANGLE.In my computer I have that "QOpenGLShaderProgram: could not create shader program... etc." Also I don't want to force users to upgrade their graphical driver.
Can you advice, what way to make application working also in old systems? -
Version older than 5.4 were compiled either with ANGLE or desktop OpenGL. Since 5.4 the backend is dynamically selected based on what is available on your OS.
AFAIK, to ensure maximum compatibility you would need to use OpenGL.
-
@SGaist So why I can not run any project except for QtQuick 1.1?
-
That depends on your target available OpenGL implementation.
-
Hm, I thought QtQuick 1 does not require OpenGL... maybe the dependency "leaks" from QtGui?
-
@sierdzio AFAIK you're right, it doesn't since it uses the GraphicsView framework. However I don't remember if it completely bypasses it if Qt's built with OpenGL support.