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

相关文章

阿里开源语音识别SenseVoiceWindows环境部署

SenseVoice介绍 SenseVoice 专注于高精度多语言语音识别、情感辨识和音频事件检测多语言识别: 采用超过 40 万小时数据训练,支持超过 50 种语言,识别效果上优于 Whisper 模型。富文本识别:具备优秀的情感识别,能够在测试数据上达到和超过目前最佳情感识别模型的效果。支持声音事件检测能力,支持音乐、掌声、笑声、哭声、咳嗽、喷嚏等多种常见人机交互事件进行检测。高效推

安装nodejs环境

本文介绍了如何通过nvm(NodeVersionManager)安装和管理Node.js及npm的不同版本,包括下载安装脚本、检查版本并安装特定版本的方法。 1、安装nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash 2、查看nvm版本 nvm --version 3、安装

ASIO网络调试助手之一:简介

多年前,写过几篇《Boost.Asio C++网络编程》的学习文章,一直没机会实践。最近项目中用到了Asio,于是抽空写了个网络调试助手。 开发环境: Win10 Qt5.12.6 + Asio(standalone) + spdlog 支持协议: UDP + TCP Client + TCP Server 独立的Asio(http://www.think-async.com)只包含了头文件,不依

【IPV6从入门到起飞】5-1 IPV6+Home Assistant(搭建基本环境)

【IPV6从入门到起飞】5-1 IPV6+Home Assistant #搭建基本环境 1 背景2 docker下载 hass3 创建容器4 浏览器访问 hass5 手机APP远程访问hass6 更多玩法 1 背景 既然电脑可以IPV6入站,手机流量可以访问IPV6网络的服务,为什么不在电脑搭建Home Assistant(hass),来控制你的设备呢?@智能家居 @万物互联

如何在Visual Studio中调试.NET源码

今天偶然在看别人代码时,发现在他的代码里使用了Any判断List<T>是否为空。 我一般的做法是先判断是否为null,再判断Count。 看了一下Count的源码如下: 1 [__DynamicallyInvokable]2 public int Count3 {4 [__DynamicallyInvokable]5 get

高并发环境中保持幂等性

在高并发环境中保持幂等性是一项重要的挑战。幂等性指的是无论操作执行多少次,其效果都是相同的。确保操作的幂等性可以避免重复执行带来的副作用。以下是一些保持幂等性的常用方法: 唯一标识符: 请求唯一标识:在每次请求中引入唯一标识符(如 UUID 或者生成的唯一 ID),在处理请求时,系统可以检查这个标识符是否已经处理过,如果是,则忽略重复请求。幂等键(Idempotency Key):客户端在每次

计算机毕业设计 大学志愿填报系统 Java+SpringBoot+Vue 前后端分离 文档报告 代码讲解 安装调试

🍊作者:计算机编程-吉哥 🍊简介:专业从事JavaWeb程序开发,微信小程序开发,定制化项目、 源码、代码讲解、文档撰写、ppt制作。做自己喜欢的事,生活就是快乐的。 🍊心愿:点赞 👍 收藏 ⭐评论 📝 🍅 文末获取源码联系 👇🏻 精彩专栏推荐订阅 👇🏻 不然下次找不到哟~Java毕业设计项目~热门选题推荐《1000套》 目录 1.技术选型 2.开发工具 3.功能

pico2 开发环境搭建-基于ubuntu

pico2 开发环境搭建-基于ubuntu 安装编译工具链下载sdk 和example编译example 安装编译工具链 sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib 注意cmake的版本,需要在3.17 以上 下载sdk 和ex

pip-tools:打造可重复、可控的 Python 开发环境,解决依赖关系,让代码更稳定

在 Python 开发中,管理依赖关系是一项繁琐且容易出错的任务。手动更新依赖版本、处理冲突、确保一致性等等,都可能让开发者感到头疼。而 pip-tools 为开发者提供了一套稳定可靠的解决方案。 什么是 pip-tools? pip-tools 是一组命令行工具,旨在简化 Python 依赖关系的管理,确保项目环境的稳定性和可重复性。它主要包含两个核心工具:pip-compile 和 pip