-
Home -
Qt Development -
QML and Qt Quick -
How to install module «QtMultimedia» on Windows
⚠️ Forum Maintenance: Feb 6th, 8am — 14pm (UTC+2)
This topic has been deleted. Only users with topic management privileges can see it.
-
When I run a QML project on my Windows machine, I get the errors below on Qt Creator:
qrc:/main.qml:4:1: module «QtMultimedia» is not installed
qrc:/main.qml:5:1: module «QtQuick.Dialogs» is not installedHow to install those two modules? I look them up on the web but couldn’t find a handy resource on how to that.
-
@qcoderpro said in How to install module «QtMultimedia» on Windows:
How to install those two modules?
How did you install Qt and which version?
-
@jsulm
Qt 5.12.2 and using the online installer.
-
@qcoderpro Can you show how you’re importing these modules?
-
@jsulm
import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.5 import QtMultimedia 5.15 import QtQuick.Dialogs 1.5 import QtQuick.LocalStorage 2.12
Lines 4 and 5 have read lines beneath them.
-
@qcoderpro said in How to install module «QtMultimedia» on Windows:
import QtMultimedia 5.15
I think it should be 5.12 as you’re using Qt 5.12 not 5.15
-
@jsulm
Still exists
-
Hi,
Did you add
QT += multimedia
to your .pro file ?
-
@SGaist
I get the error below after adding that line in the .pro file:
:-1: error: Project ERROR: Unknown module(s) in QT: multimediaAnd this is the .pro file contents:
QT += quick CONFIG += c++11 QT += multimedia # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked deprecated (the exact warnings # depend on your compiler). Refer to the documentation for the # deprecated API to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += main.cpp RESOURCES += qml.qrc # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target DISTFILES += android/AndroidManifest.xml android/build.gradle android/gradle/wrapper/gradle-wrapper.jar android/gradle/wrapper/gradle-wrapper.properties android/gradlew android/gradlew.bat android/res/values/libs.xml contains(ANDROID_TARGET_ARCH,armeabi-v7a) { ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android }
-
Did you re-run qmake after adding that line ?
-
@SGaist
Yes, I did it but no change in the outcome!
I thought of making a new project with the same title and files this time using the CMake build system.
I’ve not used CMake yet. Should I add the
QT += multimedia
line in the CMakeLists.txt file and retest the project after re-running CMake?
-
@qcoderpro Are you sure you are using Qt5? I suspect you are using Qt6
-
@qcoderpro Do you have more than one Kit? If so do you use the one where Qt has multimedia module?
-
I’ve configurated only the Desktop kit as follows. Also, the Help menu says I’m using 5.15 while the kit is 6! I don’t know which one is more correct!
-
@qcoderpro As I suspected, you are confusing the version with which QtCreator was compiled (5.15.2) with the Qt you have installed (Qt 6.0.0). If you analyze the second image you will see that «C:/Qt/6.0.0/mingw81_64/lib/…» says where it is concluded that you are using Qt 6.0.0. Solution: Download Qt5 and remove Qt6 so you don’t have that kind of problem
-
@eyllanesc
the version with which QtCreator was compiled (5.15.2) with the Qt you have installed (Qt 6.0.0).
Can’t we have Qt 6 for both the compiled and installed versions to get rid of this problem and also have the most up-to-date Qt version?
Download Qt5 and remove Qt6 so you don’t have that kind of problem
You mean to unselect Qt 6.0.0 and select Qt 5.15.2?
So what are those Qt 6.0.0 and Qt 6.0.1 for?
-
@qcoderpro I recommend you select 5.15.2 and deselect Qt 6.0.0.
Qt 6.x.y is a new version (with many internal changes) but so far the multimedia module has not been added. See this https://stackoverflow.com/questions/65213872/qt6-and-multimedia-module.
-
@qcoderpro said in How to install module «QtMultimedia» on Windows:
Help menu says I’m using 5.15 while the kit is 6!
No, it says what Qt version was used to build QtCreator, not what Qt you’re using.
-
@eyllanesc
Thanks.@jsulm
No, it says what Qt version was used to build QtCreator, not what Qt you’re using.
So is the proper way to see the Qt version installed to look at the version of the kits’ Qt, please?
-
@qcoderpro said in How to install module «QtMultimedia» on Windows:
So is the proper way to see the Qt version installed to look at the version of the kits’ Qt, please?
Yes
-
One more question.
Should we update Qt to the latest version (Qt6 or 6.1) to be able to useQtQuick3D
? If so, how to use libraries likeQtMultimedia
which are not supported in those up-to-date versions yet?
-
@qcoderpro said in How to install module «QtMultimedia» on Windows:
Should we update Qt to the latest version (Qt6 or 6.1) to be able to use
QtQuick3D
?Qt Quick 3D is available in Qt 5.15: https://doc.qt.io/qt-5/qtquick3d-index.html
-
@JKSH
I’m trying to implement the following example of this page but get errors!
-
@qcoderpro said in How to install module «QtMultimedia» on Windows:
I’m trying to implement the following example of this page but get errors!
Did you install the Qt Quick 3D module?
Open your MaintenanceTool and select «Add Components». Select Qt > Qt 5.15.2 > Qt Quick 3D
-
@JKSH
Probably still can’t be done using 5.15.2!
-
@qcoderpro said in How to install module «QtMultimedia» on Windows:
Probably still can’t be done using 5.15.2!
I just realized that you’re trying to use Instanced Rendering.
This feature is only available from Qt 6.1 onwards: https://www.qt.io/blog/qtquick3d-instanced-renderingQt 6.1 is not yet released.
Have a look at the link I posted before; it contains examples that work with Qt 5.15.2.
I am trying to compile qGo, after installing qt5
git clone https://github.com/pzorin/qgo.git
cd qgo
qmake
make
sudo make install
Right now the latest error is saying it can’t find multimedia
# make
cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/jdm/Downloads/qgo/src/src.pro -o Makefile ) && make -f Makefile
Project ERROR: Unknown module(s) in QT: multimedia
make: *** [sub-src-make_first] Error 3
I guessed the library libqt5multimedia5
based on this question, but the computer it says its already there and the error persists.
libqt5multimedia5 is already the newest version.
There is another similar question but the user answered his own question. I am not sure how it applies here:
- «Project ERROR: Unknown module(s) in QT: multimedia» when building my project with fresh static Qt5.3.0
asked Nov 15, 2014 at 17:16
john mangualjohn mangual
7,38812 gold badges55 silver badges92 bronze badges
1
I’m not able to post a comment, so I will write it as an answer. Your problem has been solved here:
https://forum.qt.io/topic/27608/unknown-module-multimedia/6
In order to handle the issue you should try installing packages that are absent:
sudo apt-get install qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5
and restart your Qt Creator after that.
Cheers.
UPDATE. If it will not work, try another solution:
sudo apt-get update
sudo apt-get build-dep qtmultimedia5-dev
sudo apt-get source --compile qtmultimedia5-dev
UPDATE 2 For me the solution was the following:
-
Download sources from http://download.qt.io/development_releases/qt/5.4/5.4.0-rc/submodules/
-
Build them, add the library manually.
answered Mar 17, 2015 at 7:20
2
I installed the qtmultimedia5-dev
package and that got me a little farther. The qmake
command ran fine and then tried make
. The next error I got was this:
mythserver:CasterSoundboard $ make
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o main.o main.cpp
main.cpp:23:24: fatal error: MainWindow.h: No such file or directory
#include "MainWindow.h"
I tried renaming the file from mainwindow.h
to MainWindow.h
and that got a little farther but then this error occurred:
mythserver:CasterSoundboard $ mv mainwindow.h MainWindow.h
mythserver:CasterSoundboard $ make
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o main.o main.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o CasterPlayer.o CasterPlayer.cpp
CasterPlayer.cpp: In member function ‘virtual void CasterPlayerWidget::dropEvent(QDropEvent*)’:
CasterPlayer.cpp:320:22: warning: unused variable ‘ret’ [-Wunused-variable]
int ret = msgBox.exec();
^
CasterPlayer.cpp: At global scope:
CasterPlayer.cpp:357:6: warning: unused parameter ‘event’ [-Wunused-parameter]
void CasterPlayerWidget::mouseMoveEvent(QMouseEvent *event)
^
CasterPlayer.cpp:363:6: warning: unused parameter ‘event’ [-Wunused-parameter]
void CasterPlayerWidget::paintEvent(QPaintEvent *event)
^
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o CasterBoard.o CasterBoard.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o mainwindow.o mainwindow.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o CasterLabelColorPicker.o CasterLabelColorPicker.cpp
CasterLabelColorPicker.cpp:33:1: warning: unused parameter ‘parent’ [-Wunused-parameter]
CasterLabelColorPicker::CasterLabelColorPicker(QWidget *parent)
^
CasterLabelColorPicker.cpp:114:6: warning: unused parameter ‘value’ [-Wunused-parameter]
void CasterLabelColorPicker::slider_HSL_valueChanged(int value)
^
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o CSS.o CSS.cpp
CSS.cpp: In constructor ‘HSL_C::HSL_C(RGB_C)’:
CSS.cpp:277:10: warning: ‘h’ may be used uninitialized in this function [-Wmaybe-uninitialized]
H = h;
^
/usr/lib/x86_64-linux-gnu/qt5/bin/rcc -name res res.qrc -o qrc_res.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o qrc_res.o qrc_res.cpp
/usr/lib/x86_64-linux-gnu/qt5/bin/moc -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I/usr/include/c++/4.8 -I/usr/include/x86_64-linux-gnu/c++/4.8 -I/usr/include/c++/4.8/backward -I/usr/lib/gcc/x86_64-linux-gnu/4.8/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include CasterPlayer.h -o moc_CasterPlayer.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o moc_CasterPlayer.o moc_CasterPlayer.cpp
/usr/lib/x86_64-linux-gnu/qt5/bin/moc -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I/usr/include/c++/4.8 -I/usr/include/x86_64-linux-gnu/c++/4.8 -I/usr/include/c++/4.8/backward -I/usr/lib/gcc/x86_64-linux-gnu/4.8/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include CasterBoard.h -o moc_CasterBoard.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o moc_CasterBoard.o moc_CasterBoard.cpp
make: *** No rule to make target `mainwindow.h', needed by `moc_mainwindow.cpp'. Stop.
So I guess there are other references to mainwindow.h
or MainWindow.h
throughout other files. But at least I am getting closer!
2 / 2 / 0 Регистрация: 10.09.2018 Сообщений: 2 |
|
1 |
|
10.09.2018, 10:26. Показов 5508. Ответов 2
разбираюсь с программированием под Astra Linux, QT += gui network core multimedia и потом делаю «собрать» — пишет: как так? подскажите пжлста прямо тут, или киньте ссылкой, на крайний случай…
__________________
0 |
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
10.09.2018, 10:26 |
2 |
Max Payne
Гость |
Доброе время суток, собрал Qt статически по одному из гайдов, все собралось без ошибок , определил настройка в Qt Creator, но в файле проекта не определяется multimedia модуль. configure -static -platform win32-g++ -debug-and-release -opensource -nomake examples -no-compile-examples -qt-sql-sqlite при сборке появляется следующая ошибка error: Unknown module(s) in QT: multimedia хотя при обычной линковке все работает. Кто сталкивался со сборкой Qt с модулем multimedia подскажите как правильно собрать этот модуль. |
||
|
saim
Гость |
Здравствуйте !! Нужна помощь !! Сборка Qt 5.2.1 статик … 1) конфигурация configure -static -prefix «D:Qtqt5.2.1Static» -openg 2) но на этапе mingw32-make возникает ошибка см.прикр. файл. Подскажите еще , какие ключи конфигурации нужны для сборки QtMultimedia ?? Заранее спасибо !! |
||
|
saim
Гость |
Ага , спасибо уже разобрался , не ужели все нужно начинать сначала , в смысле конфигурить и заново все запускать ?? На повторное : mingw32-make |
||
|
Serr500
Гость |
mingw32-make clean По крайней мере, переконфигурировать не придётся. |
||
|
saim
Гость |
Собрал со след. параметрами: configure -static -prefix «D:QtQt521_Install» -opengl 1) mingw32-make — >прошла на ура , без ошибок настроил комплект в Qt creator но при сборке элементарного примера сыпет ряд ошибок см. прикр. файлы .. так же в Path добавил: D:QtQt521_Installbin;D:QtQt521_Installinclude;D:QtQt521_Installlib |
||
|
saim
Гость |
1) Конфигурация configure -static -prefix «G:QtQt521_Install» -debug- прошла успешно !! прошло успешно 3)mingw32-make install прошло успешно После настройки Qt Creator, при сборке просто примера выводит ошибку : :ошибка: cannot find -lz c:/qt/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -lz Может я чего то не до собрал ?? |
||
|
saim
Гость |
Так , к чему я в конце концов пришел ?.. error: Unknown module(s) in QT: multimedia Какой модуль в Qt 5.2.1 нужно собирать , и как подключить его в *.pro файле !!?? |
||
|
- Forum
- Qt
- Qt Programming
- Cannot add Multimedia Widgets to Qt Creator C++ project
-
10th February 2016, 12:14
#1
Cannot add Multimedia Widgets to Qt Creator C++ project
Hi,
I am trying to compile and run the official Media Player Example in Qt:
http://doc.qt.io/qt-5/qtmultimediawi…r-example.html
for a Raspberry Pi running Raspbian Jessie. I still have no success: when I build the project, the following error appears::-1: error: Unknown module(s) in QT: multimedia multimediawidgets
To copy to clipboard, switch view to plain text mode
I installed «sudo apt-get install qtmultimedia5-dev» but without any success. Is it the right module to install?
My Qt should be up to date, and I don’t know where the problem can be. Could anyone help please?
Thanks!Last edited by Cazzaniga; 10th February 2016 at 12:27.
-
11th February 2016, 15:04
#2
Re: Cannot add Multimedia Widgets to Qt Creator C++ project
Please, could anyone give some hints? The multimedia package seems to be installed well, but in Qt the folowing error remains:
error: Unknown module(s) in QT: multimedia
To copy to clipboard, switch view to plain text mode
Maybe the package has to be manually installed into Qt in some way?
Thanks!
-
11th February 2016, 16:43
#3
Re: Cannot add Multimedia Widgets to Qt Creator C++ project
Have you tried on a desktop just to see if it might be Raspberry Pi related?
Cheers,
_
-
11th February 2016, 16:48
#4
Re: Cannot add Multimedia Widgets to Qt Creator C++ project
Thanks anda_skoa,
I think it’s not a problem related to the Raspberry Pi, because the build fails in Qt at the desktop side!
EDIT:
perhaps you mean that I should try to not cross-platform for RPi and try to compile for desktop?
-
11th February 2016, 17:10
#5
Re: Cannot add Multimedia Widgets to Qt Creator C++ project
Yes, try a desktop build.
Also, if you are cross-compiling, make sure the cross compiled Qt has these modules built.
Cheers,
_
-
12th February 2016, 08:44
#6
Re: Cannot add Multimedia Widgets to Qt Creator C++ project
Also, if you are cross-compiling, make sure the cross compiled Qt has these modules built.
How can I check this? Is it an option in the Qt project Properties?
Similar Threads
-
Replies: 1
Last Post: 1st July 2014, 10:25
-
Replies: 0
Last Post: 23rd December 2013, 03:23
-
Replies: 5
Last Post: 20th December 2009, 20:38
-
Replies: 0
Last Post: 29th October 2009, 20:20
Tags for this Thread
Bookmarks
Bookmarks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
- BB code is On
- Smilies are On
- [IMG] code is On
- [VIDEO] code is On
- HTML code is Off
Forum Rules
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.
Я пытаюсь скомпилировать и запустить официальный пример Media Player в Qt: http://doc.qt.io/qt-5/qtmultimediawidgets-player-example.html для Raspberry Pi работает Raspbian Джесси. У меня все еще нет успеха: при сборке проекта появляется следующая ошибка:
:-1: error: Unknown module(s) in QT: multimedia multimediawidgets
Это называется кодом .pro:
QT += multimedia
Мой Qt должен быть современным, и я не знаю, где может быть проблема.
Может ли кто-нибудь помочь, пожалуйста?
Спасибо!
РЕДАКТИРОВАТЬ: я установил «sudo apt-get install qtmultimedia5-dev», но безуспешно. Правильный ли модуль для установки?
РЕДАКТИРОВАТЬ 2: пакет qtmultimedia5, кажется, хорошо установлен, но ошибка «Неизвестный модуль (и)» в Qt остается! Возможно, после установки библиотека должна быть каким-то образом добавлена вручную? Пожалуйста помоги!
0
Решение
У меня есть малина 1 модель B, и первое, что я хотел сделать, — это медиацентр с нуля. Конечно, в Qt.
К сожалению, я много боролся, прежде чем сдаться и откатиться на обертку для omxplayer, которую я все еще разрабатываю.
Однако несколько недель назад gstreamer все еще не поддерживал бэкэнд OMX (поэтому вы не можете воспроизводить прилично любой вид медиа).
Обратите внимание, что вам нужно купить лицензии MPEG-2 и VC-1, чтобы получить аппаратное ускорение для мультимедиа, в противном случае вы можете легко получить очень низкий fps (и плохой звук) во время воспроизведения mpegs и так далее.
Взгляни на эта страница для недавней версии Qt.
Удачи!
0
Другие решения
Других решений пока нет …