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

wordpress 正文 宽度整站seo定制

wordpress 正文 宽度,整站seo定制,推荐定制型网站建设,企业互联网整合营销前言 板子带有屏幕,那当然要设计一下 GUI,对 Qt5 比较熟悉,那就移植它吧。 移植 Qt5 buildroot 使能 Qt5,这里我们只开启核心功能 gui module --> widgets module 编译 $ make ODIY_V3S/ qt5base编译报错:找不…

前言

板子带有屏幕,那当然要设计一下 GUI,对 Qt5 比较熟悉,那就移植它吧。

移植 Qt5

buildroot 使能 Qt5,这里我们只开启核心功能 gui module --> widgets module
在这里插入图片描述
编译

$ make O=DIY_V3S/ qt5base

编译报错:找不到 “sybfront.h”头文件
原因是:qt 依赖一些库,而这些库是我之前编译的,之前的 toolchain 没有使能 c++,
所以要把依赖的库重新编译一下
查看 qt5base 的依赖

$ make O=DIY_V3S/ qt5base-show-depends
freetype host-perl host-pkgconf host-skeleton libglib2 skeleton toolchain zlib

重新编译 perl,就好了

调试

指定平台

拷贝一个之前编译好的 Qt 应用程序到板子,运行

root@v3s-diy:~/qt# ./lyj_test_0401 
qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: linuxfb, minimal, offscreen, vnc.Aborted

运行报错,提示找不到平台插件,其实我们是有的

root@v3s-diy:~/qt# ls /usr/lib/qt/plugins/platforms/
libqlinuxfb.so    libqminimal.so    libqoffscreen.so  libqvnc.so

只不过没有告诉 Qt 应用程序,或者说告诉 Qt 动态库,要使用哪个,
有两种方式告诉它
方式一:命令行参数

root@v3s-diy:~/qt# ./lyj_test_0401 -platform linuxfb

方式二:环境变量

root@v3s-diy:~# export QT_QPA_PLATFORM="linuxfb:tty=/dev/fb0"
root@v3s-diy:~# echo $QT_QPA_PLATFORM
linuxfb:tty=/dev/fb0
root@v3s-diy:~/qt# ./lyj_test_0401

在这里插入图片描述

运行后,可以显示图像了,但是文字不显示,并且命令行有报错

root@v3s-diy:~/qt# ./lyj_test_0401 
QFontDatabase: Cannot find font directory /usr/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
QFontDatabase: Cannot find font directory /usr/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
QFontDatabase: Cannot find font directory /usr/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
QFontDatabase: Cannot find font directory /usr/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
QFontDatabase: Cannot find font directory /usr/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.

添加字库

从报错信息可以看到,是缺少字库
从之前的板子中拷贝一份字库过来

# mkdir /usr/lib/fonts
# cp SourceHanSansCN-Regular.otf /usr/lib/fonts

运行

root@v3s-diy:~/qt# ./lyj_test_0401

请添加图片描述

程序运行正常,画面显示正常。

至此,Qt5 移植 OK。

http://www.tj-hxxt.cn/news/81969.html

相关文章:

  • 重庆网站建设找重庆万为seo网站诊断方案
  • 百度关于垃圾网站的处理郑州seo外包费用
  • 网站看不到预览图推广软件是什么工作
  • 镜湖区城乡建设委员会网站网站优化效果
  • 公司软件网站建设广州网站seo
  • icp备案网站接入信息怎么填企业网站seo优化公司
  • 机wordpress站长工具seo综合查询引流
  • 网站运营工作流程文案短句干净治愈
  • 生小孩去什么网站做登记网络营销理论
  • 做网站什么框架比较好什么是营销模式
  • 免费b2b网站要怎么做电脑优化用什么软件好
  • 阿里云服务器搭建个人网站微信营销工具
  • b2c电商网站对比博客营销案例
  • 2018什么语言做网站比较好互联网广告推广公司
  • 广告联盟平台怎么加入外贸seo优化公司
  • 成都网站建设企业 排名上海百度公司总部
  • 网站会员系统怎么做糕点烘焙专业培训学校
  • 网站建设编程怎么写百度seo是啥
  • 泛微网络科技有限公司北京网站优化推广公司
  • 深圳疫情防控发布会seopeixun com cn
  • 网站制作绩效考核表营销网站建设制作
  • 曲阜市网站建设适合35岁女人的培训班
  • 做网站策划书吧怎么利用互联网推广
  • 在大学做网站百度人工客服电话24小时
  • 网站建设qq群企业网站怎么优化
  • 企业网站建设方案站长工具seo综合查询降级
  • 犬舍网站怎么做网站建设免费
  • 营销网站的成功案例短期培训学什么好
  • 用什么软件上传网站百度一下首页网页百度
  • 云南省科技网站有什么软件可以推广