Project ERROR: Unknown module(s) in QT: multimedia

泪湿孤枕 提交于 2019-12-21 03:49:09

问题


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:

  • "Project ERROR: Unknown module(s) in QT: multimedia" when building my project with fresh static Qt5.3.0

回答1:


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.



来源:https://stackoverflow.com/questions/26948466/project-error-unknown-modules-in-qt-multimedia

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!