Qt WebEngine与WebRTC for Embedded

时间:2017-11-12 18:01:53

标签: c++ linux qt

我有一个交叉编译工具链,用于构建Qt应用程序,并使用eglfs在Raspberry Pi上运行。这可以解决问题。

我正在尝试使用WebRTC支持编译QtWebEngine模块,但无法确定拒绝启用WebRTC的原因。

在qtwebengine目录中运行qmake的输出:

brporter@fracked:~/raspi/qtwebengine$ ~/raspi/qt5/bin/qmake 

Running configuration tests...
Done running configuration tests.

Configure summary:

Qt WebEngine:
  Embedded build ......................... yes
  Pepper Plugins ......................... no
  Printing and PDF ....................... no
  Proprietary Codecs ..................... no
  Spellchecker ........................... yes
  WebRTC ................................. no
  Using system ninja ..................... no
  ALSA ................................... yes
  PulseAudio ............................. yes
  System libraries:
    re2 .................................. no
    ICU .................................. no
    libwebp and libwebpdemux ............. yes
    Opus ................................. no
    ffmpeg ............................... no

Qt is now configured for building. Just run 'make'.

试图挖掘qtwebengine mkspecs并没有发现任何超级明显的东西,但我可能会遗漏一些东西。

1 个答案:

答案 0 :(得分:0)

我知道这很旧,但我也在这方面苦苦挣扎。 我从 this documentation 了解到您可以使用 -webengine-proprietary-codecs 来启用专有编解码器。事实证明,您还可以使用 -webengine-webrtc 来启用 WebRTC... 或者至少这是配置后报告的内容。我还没有继续编译 Qt 并测试它是否真的有效。