Unsolved How to install submodule Qtmultimedia on Fedora?
-
The idea is that you look for the multimedia library and the plugins. The former should be something like libQt5Multimedia.so and you should have a subfolder named multimedia in the plugins folder.
Note that if you do not have the GStreamer development libraries installed, you won't have much in the multimedia part.
Did you do that from a clean state ?
-
Now Qt folder has multimedia and the install done:
$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 happened but still
error: Qtmultimedia/QMediaPlayer: No such file or directory
occured.Note that if you do not have the GStreamer development libraries installed, you won't have much in the multimedia part.
No, I haven't installed GStreamer development yet...
-
Did you do that from a clean state ?
No, the Qt folder was not cleaned. Should I re install Qt creator and clone https://code.qt.io/cgit/qt/qtmultimedia.git?
-
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 multimedia -
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?
-
It's QtMultimedia.
However, the use of the module prefix recommandation has been dropped since Qt 5.0 if not before.
-
This post is deleted! -
@SGaist
Hello,I changed Qtmultimedia to QtMultimedia but it cannot find the file...
-
@nrml said in How to install submodule Qtmultimedia on Fedora?:
QtMultimedia
type:
locate QtMultimediato show what you see
I have:
/opt/thirdParties/Qt/5.15.2/gcc_64/include/QtMultimedia/5.15.2/QtMultimedia/ -
@nrml When Qt is installed, there is an option to select multimedia for installation. It is not necessary to install it separately. But now you know how to install a component which may be required in Qt6
-
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. -
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?
-
@nrml this is the latest 6.0.4. Click Archives and select 5.15.2 may be 4
-
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.
-
There is no Qt Multimedia package in both 5.15.2 and 5.15.1...
-
@nrml Because, as I wrote, it is part of the standard set of installed modules.
-
Okay... so if I install Qt, it should be installed as default?
Hmm... then why cannot my qt creator find the file?Path problem? I am installing qt in /opt directory and try run the code again once it done.
-
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.