Module problem using QtAV
-
Hi,
im trying to use "QtAV":https://github.com/wang-bin/QtAV in my project but getting the following error:"qrc:///main.qml:3 plugin cannot be loaded for module "QtAV": Cannot load library C:/Qt/Qt5.3.0/5.3/mingw482_32/qml/QtAV/QmlAV.dll: The specified module could not be found."
(i checked that the file is present).line 3 that causes the error is @import QtAV 1.3@
Now i have no idea what i did wrong so here is exactly what i did:
download the "src":https://github.com/wang-bin/QtAV/archive/master.zip and extracted to C:\QtAV\QtAV-master
downloading the depencies "ffmpeg":http://sourceforge.net/projects/qtav/files/depends/ffmpeg-2.1.3-mingw32pcx+msvc.7z/download and "portaudio":http://sourceforge.net/projects/qtav/files/depends/portaudio-v19_msvc+mingw32_20130209.7z/download and extracted to C:\QtAV\deps\ffmpeg and C:\QtAV\deps\portaudio
open CMD in C:\QtAV and
set PATH=C:\Qt\Qt5.3.0\5.3\mingw482_32\bin;C:\Qt\Qt5.3.0\Tools\mingw482_32\bin;%PATH% (since im using mingw from Qt package)
set CPATH=C:\QtAV\deps\ffmpeg\include;C:\QtAV\deps\portaudio\include;%CPATH%
set LIBRARY_PATH=C:\QtAV\deps\ffmpeg\lib;C:\QtAV\deps\portaudio\lib;%LIBRARY_PATH%
qmake QtAV-master\QtAV.pro
mingw32-make
run C:\QtAV\sdk_install.bat
Everything worked fine as far as i can tell.
Then i opened QtCreator and created a new QtQuick application project and only edit the .pro file:
@QT += av@and the main.qml by adding the
@import QtAV 1.3@
I hope somebody can tell me what i did wrong or how to fix the issue.
Thanks in advance -
Hi
I have the problem to include QtAV in my project as well. I can't see the class AVPlayer in my project in despite of module properly included. Take a look at another sources from QtAV developer hope it will help you.
http://stackoverflow.com/questions/15596566/running-a-project-in-qt-creator-in-windows/15680148#15680148
http://beatinginfinity.blogspot.tw/2013/04/running-qtav-project-using-qt5-ffmpeg.html -
You have to copy ffmpeg and portaudio dll to QtDir/bin. It should work. I haven't tested qml applications.
-
It's maybe you should set LD_LIBRARY_PATH to ffmpeg_path/lib:portaudio_path/lib too