[Qt-qml] qml video not working

qt next qtnext at gmail.com
Thu Sep 9 23:18:23 CEST 2010


Hi,

I have rebuild qt, mobility from scratch to be sure ... And I have the same
issue.
I have checked with depends my executable and the library : it's ok ...debug
version use debug lib, and release version use release lib ...

I have find that you build qt-mobility, debug version of declarative plugin
are not build with d suffix ... so the dll for debug and release have the
same name ... If you look in qt/imports/multimedia (the same for all
declarative mobility plugins) folder there is the release dll plugin and a
pdb with no ...d and there is no ...d.dll ... It seems first debug version
with no suffix d is copied and overwritten after by release dll...


I need to manually copy file debug (renaming with d.dll) from
plugins/declarative  to imports/qt/multimedia.


then after I have another trouble : I have created a small pure qml exemple
(no c++) with qmlviewer :


@

import Qt 4.7

import Qt.multimedia 1.1

Rectangle {

    width: 200

    height: 200

       Video {

   id: video

   anchors.fill: parent

   source: Qt.resolvedUrl("C:/TestFolder//test.wmv")

   Component.onCompleted : video.play();

   }

}

@


I if launch qmlviewer have the following warning in qml viewer warning
window :


QMediaPluginLoader: Failed to load plugin:
"C:/QtMobility/plugins/mediaservice/dsengine.dll" "The plugin
'C:/QtMobility/plugins/mediaservice/dsengine.dll' uses incompatible Qt
library. Expected build key "Windows msvc debug full-config", got "Windows
msvc release full-config""

QMediaPluginLoader: Failed to load plugin:
"C:/QtMobility/plugins/mediaservice/qtmedia_audioengine.dll" "The plugin
'C:/QtMobility/plugins/mediaservice/qtmedia_audioengine.dll' uses
incompatible Qt library. Expected build key "Windows msvc debug
full-config", got "Windows msvc release full-config""

QMediaPluginLoader: Failed to load plugin:
"C:/QtMobility/plugins/mediaservice/qtmedia_wmp.dll" "The plugin
'C:/QtMobility/plugins/mediaservice/qtmedia_wmp.dll' uses incompatible Qt
library. Expected build key "Windows msvc debug full-config", got "Windows
msvc release full-config""


If I try for  example : declarative-mapviewer demo : i need to rename
declarative location plugin with the d.dll and copy to the
/imports/mobility/... and then it works without trouble.


I don't know  if it helps ... :)






2010/9/8 <henrik.hartz at nokia.com>

> Hi,
>
> On 8. sep. 2010, at 12.08, ext qt next wrote:
>
> > I am trying to embed a video element in my qml application. I use Windows
> Seven , qt from git, qtcreator from git, qt.mobility from git (from two days
> git). I use import Qt.multimedia 1.1, and when I launch the application,
> >
> >  (I am trying to play a wmv file). I only have the sound and I have the
> following log message :
> > QMediaPluginLoader: Failed to load plugin:
> “c:/dev/x32/qt4.7/plugins/mediaservice/dsengine.dll” “The plugin
> ‘C:/dev/x32/qt4.7/plugins/mediaservice/dsengine.dll’ uses incompatible Qt
> library. Expected build key “Windows msvc debug full-config”, got “Windows
> msvc release full-config””
> > ... and the same for all others plugins…
> > If I start in debug mode, I have a message saying that there is only
> release module… And If I start in release mode, I have a message saying that
> there is only the debug module ???
>
> Do you get the same issue for the demos and examples in the mobility repo?
> Can you verify the dependencies on your exe and dll's with depends.exe?
>
> Cheers,
> Henrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100909/ed3f3eda/attachment.html 


More information about the Qt-qml mailing list