module "QtMultimedia" is not installed
-
wrote on 3 Feb 2022, 20:46 last edited by
If you mean to work with the following lines:
find_package(Qt6 COMPONENTS Multimedia REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)I must say, I did!
I tried adding both but then it failed.Is that what you meant. please?
If so, how to solve it that way? -
That's what I had I mind.
Can you build the qmlvideo example from Qt's sources ?
-
If it does, then you know that your installation is fine.
You can then start from it to build your own application.
-
If it does, then you know that your installation is fine.
You can then start from it to build your own application.
-
The second case.
-
wrote on 4 Feb 2022, 09:45 last edited by tomy 2 Apr 2022, 09:45
I searched for a remedy fort the problem on the Docs, but as usual Docs are not helpful except for one who is quite experienced and just walks through it to be sure about something! :|
All I collected is that I need to add the following two lines in the project's CmakeLists.txt file:
find_package(Qt6 COMPONENTS Multimedia REQUIRED) target_link_libraries(qml_1 PUBLIC Qt::Multimedia)
But the project's CmakeLists.txt file already contains those two lines! Should I replace them with these two ones or merge them?
-
Did you successfully build the example ?
-
wrote on 5 Feb 2022, 09:18 last edited by
Do you meant this example?
I didn't even find it on the Qt Creator examples section!
So how could I build it?
-
wrote on 5 Feb 2022, 16:01 last edited by
My 2 penneth :)
In examples, just type video into the search bar and look for QML Video Example.
But, before you bother with the above example, I see no mention of starting the Maintenance Tool and checking that QtMultimedia is actually included/installed in your current set up, might be worth a look.
I recently installed Qt6 and found I could not run any multimedia type apps with the same error you have, but checking maintenance tool, I could see it was not included originally, now it's installed and I have just built a basic test app to run an mp3, it works as expected.
-
My 2 penneth :)
In examples, just type video into the search bar and look for QML Video Example.
But, before you bother with the above example, I see no mention of starting the Maintenance Tool and checking that QtMultimedia is actually included/installed in your current set up, might be worth a look.
I recently installed Qt6 and found I could not run any multimedia type apps with the same error you have, but checking maintenance tool, I could see it was not included originally, now it's installed and I have just built a basic test app to run an mp3, it works as expected.
wrote on 5 Feb 2022, 18:04 last edited by tomy 2 May 2022, 18:05In examples, just type video into the search bar and look for QML Video Example.
I see no mention of starting the Maintenance Tool and checking that QtMultimedia is actually included/installed in your current set up
I've already done this one as well! But there's no such an item called
QtMultimedia
to install! :(What is the problem indeed, please? :(
-
You can also clone the QtMultimedia module to get the example code.
-
In examples, just type video into the search bar and look for QML Video Example.
I've already done this! :(
I see no mention of starting the Maintenance Tool and checking that QtMultimedia is actually included/installed in your current set up
I've already done this one as well! But there's no such an item called
QtMultimedia
to install! :(What is the problem indeed, please? :(
wrote on 5 Feb 2022, 20:16 last edited by Markkyboy 2 May 2022, 20:19@tomy - did you expand your version in the menu?, if you do, you should see "Additional Libraries" in the list, among the contents, you should find QtMultimedia.
In my image, you see I have expanded the version I have installed (Qt 6.2.3)........additional libraries/QtMultimedia.
How odd that you have no examples with your installation, I thought they were automatically included.
-
@tomy - did you expand your version in the menu?, if you do, you should see "Additional Libraries" in the list, among the contents, you should find QtMultimedia.
In my image, you see I have expanded the version I have installed (Qt 6.2.3)........additional libraries/QtMultimedia.
How odd that you have no examples with your installation, I thought they were automatically included.
wrote on 5 Feb 2022, 21:14 last edited by -
wrote on 5 Feb 2022, 21:58 last edited by
@tomy because they are not valid elements of MediaPlayer for Qt6, they are for Qt5.
Nearly all documentation is online for your perusal;
https://doc-snapshots.qt.io/qt6-dev/qml-qtmultimedia-mediaplayer.html
-
wrote on 6 Nov 2024, 20:17 last edited by QtWorld 11 Jun 2024, 20:18This post is deleted!
-
@QtWorld said in module "QtMultimedia" is not installed:
why i get this error
Because your code is wrong.
Please look here: https://doc.qt.io/qt-6/qml-qtmultimedia-videooutput.html -
wrote on 7 Nov 2024, 08:02 last edited by QtWorld 11 Jul 2024, 08:05This post is deleted!
-
wrote on 7 Nov 2024, 13:15 last edited by JoeCFD 11 Jul 2024, 13:18
If you look at the code here,
https://doc.qt.io/qt-6/qml-qtmultimedia-videooutput.htmlThe video output is used for media player. Where is your player? How do you code your player?
property "source" does not exist in VideoOutput from
https://doc.qt.io/qt-6/qml-qtmultimedia-videooutput-members.html -
wrote on 8 Nov 2024, 18:07 last edited byThis post is deleted!