Reputation: 81
I've installed Qt and Qtcreator on a Raspberry Pi 3 using the normal apt-get install method. Everything seems to work fine except when I try to build the declarative-camera example or other multimedia examples I get an error saying module "QtMultimedia" is not installed
. Then the empty white application window pops up.
I've tried installing and reinstalling all the required packages such as libqt5multimedia5
, qtmultimedia5-dev
, etc
and it just says they are installed with newest version.
Has anyone had success with getting qt multimedia working on raspberry pi?
Edit:
I tried using the suggested solution of:
sudo apt-get install qtdeclarative5-qtmultimedia-plugin
That gives me an error of:
E: Unable to locate package qtdeclarative5-qtmultimedia-plugin
Upvotes: 2
Views: 15829
Reputation: 292
Qt
-> (The Qt version you installed) -> Additional Libraries
and select Qt Multimedia
like this (I'm using Qt 6.3.1)Upvotes: 4
Reputation: 81
This seemed to work run the command below:
sudo apt-get install libqt5multimedia5-plugins qml-module-qtmultimedia
I was missing libqt5multimedia5-plugins
Upvotes: 6