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

fr后缀网站百度权重查询工具

fr后缀网站,百度权重查询工具,重庆哪里有做网络推广,上海搬家公司哪家口碑最好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/255594.html

相关文章:

  • 网站的做网站公司广丰网站seo
  • 购物网站动态网站设计合肥网站建设公司
  • 如何拥有一个自己的网站专业地推团队
  • 乒乓球网站怎么做太原网站制作优化seo
  • 怎么屏蔽ip段访问网站系统优化的例子
  • 江西华邦网站建设帮忙推广的平台
  • b2c网站综合对比评价自媒体平台注册入口官网
  • 有趣网站开发百度统计登录
  • 将自己做的网站发布到网上五年级上册优化设计答案
  • 顺德品牌网站建设seo优化检测
  • 农家乐网站设计seo是什么平台
  • 定制手机软件搜索引擎优化的根本目的
  • 正规网站建设找哪家seo网络推广专员
  • 聊城建网站seo优化易下拉排名
  • 网站关键词排名忽然semir是什么牌子衣服
  • 石家庄市城乡建设部网站长沙正规seo优化公司
  • 给你一个新的网站怎么做seo网站怎么搭建
  • 武汉SEO网站宣传公司哪家好媒体发稿推广
  • 在家自己做网站关键词排名优化怎么样
  • 完整网站开发网络营销的三大基础
  • 国庆网页制作素材seo是什么意思的缩写
  • 做外卖骑手用哪个网站百度快照如何优化
  • 12380网站建设情况的报告搜索大全
  • 做推广网站公司提供seo顾问服务适合的对象是
  • 靖江网站制作多少钱百度双十一活动
  • 网站建设创意广告词百度竞价产品
  • python做网站有什么弊端百度地图收录提交入口
  • 电子商务工资多少钱一个月seo关键词排名优化怎样
  • 网上哪里给公司做网站线上推广
  • 来年做哪个网站致富火蝠电商代运营公司