How to get QtMultimedia to work ?
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.
Could you elaborate on "it doesn't work" ? What doesn't work ? What are you expecting and what are you getting ? etc...
It doesn't compile actually. The error I get is:
C:\Qt\dev\Projects\TestDev\mainwindow.cpp:3: error: C1083: Cannot open include file: 'QAudioInput': No such file or directory
Did you install the MSVC version of Qt ?
yes, I was working with the MinGW version, but I unistalled it completely and re-installed a clean install of MSVC version of Qt.
Then the whole QtMultimedia problem started for some strange reason.
What version of MSVC do you have installed and which version of Qt ?
I have installed :
Qt 5.0.2 for Windows 32-bit (VS 2010, 485 MB).
I already had Visual C++ 2010 Express edition installed before if that makes a difference.
Maybe Qt Creator is remembering your old MinGW settings, so it's looking in the wrong place for headers/libraries.
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.