Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QT QMediaPlayer is not found, despite the addition of multimedia in the make file

Tags:

c++

qt

HI I recently Downloaded the latest version of the QT IDE for Windows 7, despite including multimedia to the make file it still cannot find any of the QMedia libraries, I wanted to know if anyone else had similar problems, and if there is anyone who knows how to solve this.

like image 903
tomd1990 Avatar asked Aug 28 '15 02:08

tomd1990


1 Answers

If yours is a qmake-based project, as default projects are in Qt Creator, you have to add following line to your .pro file to use the multimedia library:

QT += multimedia

After making a change to the .pro file, you always need to run qmake to update the actual Makefile which is used for building the app.

You can run it from Qt Creator by right-clicking on the topmost project node in the project explorer, and selecting "Run qmake".

like image 90
Lahiru Chandima Avatar answered Nov 14 '22 22:11

Lahiru Chandima