QVFB无法显示-QT for嵌入式Linux演示示例 [英] QVFB not able to display the -- QT for embedded linux demo examples

查看:144
本文介绍了QVFB无法显示-QT for嵌入式Linux演示示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一段时间后,我可以为主机x11环境编译qvfb。
现在,我期待在其中运行QT嵌入式Linux演示程序。但是我在这方面并不成功

After giving sometime i am able to compile qvfb for host x11 enviroment. Now i am looking forward to run QT embedded linux demo program inside it. But i am not successful in this

http://doc.qt.io/qt-4.8/install-x11.html

在这里,我已经考虑了链接&的参考,为x11配置了QT源。我的qvfb位于以下位置:---
〜/ qt_source / qt_source_x11 / qt-everywhere-opensource-src-4.8.5 / bin

http://wiki.qt.io/Building_Qt_for_Embedded_Linux

在这里,我已参考上面的链接&配置和支持LinuxFB&的嵌入式Linux主机的已编译QT QVFB安装在以下位置:-
/opt/Qt5.1.1/4.8.5_embedded/gcc /

http://doc.qt.io/qt-4.8/qvfb。 html

https://twocleverbyfull.wordpress.com/2009/09/23/qt-embedded-part-2-using-qvfb/

现在,我将以上两个链接带入Refreence&想要为qvfb中的嵌入式应用示例运行qt。

http://doc.qt.io/qt-4.8/qvfb.html
https://twocleverbyfull.wordpress.com/2009/09/23/qt-embedded-part-2-using-qvfb/
Now i am taking above two links into refrence & want to run qt for embedded app example in qvfb.

为主机x11运行qvfb:---

running qvfb for host x11 :---

dinesh@ubuntu:~/qt_source/qt_source_x11/qt-everywhere-opensource-src-4.8.5/bin$ ./qvfb

现在我正在运行书籍演示示例:---

Now i am running books demo example :---

dinesh@ubuntu:/opt/Qt5.1.1/4.8.5_embedded/gcc/demos$ ls
affine        declarative         gradients   README       textedit
arthurplugin  deform              helper      shared       undo
books         demos-manifest.xml  interview   spectrum
boxes         demos.pro           mainwindow  spreadsheet
chip          embeddeddialogs     pathstroke  sqlbrowser
composition   glhypnotizer        qtdemo      sub-attaq
dinesh@ubuntu:/opt/Qt5.1.1/4.8.5_embedded/gcc/demos$ cd books/
dinesh@ubuntu:/opt/Qt5.1.1/4.8.5_embedded/gcc/demos/books$ ./books

为什么书籍守护进程不在qvfb内部?为什么将其显示为单独的窗口?

Why books daemon is not going inside the qvfb ? Why It is displayed as seprate window ?

请建议。

正在运行的应用程序的屏幕截图:-

Screen shot of application running :--

推荐答案

我能够找出问题所在。

您将需要两个版本的Qt。普通版本(使用默认配置设置)和嵌入式版本(在configure中启用-embedded,-qt-gfx-qvfb选项)。

You will need two build of Qt. A normal build(using default configure settings) and an Embedded build(with -embedded,-qt-gfx-qvfb options enabled in configure).

构建,在常规构建中编译qvfb并启动它。

When you have both the builds, compile the qvfb in the normal build and launch it.

在嵌入式构建中,编译要在qvfb中运行的应用程序,然后使用-qws启动该应用程序

In the embedded build, compile the application which you want to run in qvfb and launch the app with -qws flag.

ie ./myapp -qws

i.e. ./myapp -qws

该应用程序将显示在qvfb中。

The app will be displayed in the qvfb.

这篇关于QVFB无法显示-QT for嵌入式Linux演示示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆