Building Qt WebKit with media support



  • Hi,

    My goal is to enable navigator.getUserMedia in Qt WebKit.
    I tried building Qt-WebKit (5.5 branch) with following options:

    ./Tools/Scripts/build-webkit --qt --media-stream --media-source --media-capture --video

    Platforms tried: macx-clang, win32-g++
    However, I get the following error:

    Could NOT find IDL file for interface "MediaStream"
    ...
    make[2]: *** [sub-DerivedSources-pri-make_for_qmake] Error 2
    make[1]: *** [sub-Source-WebCore-WebCore-pro-qmake_all] Error 2
    make: *** [incremental] Error 2

    Nevetheless,
    $ find . -name MediaStream.idl
    ./Source/WebCore/Modules/mediastream/MediaStream.idl

    Such file exists, probably the build system looks in another location.

    Please help me solve this problem. Can I get more verbose build output?



  • @vissi Did you find any resolution to this?



  • guess it's not actual anymore, but having same issue with 5.6.0

    to resolve it you can add following into your qtwebkit/Source/WebCore/DerivedSources.pri

    enable?(MEDIA_STREAM) {
    IDL_BINDINGS +=
    $$PWD/Modules/mediastream/MediaStream.idl
    ### you might need some others idl from this folder too
    }

    and search for generateBindings.commands in same file and add "--include Modules/mediastream"


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.