2

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

Faruk
  • 312
  • 3
  • 13
doelldd
  • 71
  • 1
  • 1
  • 7
  • Possible duplicate of [Deploying Qt app with QtMultimedia on Linux](https://stackoverflow.com/questions/24868981/deploying-qt-app-with-qtmultimedia-on-linux) – Mohammad Kanan Sep 21 '19 at 23:46
  • 1
    try with: `sudo apt-get instal libqt5multimedia5-plugins qml-module-qtmultimedia`, What version of Qt5 do you have? – eyllanesc Sep 22 '19 at 00:06

2 Answers2

5

This seemed to work run the command below:

sudo apt-get install libqt5multimedia5-plugins qml-module-qtmultimedia

I was missing libqt5multimedia5-plugins

MarcosApps
  • 414
  • 2
  • 4
  • 15
doelldd
  • 71
  • 1
  • 1
  • 7
  • Thank you for this solution! Do you know if there is any way to get this to work using `pip install`? I have an application that uses QtMultimedia.QSoundEffect and is installed via pypi/pip – sunyata Jun 02 '20 at 10:31
4
  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
FlopffyGrape
  • 122
  • 1
  • 6