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

相关文章

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

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

linux环境openssl、openssh升级流程

《linux环境openssl、openssh升级流程》该文章详细介绍了在Ubuntu22.04系统上升级OpenSSL和OpenSSH的方法,首先,升级OpenSSL的步骤包括下载最新版本、安装编译... 目录一.升级openssl1.官网下载最新版openssl2.安装编译环境3.下载后解压安装4.备份

Ubuntu 22.04 服务器安装部署(nginx+postgresql)

《Ubuntu22.04服务器安装部署(nginx+postgresql)》Ubuntu22.04LTS是迄今为止最好的Ubuntu版本之一,很多linux的应用服务器都是选择的这个版本... 目录是什么让 Ubuntu 22.04 LTS 变得安全?更新了安全包linux 内核改进一、部署环境二、安装系统

Ubuntu固定虚拟机ip地址的方法教程

《Ubuntu固定虚拟机ip地址的方法教程》本文详细介绍了如何在Ubuntu虚拟机中固定IP地址,包括检查和编辑`/etc/apt/sources.list`文件、更新网络配置文件以及使用Networ... 1、由于虚拟机网络是桥接,所以ip地址会不停地变化,接下来我们就讲述ip如何固定 2、如果apt安

在Mysql环境下对数据进行增删改查的操作方法

《在Mysql环境下对数据进行增删改查的操作方法》本文介绍了在MySQL环境下对数据进行增删改查的基本操作,包括插入数据、修改数据、删除数据、数据查询(基本查询、连接查询、聚合函数查询、子查询)等,并... 目录一、插入数据:二、修改数据:三、删除数据:1、delete from 表名;2、truncate

使用C/C++调用libcurl调试消息的方式

《使用C/C++调用libcurl调试消息的方式》在使用C/C++调用libcurl进行HTTP请求时,有时我们需要查看请求的/应答消息的内容(包括请求头和请求体)以方便调试,libcurl提供了多种... 目录1. libcurl 调试工具简介2. 输出请求消息使用 CURLOPT_VERBOSE使用 C

VScode连接远程Linux服务器环境配置图文教程

《VScode连接远程Linux服务器环境配置图文教程》:本文主要介绍如何安装和配置VSCode,包括安装步骤、环境配置(如汉化包、远程SSH连接)、语言包安装(如C/C++插件)等,文中给出了详... 目录一、安装vscode二、环境配置1.中文汉化包2.安装remote-ssh,用于远程连接2.1安装2

怎么关闭Ubuntu无人值守升级? Ubuntu禁止自动更新的技巧

《怎么关闭Ubuntu无人值守升级?Ubuntu禁止自动更新的技巧》UbuntuLinux系统禁止自动更新的时候,提示“无人值守升级在关机期间,请不要关闭计算机进程”,该怎么解决这个问题?详细请看... 本教程教你如何处理无人值守的升级,即 Ubuntu linux 的自动系统更新。来源:https://

Java中的Opencv简介与开发环境部署方法

《Java中的Opencv简介与开发环境部署方法》OpenCV是一个开源的计算机视觉和图像处理库,提供了丰富的图像处理算法和工具,它支持多种图像处理和计算机视觉算法,可以用于物体识别与跟踪、图像分割与... 目录1.Opencv简介Opencv的应用2.Java使用OpenCV进行图像操作opencv安装j

C++中实现调试日志输出

《C++中实现调试日志输出》在C++编程中,调试日志对于定位问题和优化代码至关重要,本文将介绍几种常用的调试日志输出方法,并教你如何在日志中添加时间戳,希望对大家有所帮助... 目录1. 使用 #ifdef _DEBUG 宏2. 加入时间戳:精确到毫秒3.Windows 和 MFC 中的调试日志方法MFC