在给出一些时间后,我能够为主机x11环境编译qvfb。现在,我期待着在其中运行QT嵌入式linux演示程序。但我在这方面并不成功
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
在这里,我已经参考了上面的链接&为嵌入式linux主机配置并编译的QT,支持安装在以下位置的LinuxFB和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/
现在我把上面的两个链接放到引用中&我想在qvfb中运行嵌入式应用程序示例的qt。
为主机x11运行qvfb:
dinesh@ubuntu:~/qt_source/qt_source_x11/qt-everywhere-opensource-src-4.8.5/bin$ ./qvfb现在我正在运行图书演示示例:
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?为什么会显示为单独的窗口?
请提个建议。
应用程序运行的屏幕截图:--

发布于 2015-05-29 12:41:41
我能够弄清楚问题所在。
您将需要两个版本的Qt。普通构建(使用默认配置设置)和嵌入式构建(在配置中启用了-embedded、-qt-gfx-qvfb选项)。
当您有了这两个构建,在普通构建中编译qvfb并启动它。
在嵌入式构建中,编译要在qvfb中运行的应用程序,并使用-qws标志启动该应用程序。
即/myapp -qws
应用程序将显示在qvfb中。
https://stackoverflow.com/questions/20468282
复制相似问题