当前位置: 首页 > wzjs >正文

公司网站流程南宁seo服务优化

公司网站流程,南宁seo服务优化,中信建设有限责任公司估值,口碑好的邯郸网站建设imx6ul运行qml的Qt程序报错This plugin does not support createPlatformOpenGLContext!1、开发环境2、问题复现3、解决办法第一种方法第二种方法4、结论1、开发环境 主板:imx6ul Qt版本:5.9.6 文件系统:buildroot 问题描述:现需…

imx6ul运行qml的Qt程序报错This plugin does not support createPlatformOpenGLContext!

  • 1、开发环境
  • 2、问题复现
  • 3、解决办法
      • 第一种方法
      • 第二种方法
  • 4、结论

1、开发环境

主板:imx6ul
Qt版本:5.9.6
文件系统:buildroot
问题描述:现需要在现有的文件系统中的Qt环境运行qml程序

2、问题复现

运行一个Qt自带的例程程序虚拟键盘输入Demo程序:basic
在这里插入图片描述
将basic程序交叉编译后放至imx6ul板子端运行,报以下错误:

root@imx6ul:~# ./basic
evdevtouch: /dev/input/event0: Invalid ABS limits, behavior unspecified
This plugin does not support createPlatformOpenGLContext!
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile))
Aborted

这个错误大概是由于imx6ul本身是不带用GPU功能的,所以只能使用linuxfb插件,也就是说软件渲染。如果是使用qml去编写程序,需特别注意不能使用到Quick2。

3、解决办法

1、在Qt源码编译的时候,可以增加一个编译选项-no-opengl,这样就可以确保编译之后 不带有opengl的相关库,比如QtGraphicalEffects模块就不会再编译出来。

第一种方法

./configure -release \-xplatform linux-arm-gnueabi-g++ \-no-dbus \-no-opengl\    //添加此选项-prefix /home/hyb/qt-everywhere-opensource-src-5.9.1/arm-qt \-opensource -confirm-license -make libs \-nomake tools -nomake examples -nomake tests \-skip qt3d -skip qtandroidextras -skip qtcanvas3d \-skip qtconnectivity -skip qtdatavis3d -skip qtdoc \-skip qtgamepad -skip qtimageformats -skip qtlocation \-skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtsensors \-skip qtserialbus -skip qtspeech  -skip qttools -skip qtwebchannel \-skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras \-skip qtx11extras -no-feature-iconv -no-feature-gestures -no-qml-debug \-I/opt/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include

第二种方法

如果在第一种方法的前提下不加-no-opengl这个编译选项的话,在板子端执行大概率会报上述basic运行的错误,在查看Qt官网的相关资料,发现可以配置为软件渲染,通过设置环境变量来实现。

LinuxFB
This plugin writes directly to the framebuffer via Linux’s fbdev subsystem. Only software-rendered content is supported. Note that on some setups the display performance is expected to be limited. To use Qt Quick applications with this platform plugin, the software scenegraph backend must be used, either by setting QT_QUICK_BACKEND=software in the environment, or by calling setGraphicsApi() with QSGRendererInterface::Software. QWidget applications, or QWindow with a surface type of QSurface::RasterSurface, are supported, but this does not include special widgets such as QOpenGLWidget.

export QT_QUICK_BACKEND="software"

4、结论

通过以上方法后,basic的虚拟键盘程序就可以正常运行了。

http://www.dtcms.com/wzjs/154525.html

相关文章:

  • 企业营销型网站推广方法广州百度seo排名优化
  • 广安做网站公司搜索关键词排行榜
  • 平板电脑可以做淘宝网站吗网络运营师资格证
  • 做网站内页图片尺寸广西百度seo
  • 商城网站建设多少钱网站推广平台
  • 运用django做网站免费二级域名建站
  • 襄阳网络公司 网站建设2345网址导航电脑版
  • 搜索网站 模板百度宣传做网站多少钱
  • 16岁学生免费开网店广州优化疫情防控举措
  • 青岛市专业做网站的吗福州seo按天付费
  • 陕西百威建设监理有限司网站免费推广方法有哪些
  • 关键字查询我的网站怎么做保定百度推广联系电话
  • 婚庆网站建设策划案费用预算如何做外贸网站的推广
  • 合肥做双语网站网站发布与推广方式
  • wordpress跳转链接插件汉化北京seo营销公司
  • 网站开发价格表公司网站建设平台
  • 网站404设置小红书怎么推广引流
  • php制作网站开发建站cms
  • 网络编程技术清华大学出版社答案关键词优化排名工具
  • 网站建设的源代码网络推广属于什么行业
  • 网站官网认证加v怎么做关键词seo排名怎么样
  • 美食网站建设规划书需求分析北京seo
  • 中国摄影师个人网站设计大数据智能营销
  • 网络营销客户的心里特征网络seo优化平台
  • 有哪些好的网站建设搜索引擎优化自然排名的优点
  • 四川建设网站塔吊百度手机版
  • 微网站 html百度论坛发帖
  • 网站建设客服专员搜索关键词排名优化
  • 不属于网站后期维护常用的关键词有哪些
  • 政府网站建设的不足百度搜索图片