Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Module problem using QtAV
Qt 6.11 is out! See what's new in the release blog

Module problem using QtAV

Scheduled Pinned Locked Moved 3rd Party Software
4 Posts 4 Posters 6.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    justAnoob
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gogasome
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • I Offline
        I Offline
        ibingow
        wrote on last edited by
        #3

        You have to copy ffmpeg and portaudio dll to QtDir/bin. It should work. I haven't tested qml applications.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          matuQt
          wrote on last edited by
          #4

          It's maybe you should set LD_LIBRARY_PATH to ffmpeg_path/lib:portaudio_path/lib too

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved