26

I am trying to compile qGo, after installing qt5

git clone https://github.com/pzorin/qgo.git
cd qgo
qmake
make
sudo make install

Right now the latest error is saying it can't find multimedia

# make
cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/jdm/Downloads/qgo/src/src.pro -o Makefile ) && make -f Makefile 
Project ERROR: Unknown module(s) in QT: multimedia
make: *** [sub-src-make_first] Error 3

I guessed the library libqt5multimedia5 based on this question, but the computer it says its already there and the error persists.

libqt5multimedia5 is already the newest version.

There is another similar question but the user answered his own question. I am not sure how it applies here:

Community
  • 1
  • 1
john mangual
  • 7,718
  • 13
  • 56
  • 95
  • If you're using an existing Qt dev environment, be sure to check which version is defined in the Kits the project is using. – Zimano Sep 23 '19 at 12:41

2 Answers2

34

I'm not able to post a comment, so I will write it as an answer. Your problem has been solved here: https://forum.qt.io/topic/27608/unknown-module-multimedia/6

In order to handle the issue you should try installing packages that are absent:

sudo apt-get install qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5

and restart your Qt Creator after that. Cheers.

UPDATE. If it will not work, try another solution:

sudo apt-get update
sudo apt-get build-dep qtmultimedia5-dev
sudo apt-get source --compile qtmultimedia5-dev

UPDATE 2 For me the solution was the following:

  1. Download sources from http://download.qt.io/development_releases/qt/5.4/5.4.0-rc/submodules/

  2. Build them, add the library manually.

gsa
  • 516
  • 5
  • 9
  • 10
    `sudo apt-get install qtmultimedia5-dev` ought to do fine, as any sub-dependencies (`libqt5multimedia*`) would be satisfied consecutively by APT by itself. – syntaxerror Jul 01 '15 at 09:35
  • 1
    Finally, this answer was useful for me to build BASIC256 on Ubuntu 20.04. – itsols May 18 '21 at 05:58
0

On Ubuntu 22.04:

sudo apt-get install libpcre3=2:8.39-13ubuntu0.22.04.1

sudo apt-get install qtmultimedia5-dev

Artmetic
  • 350
  • 2
  • 12