2013-12-09 35 views
0

經過一段時間後,我可以編譯主機x11環境的qvfb。 現在我期待在其中運行QT嵌入式linux演示程序。但我不是成功的在這個QVFB無法顯示嵌入式Linux演示實例的QT

http://doc.qt.io/qt-4.8/install-x11.html
在這裏,我已經配置QT來源X11考慮到refrence上面的鏈接&我QVFB躺在這個位置:--- ~/qt_source/qt_source_x11/qt-everywhere-opensource-src-4.8.5/bin

http://wiki.qt.io/Building_Qt_for_Embedded_Linux
這裏我refered如上配置&有用於安裝在以下位置LinuxFB & QVFB支持編譯QT嵌入式Linux主機鏈路&: - /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/
現在我考慮以上兩個鏈接到refrence &要QT在qvfb的嵌入式應用實例中運行。

文件qvfb主機X11:---

[email protected]:~/qt_source/qt_source_x11/qt-everywhere-opensource-src-4.8.5/bin$ ./qvfb 

現在我運行書演示的例子:---

[email protected]:/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 
[email protected]:/opt/Qt5.1.1/4.8.5_embedded/gcc/demos$ cd books/ 
[email protected]:/opt/Qt5.1.1/4.8.5_embedded/gcc/demos/books$ ./books 

爲什麼書守護進程未在QVFB裏面去?爲什麼它顯示爲單獨窗口?

請建議。應用程序的運行

屏幕截圖: - enter image description here

+0

可以在這一點上提出任何建議......? – Katoch

+0

你有沒有試過'書-qws -display QVFb:0'? – Mali

+0

@Mali我試過了,但沒有奏效。書籍在單獨窗口中打開....?爲什麼這麼......我失蹤了......? – Katoch

回答

0

我能找出問題。

您將需要兩個版本的Qt。普通版本(使用默認配置設置)和嵌入式版本(在配置中啓用了-embedded,-qt-gfx-qvfb選項)。

當你有兩個版本時,編譯正常版本中的qvfb並啓動它。

在嵌入式構建中,編譯想要在qvfb中運行的應用程序並使用-qws標誌啓動應用程序。

即./myapp -qws

該應用程序將顯示在qvfb程序。