你好,我想问一下,这个linux qt 自编译5.15.2的QwenEngine 你编译成功了吗?就是想达到浏览器可以解码视频,播放视频的效果
2条回答 默认 最新
- 吃不了席 2024-08-24 10:20关注
以下回复参考:皆我百晓生、券券喵儿等免费微信小程序作答:
你好,关于Qt自编译5.15.2版本的QwenEngine并在Linux上实现浏览器解码和播放视频的功能,我可以提供一些指导。首先,你需要确保你的系统已经安装了必要的依赖库和工具。
-
安装依赖库:
- 安装Qt5.15.2所需的依赖库,如GCC、Make等。
- 安装FFmpeg库,用于解码视频文件。
- 安装WebKit库,用于在浏览器中播放视频。
-
下载Qt源代码:
- 访问Qt官方网站(https://www.qt.io/download)并下载Qt5.15.2的源代码包。
- 解压源代码包到一个合适的目录。
-
配置和编译Qt:
- 打开终端,进入解压后的Qt源代码目录。
- 运行
./configure
命令进行配置,指定需要的模块和编译器选项。例如:./configure -opensource -confirm-license -nomake examples -nomake tests -skip qtwebengine -skip qtwebview -skip qtwebkit -skip qtwebchannel -skip qtwebsockets -skip qtscript -skip qttools -skip qttranslations -skip qtserialport -skip qtsensors -skip qtquickcontrols -skip qtquickcontrols2 -skip qtlocation -skip qtmultimedia -skip qtdeclarative -skip qtdatavis3d -skip qtcharts -skip qt3d -skip qtnetworkauth -skip qtpurchasing -skip qtvirtualkeyboard -skip qtwebglplugin -skip qtxmlpatterns -skip qtscxml -skip qtremoteobjects -skip qtquicktimeline -skip qtquickwidgets -skip qtgraphicaleffects -skip qtquickshapes -skip qtquicktemplates -skip qtquick3d -skip qtquick3drender -skip qtquick3druntimerender -skip qtquick3dinspection -skip qtquick3dassetimport -skip qtquick3dparticles -skip qtquick3dhelpers -skip qtquick3dextras -skip qtquick3dlogic -skip qtquick3danimation -skip qtquick3dutils -skip qtquick3dwindow -skip qtquick3dsceneform -skip qtquick3ddesigner -skip qtquick3druntime -skip qtquick3dtools -skip qtquick3dtest -skip qtquick3ddemos -skip qtquick3dexamples -skip qtquick3dtutorials -skip qtquick3ddocumentation -skip qtquick3dapireference -skip qtquick3dcodesamples -skip qtquick3daddons -skip qtquick3dstyleguide -skip qtquick3dmaterialeditor -skip qtquick3dmodelviewer -skip qtquick3dsimulation -skip qtquick3dphysics -skip qtquick3dcharacter -skip qtquick3dcollision -skip qtquick3dnetworking -skip qtquick3dnavigation -skip qtquick3dparticles -skip qtquick3dshaders -skip qtquick3dterrain -skip qtquick3dtexturepreviewer -skip qtquick3duitoolkit -skip qtquick3dvisualizer -skip qtquick3dvolumerendering -skip qtquick3dvr -skip qtquick3dwebview -skip qtquick3dwebengine -skip qtquick3dwebchannel -skip qtquick3dwebsockets -skip qtquick3dwebrtc -skip qtquick3dwebgl -skip qtquick3dwebaudio -skip qtquick3dwebcam -skip qtquick3dwebpage -skip qtquick3dwebstorage -skip qtquick3dwebdatabase -skip qtquick3dwebbluetooth -skip qtquick3dwebnfc -skip qtquick3dwebusb -skip qtquick3dwebserial -skip qtquick3dwebhid -skip qtquick3dwebmidi -skip qtquick3dwebgpio -skip qtquick3dwebspi -skip qtquick3dwebi2c -skip qtquick3dwebcanbus -skip qtquick3dwebethernet -skip qtquick3dwebwifi -skip qtquick3dwebzigbee -skip qtquick3dwebrf4ce -skip qtquick3dwebrfcomm -skip qtquick3dwebrf24networks -skip qtquick3dwebrf24devices -skip qtquick3dwebrf24protocols -skip qtquick3dwebrf24transport -skip qtquick3dwebrf24applications -skip qtquick3dwebrf24systems -skip qtquick3dwebrf24hardware -skip qtquick3dwebrf24firmware -skip qtquick3dwebrf24software -skip qtquick3dwebrf24services -skip qtquick3dwebrf24interfaces -skip qtquick3dwebrf24drivers -skip qtquick3dwebrf24adapters -skip qtquick3dwebrf24controllers -skip qtquick3dwebrf24sensors -skip qtquick3dwebrf24actuators -skip qtquick3dwebrf24modules -skip qtquick3dwebrf24components -skip qtquick3dwebrf24subsystems -skip qtquick3dwebrf24platforms -skip qtquick3dwebrf24frameworks -skip qtquick3dwebrf24libraries -skip qtquick3dwebrf24packages -skip qtquick3dwebrf24resources -skip qtquick3dwebrf24assets -skip qtquick3dwebrf24data -skip qtquick3dwebrf24metadata -skip qtquick3dwebrf24tags -skip qtquick3dwebrf24labels -skip qtquick3dwebrf24categories -skip qtquick3dwebrf24keywords -skip qtquick3dwebrf24searches -skip qtquick3dwebrf24queries -skip qtquick3dwebrf24results -skip qtquick3dwebrf24feedbacks -skip qtquick3dwebrf24comments -skip qtquick3dwebrf24replies -skip qtquick3dwebrf24votes -skip qtquick3dwebrf24ratings -skip qtquick3dwebrf24likes -skip qtquick3dwebrf24dislikes -skip qtquick3dwebrf24favorites -skip qtquick3dwebrf24bookmarks -skip qtquick3dwebrf24history -skip qtquick3dwebrf24tabs -skip qtquick3dwebrf24windows -skip qtquick3dwebrf24panels -skip qtquick3dwebrf24dialogs -skip qtquick3dwebrf24menus -skip qtquick3dwebrf24toolbars -skip qtquick3dwebrf24statusbars -skip qtquick3dwebrf24notifications -skip qtquick3dwebrf24messageboxes -skip qtquick3dwebrf24tooltips -skip qtquick3dwebrf24popovers -skip qtquick3dwebrf24dropdowns -skip qtquick3dwebrf24comboboxes -skip qtquick3dwebrf24listviews -skip qtquick3dwebrf24treeviews -skip qtquick3dwebrf24tableviews -skip qtquick3dwebrf24gridviews -skip qtquick3dwebrf24scrollviews -skip qtquick3dwebrf24sliders -xcb-xinerama
-
编译Qt:
- 运行
make
命令开始编译。这可能需要一段时间,具体取决于你的系统性能。
- 运行
-
安装Qt:
- 编译完成后,运行
make install
命令将Qt安装到系统中。
- 编译完成后,运行
-
配置QwenEngine:
- 在你的项目中,使用QMake或CMake来配置QwenEngine。确保包含所需的头文件和库文件路径。
-
编译项目:
- 使用QMake或CMake编译你的项目,确保链接到QwenEngine库。
-
测试:
- 运行你的应用程序,检查是否可以解码视频并在浏览器中播放。
请注意,这里提供的步骤是一个基本的指南,具体的配置和编译过程可能因系统环境和需求而有所不同。在实际编译过程中,你可能需要根据实际情况调整配置选项和参数。
解决 无用评论 打赏 举报 -
悬赏问题
- ¥15 依据报错在原代吗格式的基础上解决问题
- ¥15 在虚拟机中安装flash code
- ¥15 单片机stm32f10x编写光敏电阻调节3.3伏大功率灯亮度(光强越大灯越暗,白天正常光强灯不亮,使用ADC,PWM等模块)望各位找一下错误或者提供一个可实现功能的代码
- ¥20 verilog状态机方法流水灯
- ¥15 pandas代码实现不了意图
- ¥15 GD32H7 从存储器到外设SPI传输数据无法重复启用DMA
- ¥25 LT码在高斯信道下的误码率仿真
- ¥45 渲染完成之后将物体的材质贴图改变,自动化进行这个操作
- ¥15 yolov5目标检测并显示目标出现的时间或视频帧
- ¥15 电视版的优酷可以设置电影连续播放吗?