How to get QtMultimedia to work ?
-
Hello,
I have been using QtMultimedia perfectly fine when I downloaded the minGW version of Qt5 on windows, but I had to switch and use the MSVC version and now I cannot make QtMultimedia to work.
I have added QT += multimedia to my .pro file and at least auto-completion works when I type #include <someMULTIMEDIA class>
Is there something that I am missing ? Is it "normal" that it doesn't work now that I am using MSVC as a compiler.
Any help greatly appreciated.
-
Hi,
Could you elaborate on "it doesn't work" ? What doesn't work ? What are you expecting and what are you getting ? etc...
-
Did you install the MSVC version of Qt ?
-
What version of MSVC do you have installed and which version of Qt ?
-
What about
@#include <QtMultiMedia/QAudioInput>@
?
-
Maybe Qt Creator is remembering your old MinGW settings, so it's looking in the wrong place for headers/libraries.
Try this:
Close Qt Creator
Go to your project's root folder
Delete the file, <projectname>.pro.user, to wipe the old settings
Launch Qt Creator again, and load your project file, <projectname>.pro
Qt Creator should ask you to configure your project again. Select your MinGW kit.
If your kit isn't listed, check check your "installed Qt versions":http://qt-project.org/doc/qtcreator-2.7/creator-project-qmake.html, your "compilers":http://qt-project.org/doc/qtcreator-2.7/creator-tool-chains.html, and your "kits":http://qt-project.org/doc/qtcreator-2.7/creator-targets.html
-
Ok thanks, well I deleted the MinGW version of Qt so obviously it's not listed when QtCreator asks me to configure the project again, I am hoping to be able to make this work using the MSVC compiler.
if not I guess I will have to go back to MinGW but I might run into some problems with third party libraries since they are compiled using MSVC.