ubuntu上minigui调试环境的建立

2024-01-25 16:38

本文主要是介绍ubuntu上minigui调试环境的建立,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 

 

minigui一共有两个版本:商业版(2.0.4)和GPL版(1.6.10),问了一下飞漫软件,使用商业版前期的费用是9万,有技术支持,包括5000个licenses的费用,后期10K的量的话,每个licenses要6块,50K的话,就是4块,如果用GPL版的话,就没有前期的费用,只有licenses的费用,老板想了一下,我们还是使用开源版,其实我要是老板的话,我就用商业版,出产品快阿。。。。
     ubuntu下minigui环境的建立:
minigui需要一个qvfb的支持:
sudo apt-get install qt3-dev-tools-embedded
Provided by: qt3-dev-tools-embedded_3.3.8-b-0ubuntu3_i386

 

 

 

NAME

        qvfb - Virtual framebuffer for Qt

DESCRIPTION

        The  virtual framebuffer allows Qt/Embedded programs to be developed onyour desktop machine, without switching between consoles and X11.Start a Qt/Embedded master application  (i.e.,  construct  QApplicationwith  QApplication::GuiServer flag or use the -qws command line parame‐ter). You will need to specify to the server that you wish to  use  thevirtual framebuffer driver, e.g.:widgets -qws -display QVFb:0You  may  prefer  to  set  the  QWS_DISPLAY  environment variable to beQVFb:0.qvfb supports the following command line options:-width width: the width of the virtual framebuffer(default: 240).-height height: the height of the virtual framebuffer(default: 320).-depth depth: the depth of the virtual framebuffer (1, 8or 32; default: 8).-nocursor: do not display the X11 cursor in theframebuffer window.-qwsdisplay :id the Qt/Embedded display id to provide(default: 0).Virtual Framebuffer DesignThe virtual framebuffer emulates a framebuffer using  a  shared  memoryregion  (the  virtual frame buffer) and a utility to display the frame‐buffer in a window (qvfb).   The  regions  of  the  display  that  havechanged are updated periodically, so you will see discrete snapshots ofthe framebuffer rather than each individual drawing operation. For thisreason  drawing  problems  such as flickering may not be apparent untilthe program is run using a real framebuffer.The target refresh rate can be set via  the  "View|Refresh  Rate"  menuitem.  This  will cause qvfb to check for updated regions more quickly.The rate is a target only.  If little drawing is being done, the frame‐buffer will not show any updates between drawing events. If an applica‐tion is displaying an animation the updates will be frequent,  and  theapplication and qvfb will compete for processor time.Mouse  and keyboard events are passed to the Qt/Embedded master processvia named pipes.The virtual framebuffer is a development tool only. No security  issueshave  been  considered  in the virtual framebuffer design. It should beavoided in a production environment;  QT_NO_QWS_VFB  should  always  bedefined in production libraries.libminigui-1.6.10
minigui-res-1.6.10
mg-samples-1.6.10首先编译libminigui-1.6.10,其编译方式请参照minigui的相关说明,最好不要更改prefix参数,同时要注意你的LD_LIBRARY_PATH定义,
不然你编译minigui的例子的时候,会报出系统无法找到库文件和头文件的问题,头文件默认会安装在/usr/local/include目录下,但是你如果不指定
C_INCLUDE_DIR的话,同样会报出找不到头文件的问题,最好把头文件拷过去就行,在libminigui安装好了之后,安装minigui的res,这个很简单,
这个执行完毕之后,可以编译例子,编译完的例子程序运行时,会出现如下的错误:
yongtao@ubuntu:~/km118-display/mg-samples-1.6.10/src$ ./simplekey 
NEWGAL: Does not find matched engine: qvfb.
InitGUI: Can not get graphics engine information!
问题就是没有安装qvfb,你去查看你的/usr/local/etc/minigui.cfg文件,指定的显示器gal是qvfb,ubuntu的用户不用自己下载qvfb的代码来
安装,并且自己安装还会说找不到qt3,而实际上qt3已经被安装,只需要使用我最前面使用的命令安装即可。。
然后再次运行,还是会报一样的错误,这里就需要先运行qvfb
yongtao@ubuntu:~/km118-display/mg-samples-1.6.10/src$ qvfb &
[1] 16533
会弹出一个界面,file->configure来配置屏幕大小。
然后运行你编译的例子
yongtao@ubuntu:~/km118-display/mg-samples-1.6.10/src$ ./simplekey
在弹出的界面显示你运行的控件,则例子运行成功!

这篇关于ubuntu上minigui调试环境的建立的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/643898

相关文章

Ubuntu中远程连接Mysql数据库的详细图文教程

《Ubuntu中远程连接Mysql数据库的详细图文教程》Ubuntu是一个以桌面应用为主的Linux发行版操作系统,这篇文章主要为大家详细介绍了Ubuntu中远程连接Mysql数据库的详细图文教程,有... 目录1、版本2、检查有没有mysql2.1 查询是否安装了Mysql包2.2 查看Mysql版本2.

新特性抢先看! Ubuntu 25.04 Beta 发布:Linux 6.14 内核

《新特性抢先看!Ubuntu25.04Beta发布:Linux6.14内核》Canonical公司近日发布了Ubuntu25.04Beta版,这一版本被赋予了一个活泼的代号——“Plu... Canonical 昨日(3 月 27 日)放出了 Beta 版 Ubuntu 25.04 系统镜像,代号“Pluc

Centos环境下Tomcat虚拟主机配置详细教程

《Centos环境下Tomcat虚拟主机配置详细教程》这篇文章主要讲的是在CentOS系统上,如何一步步配置Tomcat的虚拟主机,内容很简单,从目录准备到配置文件修改,再到重启和测试,手把手带你搞定... 目录1. 准备虚拟主机的目录和内容创建目录添加测试文件2. 修改 Tomcat 的 server.X

VSCode配置Anaconda Python环境的实现

《VSCode配置AnacondaPython环境的实现》VisualStudioCode中可以使用Anaconda环境进行Python开发,本文主要介绍了VSCode配置AnacondaPytho... 目录前言一、安装 Visual Studio Code 和 Anaconda二、创建或激活 conda

Ubuntu中Nginx虚拟主机设置的项目实践

《Ubuntu中Nginx虚拟主机设置的项目实践》通过配置虚拟主机,可以在同一台服务器上运行多个独立的网站,本文主要介绍了Ubuntu中Nginx虚拟主机设置的项目实践,具有一定的参考价值,感兴趣的可... 目录简介安装 Nginx创建虚拟主机1. 创建网站目录2. 创建默认索引文件3. 配置 Nginx4

pytorch+torchvision+python版本对应及环境安装

《pytorch+torchvision+python版本对应及环境安装》本文主要介绍了pytorch+torchvision+python版本对应及环境安装,安装过程中需要注意Numpy版本的降级,... 目录一、版本对应二、安装命令(pip)1. 版本2. 安装全过程3. 命令相关解释参考文章一、版本对

国内环境搭建私有知识问答库踩坑记录(ollama+deepseek+ragflow)

《国内环境搭建私有知识问答库踩坑记录(ollama+deepseek+ragflow)》本文给大家利用deepseek模型搭建私有知识问答库的详细步骤和遇到的问题及解决办法,感兴趣的朋友一起看看吧... 目录1. 第1步大家在安装完ollama后,需要到系统环境变量中添加两个变量2. 第3步 “在cmd中

Windows环境下安装达梦数据库的完整步骤

《Windows环境下安装达梦数据库的完整步骤》达梦数据库的安装大致分为Windows和Linux版本,本文将以dm8企业版Windows_64位环境为例,为大家介绍一下达梦数据库的具体安装步骤吧... 目录环境介绍1 下载解压安装包2 根据安装手册安装2.1 选择语言 时区2.2 安装向导2.3 接受协议

SpringBoot基于沙箱环境实现支付宝支付教程

《SpringBoot基于沙箱环境实现支付宝支付教程》本文介绍了如何使用支付宝沙箱环境进行开发测试,包括沙箱环境的介绍、准备步骤、在SpringBoot项目中结合支付宝沙箱进行支付接口的实现与测试... 目录一、支付宝沙箱环境介绍二、沙箱环境准备2.1 注册入驻支付宝开放平台2.2 配置沙箱环境2.3 沙箱

前端bug调试的方法技巧及常见错误

《前端bug调试的方法技巧及常见错误》:本文主要介绍编程中常见的报错和Bug,以及调试的重要性,调试的基本流程是通过缩小范围来定位问题,并给出了推测法、删除代码法、console调试和debugg... 目录调试基本流程调试方法排查bug的两大技巧如何看控制台报错前端常见错误取值调用报错资源引入错误解析错误