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

网站怎么做吸引人汉化主题 wordpress

网站怎么做吸引人,汉化主题 wordpress,做网站的图片大全,网站建设公司汕头的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/a/404595.html

相关文章:

  • 网站建设定金做什么会计分录网站有死链怎么处理
  • 影视作品网站开发与设计app开发定制专家公司
  • 前端 兼职做网站公司网站备案怎么弄
  • 合肥网站设计建设公司vps 建网站 代理
  • 网站建设费用属于管理费用科目南县网站设计
  • 网站制作哪里好薇建站之星服务器
  • 知道源码做网站网站建设公司收费
  • 有什么做兼职的好网站网架生产企业
  • 深圳市建网站公制作网页的软件有哪些
  • 营销类网站有哪些设计主题和设计理念
  • 长沙做网站最好的公司c2c跨境电商平台有哪些?
  • 南京网站建站公司WordPress仿wp大学模板
  • 毕设代做的网站郑州建设银行网站房贷网点在哪
  • 音频网站模板网站查询ip解析
  • 桂林有帮做公司网站吗十堰市公司网站建设
  • html源码网站建设中wordpress 时间调用
  • 做网站前端有前途么?争对银行排队做一网站
  • 免费推广网站注册入口wordpress ios api
  • 江阴做网站的成都哪些公司做网站好
  • 企业名称查询网站企业网站模板下载软件
  • 智能网站建设公司排名给一个学校网站做宣传海报
  • 彭山网站建设家具网站素材
  • html论坛网站模板下载丽水做网站公司
  • ueeshop外贸建站公司网站功能简介
  • 上海建设公司网站wordpress企业站模板下载
  • 网站秒收录工具沧州网站设计师招聘
  • 建网站大公司企业网址一般怎么设置
  • 已经有域名 如何建网站社保网站哪里做转入
  • 关于自行建设门户网站的请示长春做网站大公司
  • 凡科删除建设的网站开发流程有哪些阶段