How to install submodule Qtmultimedia on Fedora?
-
After installation, you will be able to find this.
5.15.2/gcc_64/include/QtMultimedia
In the .pro file, add multimedia
QT += core gui widgets xml multimediaHello,
After installation, you will be able to find this.
5.15.2/gcc_64/include/QtMultimediaYes, I can find it.
I uninstalled Qt creator and reinstalled it. Then I did:
$git clone https://code.qt.io/cgit/qt/qtmultimedia.git $cd qtmultimedia/ $git checkout 5.15.2 $git submodule update --init --recursive $cd ../qt_build $qmake ../qtmultimedia/qtmultimedia.pro -- $make -j4 $make install
No error has come. I wrote
QT += core gui widgets xml multimedia
in .pro file and
#include <Qtmultimedia/QMediaPlayer>
into mainwindow.h file.
But IDE says "Qtmultimedia/QMediaPlayer not found" and "You need to set an executable in the custom run configuration".What am I missing?
-
It's QtMultimedia.
However, the use of the module prefix recommandation has been dropped since Qt 5.0 if not before.
-
It's QtMultimedia.
However, the use of the module prefix recommandation has been dropped since Qt 5.0 if not before.
-
It's QtMultimedia.
However, the use of the module prefix recommandation has been dropped since Qt 5.0 if not before.
-
Hello,
After installation, you will be able to find this.
5.15.2/gcc_64/include/QtMultimediaYes, I can find it.
I uninstalled Qt creator and reinstalled it. Then I did:
$git clone https://code.qt.io/cgit/qt/qtmultimedia.git $cd qtmultimedia/ $git checkout 5.15.2 $git submodule update --init --recursive $cd ../qt_build $qmake ../qtmultimedia/qtmultimedia.pro -- $make -j4 $make install
No error has come. I wrote
QT += core gui widgets xml multimedia
in .pro file and
#include <Qtmultimedia/QMediaPlayer>
into mainwindow.h file.
But IDE says "Qtmultimedia/QMediaPlayer not found" and "You need to set an executable in the custom run configuration".What am I missing?
-
After installation, you will be able to find this.
5.15.2/gcc_64/include/QtMultimedia
In the .pro file, add multimedia
QT += core gui widgets xml multimediaQT += core gui widgets xml multimedia
If I add
widgets xml
to QT +=, at #include<QMainWindwow> and some others, errors as "Lexical or preprocessor issue" and "Parse issue" happen...type:
locate QtMultimediaOkay, this is a result:
/opt/Webex/qml/QtMultimedia /opt/Webex/qml/QtMultimedia/libdeclarative_multimedia.so /opt/Webex/qml/QtMultimedia/qmldir /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/Video.qml /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/libdeclarative_multimedia.so /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/plugins.qmltypes /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/qmldir
When Qt is installed, there is an option to select multimedia for installation.
I used an installer which is from Open Source Qt Use but there was no option to multimedia. There, however, is an option to "Additional libraries->Qt->Active Qt, Qt 3D, Qt Charts and so forth" in Maintain Qt.
-
QT += core gui widgets xml multimedia
If I add
widgets xml
to QT +=, at #include<QMainWindwow> and some others, errors as "Lexical or preprocessor issue" and "Parse issue" happen...type:
locate QtMultimediaOkay, this is a result:
/opt/Webex/qml/QtMultimedia /opt/Webex/qml/QtMultimedia/libdeclarative_multimedia.so /opt/Webex/qml/QtMultimedia/qmldir /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/Video.qml /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/libdeclarative_multimedia.so /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/plugins.qmltypes /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/qmldir
When Qt is installed, there is an option to select multimedia for installation.
I used an installer which is from Open Source Qt Use but there was no option to multimedia. There, however, is an option to "Additional libraries->Qt->Active Qt, Qt 3D, Qt Charts and so forth" in Maintain Qt.
@nrml download qt-unified-linux-x64-4.0.1-online.run from https://download.qt.io/official_releases/online_installers/
use the latest one. Remove the old installation and try the new one. Install it in a location which can be found easily.
Usually /opt is the right choice. -
@nrml download qt-unified-linux-x64-4.0.1-online.run from https://download.qt.io/official_releases/online_installers/
use the latest one. Remove the old installation and try the new one. Install it in a location which can be found easily.
Usually /opt is the right choice.Thank you for the link. I downloaded qt-unified-linux-x86_64-4.1.1-online.run and tried to run but there is no option to select multimedia in Select Components. I looked for it in Additional libraries, which has
- italicised text
- list item"Active Qt",
- list item" Qt 3D" and so on,
and Qt versions. Qt 6.1.0 has
- list item"Desktop gcc 64-bit",
- list item"Android",
- list item"Sources"....
Also Qt 5.15.2 has some components like them. Is the multimedia included one of them?
-
Thank you for the link. I downloaded qt-unified-linux-x86_64-4.1.1-online.run and tried to run but there is no option to select multimedia in Select Components. I looked for it in Additional libraries, which has
- italicised text
- list item"Active Qt",
- list item" Qt 3D" and so on,
and Qt versions. Qt 6.1.0 has
- list item"Desktop gcc 64-bit",
- list item"Android",
- list item"Sources"....
Also Qt 5.15.2 has some components like them. Is the multimedia included one of them?
-
QtMultimedia is not an optional package, it's part of the standard installation with Qt 5. For Qt 6, it shall be back for 6.2.
If it's not there with 5.15.2, then try either with 5.15.1 or if you have a commercial license a later version.
-
Once done installing Qt into /opt directory and
git clone
andqmake
,make install
and so forth, but it still saysUnknown module(s) in QT: multimedia
...What can I do anything else?
@nrml It is unnecessary to do git clone anymore after installation. Next step is to add qt bin and lib path in the shell.
add the similar stuff somewhere in .bashrc
export QT_DIR=/opt/thirdParties/Qt/5.15.2/gcc_64
export PATH=$QT_DIR/bin:$PATH
export LD_LIBRARY_PATH=$QT_DIR/lib:$LD_LIBRARY_PATHopen another tab and launch your qtcreator.
-
I added
export QT_DIR=/opt/Qt/5.15.2/gcc_64 export PATH=$QT_DIR/bin:$PATH export LD_LIBRARY_PATH=$QT_DIR/lib:$LD_LIBRARY_PATH
in .bashrc and logged out. Then launched qtcreator but the error was there...
What I did is that I installed qtcreator in /opt/Qt/ and installed qtmultimedia which is cloned from git and
qmake
and so on. Then I added path above in my .bashrc. -
I added
export QT_DIR=/opt/Qt/5.15.2/gcc_64 export PATH=$QT_DIR/bin:$PATH export LD_LIBRARY_PATH=$QT_DIR/lib:$LD_LIBRARY_PATH
in .bashrc and logged out. Then launched qtcreator but the error was there...
What I did is that I installed qtcreator in /opt/Qt/ and installed qtmultimedia which is cloned from git and
qmake
and so on. Then I added path above in my .bashrc.@nrml PATH has to set first before clone. Actually cloning multimedia is not needed.
in /opt/thirdParties/Qt/5.15.2/gcc_64/include, I have:
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtKmsSupport/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtLinuxAccessibilitySupport/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtLocation/
drwxr-xr-x 3 root root 12288 Jan 12 11:29 QtMultimedia/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaGstTools/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaQuick/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaWidgets/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtNetwork/
drwxr-xr-x 3 root root 4096 Jan 12 11:30 QtNetworkAuth/in /opt/thirdParties/Qt/5.15.2/gcc_64/lib, I have
-rw-r--r-- 1 root root 1084 Jan 12 11:29 libQt5MultimediaGstTools.la
-rw-r--r-- 1 root root 1999 Jan 12 11:29 libQt5MultimediaGstTools.prl
lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so -> libQt5MultimediaGstTools.so.5.15.2*
lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so.5 -> libQt5MultimediaGstTools.so.5.15.2*
lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so.5.15 -> libQt5MultimediaGstTools.so.5.15.2*
-rwxr-xr-x 1 root root 448160 Nov 6 2020 libQt5MultimediaGstTools.so.5.15.2*
-rw-r--r-- 1 root root 13762056 Nov 6 2020 libQt5MultimediaGstTools.so.5.15.2.debug
-rw-r--r-- 1 root root 773 Jan 12 11:29 libQt5Multimedia.la
-rw-r--r-- 1 root root 1462 Jan 12 11:29 libQt5Multimedia.prl
-rw-r--r-- 1 root root 929 Jan 12 11:29 libQt5MultimediaQuick.la
-rw-r--r-- 1 root root 1786 Jan 12 11:29 libQt5MultimediaQuick.prl
lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so -> libQt5MultimediaQuick.so.5.15.2*
lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so.5 -> libQt5MultimediaQuick.so.5.15.2*
lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so.5.15 -> libQt5MultimediaQuick.so.5.15.2*
-rwxr-xr-x 1 root root 175168 Nov 6 2020 libQt5MultimediaQuick.so.5.15.2*
-rw-r--r-- 1 root root 4672384 Nov 6 2020 libQt5MultimediaQuick.so.5.15.2.debug
lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so -> libQt5Multimedia.so.5.15.2*
lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so.5 -> libQt5Multimedia.so.5.15.2*
lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so.5.15 -> libQt5Multimedia.so.5.15.2*
-rwxr-xr-x 1 root root 1421032 Nov 6 2020 libQt5Multimedia.so.5.15.2*
-rw-r--r-- 1 root root 43392192 Nov 6 2020 libQt5Multimedia.so.5.15.2.debug
-rw-r--r-- 1 root root 880 Jan 12 11:29 libQt5MultimediaWidgets.la
-rw-r--r-- 1 root root 1584 Jan 12 11:29 libQt5MultimediaWidgets.prl
lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so -> libQt5MultimediaWidgets.so.5.15.2*
lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so.5 -> libQt5MultimediaWidgets.so.5.15.2*
lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so.5.15 -> libQt5MultimediaWidgets.so.5.15.2*
-rwxr-xr-x 1 root root 172184 Nov 6 2020 libQt5MultimediaWidgets.so.5.15.2*
-rw-r--r-- 1 root root 2710760 Nov 6 2020 libQt5MultimediaWidgets.so.5.15.2.debugDo you have all of them?
-
@nrml PATH has to set first before clone. Actually cloning multimedia is not needed.
in /opt/thirdParties/Qt/5.15.2/gcc_64/include, I have:
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtKmsSupport/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtLinuxAccessibilitySupport/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtLocation/
drwxr-xr-x 3 root root 12288 Jan 12 11:29 QtMultimedia/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaGstTools/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaQuick/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaWidgets/
drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtNetwork/
drwxr-xr-x 3 root root 4096 Jan 12 11:30 QtNetworkAuth/in /opt/thirdParties/Qt/5.15.2/gcc_64/lib, I have
-rw-r--r-- 1 root root 1084 Jan 12 11:29 libQt5MultimediaGstTools.la
-rw-r--r-- 1 root root 1999 Jan 12 11:29 libQt5MultimediaGstTools.prl
lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so -> libQt5MultimediaGstTools.so.5.15.2*
lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so.5 -> libQt5MultimediaGstTools.so.5.15.2*
lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so.5.15 -> libQt5MultimediaGstTools.so.5.15.2*
-rwxr-xr-x 1 root root 448160 Nov 6 2020 libQt5MultimediaGstTools.so.5.15.2*
-rw-r--r-- 1 root root 13762056 Nov 6 2020 libQt5MultimediaGstTools.so.5.15.2.debug
-rw-r--r-- 1 root root 773 Jan 12 11:29 libQt5Multimedia.la
-rw-r--r-- 1 root root 1462 Jan 12 11:29 libQt5Multimedia.prl
-rw-r--r-- 1 root root 929 Jan 12 11:29 libQt5MultimediaQuick.la
-rw-r--r-- 1 root root 1786 Jan 12 11:29 libQt5MultimediaQuick.prl
lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so -> libQt5MultimediaQuick.so.5.15.2*
lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so.5 -> libQt5MultimediaQuick.so.5.15.2*
lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so.5.15 -> libQt5MultimediaQuick.so.5.15.2*
-rwxr-xr-x 1 root root 175168 Nov 6 2020 libQt5MultimediaQuick.so.5.15.2*
-rw-r--r-- 1 root root 4672384 Nov 6 2020 libQt5MultimediaQuick.so.5.15.2.debug
lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so -> libQt5Multimedia.so.5.15.2*
lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so.5 -> libQt5Multimedia.so.5.15.2*
lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so.5.15 -> libQt5Multimedia.so.5.15.2*
-rwxr-xr-x 1 root root 1421032 Nov 6 2020 libQt5Multimedia.so.5.15.2*
-rw-r--r-- 1 root root 43392192 Nov 6 2020 libQt5Multimedia.so.5.15.2.debug
-rw-r--r-- 1 root root 880 Jan 12 11:29 libQt5MultimediaWidgets.la
-rw-r--r-- 1 root root 1584 Jan 12 11:29 libQt5MultimediaWidgets.prl
lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so -> libQt5MultimediaWidgets.so.5.15.2*
lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so.5 -> libQt5MultimediaWidgets.so.5.15.2*
lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so.5.15 -> libQt5MultimediaWidgets.so.5.15.2*
-rwxr-xr-x 1 root root 172184 Nov 6 2020 libQt5MultimediaWidgets.so.5.15.2*
-rw-r--r-- 1 root root 2710760 Nov 6 2020 libQt5MultimediaWidgets.so.5.15.2.debugDo you have all of them?
Thank you for showing your folders.
I checked my /gcc_64/include and /gcc_64/lib. All folders and files you mentioned are in them.PATH has to set first before clone. Actually cloning multimedia is not needed.
So, all I have to do was add PATH? No qmake or make install? Sorry I am a little confused...
My qt creator's options:
Are there any problems in these?