QVFB not able to display the — QT for embedded linux demo examples

依然范特西╮ 提交于 2019-12-13 05:24:20

问题


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
Here i have configured QT source for x11 taking into refrence above link & my qvfb is lying at this location :--- ~/qt_source/qt_source_x11/qt-everywhere-opensource-src-4.8.5/bin .

http://wiki.qt.io/Building_Qt_for_Embedded_Linux
Here i have refered above link & configured & compiled QT for embedded linux host with support for LinuxFB & QVFB installed in following location :-- /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/
Now i am taking above two links into refrence & want to run qt for embedded app example in 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

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

Please suggest.

Screen shot of application running :--


回答1:


I was able to figure out the problem.

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).

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

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

i.e. ./myapp -qws

The app will be displayed in the qvfb.



来源:https://stackoverflow.com/questions/20468282/qvfb-not-able-to-display-the-qt-for-embedded-linux-demo-examples

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!