tomd1990
tomd1990

Reputation: 165

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

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.

Upvotes: 8

Views: 11203

Answers (2)

Janith Harinda
Janith Harinda

Reputation: 11

Put ,

QT += multimedia

Inside your .pro file

Upvotes: 0

Lahiru Chandima
Lahiru Chandima

Reputation: 24128

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".

Upvotes: 9

Related Questions