公司动态

linux arm64 Qt6/PySide6 WebEngine 支持 webrtc -h264 编译参考

📅 2026/8/1 19:48:01
linux arm64 Qt6/PySide6 WebEngine 支持 webrtc -h264 编译参考
背景客户端程序需要运行在国产化机器上程序里有web模块并且需要播放webrtc的视频使用的qt6开发默认的浏览器插件qtwebengine是不支持webrtc需要自己手动编译源码编译版本QT 6.7.1成果运行环境银河麒麟V10 aarch64参考文档Supported Platforms | Qt 6.7Qt WebEngine Platform Notes | Qt WebEngine 6.7.1Ubuntu 20.04 环境下编译 qtwebengine 6.4.0 以支撑MP4解码 - 简书 (jianshu.com)cant build webengine on linux arm64, error msg: Error: selected processor does not support xpaclri | Qt Forum总结需要安装库apt install bison build-essential clang flex gperfapt install libxcb-cursor-dev libfreetype-devapt install libatspi2.0-dev libbluetooth-dev libclang-dev libcups2-dev libdrm-devapt install libegl1-mesa-dev libfontconfig1-dev libfreetype6-devapt install libgstreamer1.0-dev libhunspell-dev libnss3-dev libopengl-devapt install libpulse-dev libssl-dev libts-dev libx11-dev libx11-xcb-devapt install libxcb-glx0-dev libxcb-icccm4-dev libxcb-image0-devapt install libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-devapt install libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-util-devapt install libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb1-devapt install libxcomposite-dev libxcursor-dev libxdamage-dev libxext-devapt install libxfixes-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-devapt install libxkbfile-dev libxrandr-dev libxrender-dev libxshmfence-devapt install libxshmfence1 llvm ninja-buildapt install python-is-python3 python3apt install libdbus-1-devapt install ffmpegapt install libasound2-dev libbz2-dev libcap-dev libpci-dev libudev-dev libxtst-dev libxss-devapt install libwebp-dev libjsoncpp-dev libopus-dev libminizip-dev libavutil-devapt install libavformat-dev libavcodec-dev libevent-dev需要pip安装html5libapt install python3-pip/apt install pippip install html5libapt install python3-html5lib注意严格参考官方文档的支持环境可行性1、不支持静态编译2、Linux 6.7版本以后才支持arm64,并且需要在Debian系统下。3、GCC10CMake20nodejs20 这些看系统升级的版本达不到需要源码编译安装注意nodejs源码编译安装会很耗时10个小时以上debain升级后的GCC 10.2.1可以用不用升级4、只要不报错继续执行就可以。顺利的话大概需要8个小时以上5、WARNING: System GBM is disabled. The bundled minigbm supports Intel only, you might need to install libgbm to avoid rendering issues.需要安装 apt-install libgbm-dev6、WARNING: SensorFW support currently not enabled with cmake暂时没管备注编译完后目录如下把整个目录覆盖到QT目录下即可编译好的资源下载linuxarm64Qt6/PySide6WebEngine支持webrtc-h264资源-CSDN文库补充支持的属性 红色为关键项Building for: linux-g (arm64, CPU features: cx16 neon)Compiler: gcc 12.1.0Build options:Mode ................................... releaseOptimize release build for size ........ noFully optimize release builds (-O3) .... noBuilding shared libraries .............. yesUsing ccache ........................... noUnity Build ............................ noUsing new DTAGS ........................ yesRelocatable ............................ yesUsing precompiled headers .............. yesUsing Link Time Optimization (LTCG) .... noUsing Intel CET ........................ noTarget compiler supports:ARM Extensions ....................... NEONSanitizers:Addresses ............................ noThreads .............................. noMemory ............................... noFuzzer (instrumentation only) ........ noUndefined ............................ noBuild parts ............................ libs toolsInstall examples sources ............... noQt modules and options:Qt Concurrent .......................... yesQt D-Bus ............................... yesQt D-Bus directly linked to libdbus .... yesQt Gui ................................. yesQt Network ............................. yesQt PrintSupport ........................ yesQt Sql ................................. yesQt Testlib ............................. yesQt Widgets ............................. yesQt Xml ................................. yesSupport enabled for:Using pkg-config ....................... yesUsing vcpkg ............................ noudev ................................... yesOpenSSL ................................ yesQt directly linked to OpenSSL ........ noOpenSSL 1.1 ............................ yesOpenSSL 3.0 ............................ noUsing system zlib ...................... yesZstandard support ...................... noThread support ......................... yesCommon build options:Linker can resolve circular dependencies noCMake policy CMP0099 is supported ...... yesQt Core:backtrace .............................. yesDoubleConversion ....................... yesUsing system DoubleConversion ........ noCLONE_PIDFD support in forkfd .......... yesGLib ................................... yesICU .................................... noUsing system libb2 ..................... noBuilt-in copy of the MIME database ..... yesApplication permissions ................ yesDefaulting legacy IPC to POSIX ......... noTracing backend ........................ noneOpenSSL based cryptographic hash ....... noLogging backends:journald ............................. nosyslog ............................... noslog2 ................................ noPCRE2 .................................. yesUsing system PCRE2 ................... yesQt Sql:SQL item models ........................ yesQt Network:getifaddrs() ........................... noIPv6 ifname ............................ nolibproxy ............................... noLinux AF_NETLINK ....................... yesDTLS ................................... yesOCSP-stapling .......................... yesSCTP ................................... noUse system proxies ..................... yesGSSAPI ................................. noBrotli Decompression Support ........... yesqIsEffectiveTLD() ...................... yesBuilt-in publicsuffix database ....... yesSystem publicsuffix database ......... yesCore tools:Android deployment tool ................ yesmacOS deployment tool .................. noWindows deployment tool ................ noqmake .................................. yesQt Gui:Accessibility .......................... yesFreeType ............................... yesUsing system FreeType ................ yesHarfBuzz ............................... yesUsing system HarfBuzz ................ noFontconfig ............................. yesImage formats:GIF .................................. yesICO .................................. yesJPEG ................................. yesUsing system libjpeg ............... yesPNG .................................. yesUsing system libpng ................ yesText formats:HtmlParser ........................... yesCssParser ............................ yesOdfWriter ............................ yesMarkdownReader ....................... yesUsing system libmd4c ............... noMarkdownWriter ....................... yesEGL .................................... yesOpenVG ................................. noOpenGL:Desktop OpenGL ....................... yesOpenGL ES 2.0 ........................ noOpenGL ES 3.0 ........................ noOpenGL ES 3.1 ........................ noOpenGL ES 3.2 ........................ noVulkan ................................. noSession Management ..................... yesFeatures used by QPA backends:evdev .................................. yeslibinput ............................... noHiRes wheel support in libinput ........ noINTEGRITY HID .......................... nomtdev .................................. notslib .................................. yesxkbcommon .............................. yesX11 specific:XLib ................................. yesXCB Xlib ............................. yesEGL on X11 ........................... yesxkbcommon-x11 ........................ yesxcb-sm ............................... noQPA backends:DirectFB ............................... noEGLFS .................................. yesEGLFS details:EGLFS OpenWFD ........................ noEGLFS i.Mx6 .......................... noEGLFS i.Mx6 Wayland .................. noEGLFS RCAR ........................... noEGLFS EGLDevice ...................... yesEGLFS GBM ............................ noEGLFS VSP2 ........................... noEGLFS Mali ........................... noEGLFS Raspberry Pi ................... noEGLFS X11 ............................ yesLinuxFB ................................ yesVNC .................................... yesVK_KHR_display ......................... noQNX:lgmon ................................ noIMF .................................. noXCB:Using system-provided xcb-xinput ..... noGL integrations:GLX Plugin ......................... noXCB GLX .......................... noEGL-X11 Plugin ..................... noWindows:Direct 2D ............................ noDirect 2D 1.1 ........................ noDirectWrite .......................... noDirectWrite 3 ........................ noQt Widgets:GTK ................................... noStyles ................................. Fusion WindowsQt Testlib:Tester for item models ................. yesBatch tests ............................ noQt PrintSupport:CUPS ................................... yesQt Sql Drivers:DB2 (IBM) .............................. noInterBase .............................. noMySql .................................. noOCI (Oracle) ........................... noODBC ................................... noPostgreSQL ............................. noSQLite ................................. yesUsing system provided SQLite ......... noMimer .................................. noFurther Image Formats:JasPer ................................. noMNG .................................... noTIFF ................................... yesUsing system libtiff ................. yesWEBP ................................... yesUsing system libwebp ................. yesQt QML:QML network support .................... yesQML debugging and profiling support .... yesQML just-in-time compiler .............. yesQML XML http request ................... yesQML Locale ............................. yesQML SSL support ........................ yesQt QML:QML network support .................... yesQML debugging and profiling support .... yesQML just-in-time compiler .............. yesQML XML http request ................... yesQML Locale ............................. yesQML SSL support ........................ yesQt QML Models:QML list model ......................... yesQML delegate model ..................... yesQt Quick:AnimatedImage item ..................... yesCanvas item ............................ yesSupport for Qt Quick Designer .......... yesFlipable item .......................... yesGridView item .......................... yesListView item .......................... yesTableView item ......................... yesTreeView item .......................... yesPath support ........................... yesPathView item .......................... yesPositioner items ....................... yesRepeater item .......................... yesShaderEffect item ...................... yesSprite item ............................ yesQt Quick Templates 2:Hover support .......................... yesMulti-touch support .................... yesCalendar support ....................... yesQt Quick Controls 2:Styles ................................. Basic Fusion Imagine Material UniversalQtQuick3D:Assimp ................................. yesSystem Assimp .......................... noQt Multimedia:Spatial Audio .......................... yesSpatial Audio (Quick3D) ................ yesLow level Audio Backend:ALSA (experimental) .................. noPulseAudio ........................... yesMMRenderer ........................... noCoreAudio ............................ noWindows Media SDK .................... noOpen SLES (Android) .................. noWeb Assembly ......................... noPlugin:GStreamer 1.0 ........................ noFFmpeg ............................... noMMRenderer ........................... noAVFoundation ......................... noWindows Media Foundation ............. noHardware acceleration and features:Video for Linux ...................... yesVAAPI support ........................ noLinux DMA buffer support ............. yesVideoToolbox ......................... noQt 3D:Assimp ................................. yesSystem Assimp .......................... noAspects:Render aspect ........................ yesInput aspect ......................... yesLogic aspect ......................... yesAnimation aspect ..................... yesExtras aspect ........................ yesQt 3D APIs:Vulkan ................................. noQt 3D Renderers:OpenGL Renderer ........................ yesRHI Renderer ........................... yesQt3D Geometry Loaders:Autodesk FBX ........................... noQt 5 Compatibility Libraries:iconv .................................. yesQt Charts Types:Area Chart ............................. yesLine Chart ............................. yesSpline Chart ........................... yesScatter Chart .......................... yesBar Chart .............................. yesPie Chart .............................. yesBoxplot Chart .......................... yesCandlestick Chart ...................... yesQt Axis Types:DateTime Axis .......................... yesQt Bluetooth:BlueZ .................................. yesBlueZ Low Energy ....................... yesLinux Crypto API ....................... yesWinRT Bluetooth API .................... noQt Graphs Support:2D Graphs .............................. yes3D Graphs .............................. yesQt Graphs 3D:Bars3D ................................. yesScatter3D .............................. yesSurface3D .............................. yesSerial Port:ntddmodm ............................... noQt Tools:Qt Assistant ........................... yeslibclang found ......................... yesClang-based lupdate parser ............. yesQt Designer ............................ yesQt Distance Field Generator ............ yesQt Linguist ............................ yespixeltool .............................. yesqdbus .................................. yesQDoc ................................... noQt Attributions Scanner ................ yesqtdiag ................................. yesqtplugininfo ........................... yesWebEngine Repository Build Options:Build Ninja ............................ noBuild Gn ............................... yesJumbo Build ............................ yesDeveloper build ........................ noBuild QtWebEngine Modules:Build QtWebEngineCore ................ yesBuild QtWebEngineWidgets ............. yesBuild QtWebEngineQuick ............... yesBuild QtPdf Modules:Build QtPdfWidgets ................... yesBuild QtPdfQuick ..................... yesOptional system libraries:re2 .................................. noicu .................................. nolibwebp, libwebpmux and libwebpdemux . yesopus ................................. yesffmpeg ............................... nolibvpx ............................... nosnappy ............................... noglib ................................. yeszlib ................................. yesminizip .............................. yeslibevent ............................. yeslibxml2 and libxslt .................. nolcms2 ................................ nopng .................................. yestiff ................................. yesjpeg ................................. yeslibopenjpeg2 ......................... noharfbuzz ............................. nofreetype ............................. yeslibpci ............................... yesQt WebEngineCore:Embedded build ......................... noFull debug information ................. noSanitizer support ...................... noPepper Plugins ......................... yesPrinting and PDF ....................... yesProprietary Codecs ..................... yesSpellchecker ........................... yesWebRTC ................................. yesPipeWire over GIO ...................... noGeolocation ............................ yesWebChannel support ..................... yesKerberos Authentication ................ noExtensions ............................. yesSupport GLX on qpa-xcb ................. noVA-API support ......................... noUse ALSA ............................... yesUse PulseAudio ......................... yesUse v8 context snapshot ................ yesBuild WebEngineDriver .................. yesQt WebEngineQuick:UI Delegates ........................... yesQt PDF:Support V8 ............................. noSupport XFA ............................ noSupport XFA-BMP ........................ noSupport XFA-GIF ........................ noSupport XFA-PNG ........................ noSupport XFA-TIFF ....................... noBitcode support ........................ noUse static runtime ..................... noQt Protobuf:Qt Core types support .................. noQt Gui types support ................... noWell-known types support ............... noQt Protobuf tools:Qt Protobuf generator .................. noQt GRPC:gRPC support ........................... yesQML gRPC support ....................... yesQt GRPC tools:Qt GRPC generator ...................... noQt Opcua:Open62541 .............................. yesSupport for namespace 0 NodeId names ... yesInternal code generator ................ noOpen62541 security support ............. yesSupport for global discovery server .... yesData type code generator ............... yesQt Remote Objects:High Availability Manager (ham) ........ noQt Scxml:ECMAScript data model for QtScxml ...... yesQt Sensors:sensorfw ............................... nosensorfw_enabled_with_cmake ............ noQt SerialBus:Socket CAN ............................. yesSocket CAN FD .......................... yesSerialPort Support ..................... yesQt TextToSpeech:Flite .................................. noFlite with ALSA ........................ noSpeech Dispatcher ...................... noQt Virtualkeyboard:Desktop integration .................... yesBuilt-in layouts ....................... yesKey navigation ......................... noRetro style as default ................. noSensitive Debug ........................ noCerence ................................ noStatic Linking ....................... noHandwriting .......................... noAlphabetic ......................... noCJK ................................ noXT9 .................................. noXT9 Debug .......................... noXT9 9-key layouts .................. noBundle resources ..................... noHandwriting ........................ noXT9 ................................ noHunspell ............................... yesUsing Hunspell copy from 3rdparty/ ... noOpenWnn ................................ yesMyScript ............................... noExample HWR ............................ noLanguage support enabled for:Arabic ............................... yesBulgarian ............................ yesCzech ................................ yesDanish ............................... yesGerman ............................... yesGreek ................................ yesEnglish GB ........................... yesEnglish US ........................... yesSpanish .............................. yesSpanish Mexico ....................... yesEstonian ............................. yesFarsi ................................ yesFinnish .............................. yesFrench Canada ........................ yesFrench France ........................ yesHebrew ............................... yesHindi ................................ yesCroatian ............................. yesHungarian ............................ yesIndonesian ........................... yesItalian .............................. yesJapanese ............................. yesKorean ............................... yesMalay ................................ yesNorwegian ............................ yesDutch ................................ yesPolish ............................... yesPortuguese Brazil .................... yesPortuguese Portugal .................. yesRomanian ............................. yesRussian .............................. yesSlovak ............................... yesSlovenian ............................ yesAlbanian ............................. yesSerbian .............................. yesSwedish .............................. yesThai ................................. yesTurkish .............................. yesUkrainian ............................ yesVietnamese ........................... yesSimplified Chinese ................... yesTraditional Chinese .................. yesHongKong Chinese ..................... noTraditional chinese input methods:Zhuyin ............................... yesCangjie .............................. yes--