QtMultimediaKit QtMobility
-
Check the "Qt Mobility Media player example app":http://doc.qt.digia.com/qtmobility/player.html.
-
I can not fix the error, I got tired of searching the internet and found no similar problem.
According to Qt, Qt Mobility comes with Qt SDK, but still is not working.@c:\qtsdk\examples\qtmobility\player\player.h:46: error: C1083: Cannot open include file: ‘qmediaplayer.h’: No such file or directory@
-
Try editing player.pro:
@
// Change this...
QT += network
xml// ...to this:
QT += network
xml
multimedia
@ -
-
Looks like the Mobility examples from QtSDK 1.2.1 are broken. Other people have this problem too (e.g. http://qt-project.org/forums/viewthread/7724 )
One easy hack is to go to C:\qtsdk (or wherever you installed it), search for the .h files that your SDK can't find (qmediaplayer.h and qmobilityglobal.h, from your screenshot), and add the folder(s) to player.pro like this:
@
INCLUDEPATH += C:/qtsdk/include/QtMultimediaKit
INCLUDEPATH += C:/qtsdk/include/QtMobility
@Notes:
Use '/' instead of '', even in Windows
The above is an example only -- check your folders for the correct path
-
There is no a folder with the libraries, only those.
!http://i.imgur.com/S2eCu.png(http://i.imgur.com/S2eCu.png)!
-
I've included the directory but appears more errors.
@INCLUDEPATH += C:/QtSDK/Simulator/QtMobility/msvc2008/include/QtMobility
INCLUDEPATH += C:/QtSDK/Simulator/QtMobility/msvc2008/include/QtMultimediaKit@!http://i.imgur.com/k2DOS.png(http://i.imgur.com/k2DOS.png)!
-
I reported the bug: https://bugreports.qt-project.org/browse/QTMOBILITY-2078
-
Have you seen http://qt-project.org/wiki/QtMediaHub ?
Note that in Qt5, QtMultimedia is an add-on module to Qt itself, rather than a module of QtMobility. -
Never seen the QtMediaHub, but from what I saw he did not serve to my project.
I want a video player that supports most formats, such as VLC.
No need to install codecs on the computer user, but with the libraries folder within the video player, like VLC, which has all the libraries for the different formats.
-
Qt doesn't natively support many multimedia formats. If you want that, you should use a 3rd-party library -- if you link libVLC to your project, you can play all the formats that VLC media player can play.