doelldd
doelldd

Reputation: 81

module "QtMultimedia" is not installed

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

Answers (2)

Ngo Phu Hien
Ngo Phu Hien

Reputation: 292

  1. Open Qt Maintenance Tool (It is already installed on your pc when you downloaded Qt)

enter image description here

  1. Login to your Qt account and hit next
  2. Select Add or Remove Components, next
  3. Go to Qt -> (The Qt version you installed) -> Additional Libraries and select Qt Multimedia like this (I'm using Qt 6.3.1)

enter image description here

  1. Hit next to install it

Upvotes: 4

doelldd
doelldd

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

Related Questions