如何在Ubuntu的X-window上跑QT?
-
wrote on 14 May 2012, 06:53 last edited by
遇到一个棘手的问题,情况如下:
有一块TI DM8148的开发板,我将UBuntu移植到了这快板子上面,同时还带有X-window,现在这块板子上就像一台电脑一样跑UBuntu系统(接了显示器,鼠标,键盘)。
接着我需要将QT库移植到这个上面去,使QT程序可以跑在这个UBuntu的桌面上。我将交叉编译好的QT程序和QT库下载到板子上,在终端上运行,程序能跑起来,有程序相关的打印,就是没有窗口的输出。请问问题是出在哪里?是否我在X-window下跑QT程序一定需要QVFB的支持?
我的环境:
编译服务器的系统:UBuntu 11.04
交叉编译链:linux-arm-gnueabi-g++
开发板的系统:Ubuntu 11.04(带X-window)
QT库版本:4.8.1configure配置参数:
./configure -prefix /usr/local/Trolltech/Qt-4.8.1 -arm -xplatform qws/linux-arm-gnueabi-g++ -embedded arm -little-endian -release -opensource -fast -no-accessibility -scripttools -svg -webkit -shared -javascript-jit -qt-sql-sqlite -no-qt3support -no-mmx -no-3dnow -no-sse -no-sse2 -silent -qt-libpng -qt-libjpeg -qt-libtiff -make libs -nomake examples -nomake docs -nomake demo -no-nis -no-cups -no-iconv -no-dbus -qt-freetype -armfpa -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-multiscreen -no-gfx-vnc -no-gfx-qvfb -qt-kbd-linuxinput -qt-mouse-linuxinput -no-glib板子的环境变量:
export QTDIR=/home/qt
export LD_LIBRARY_PATH=/lib/qt-lib
export QT_QWS_FONTDIR=/lib/qt-lib/fonts
export QWS_DISPLAY="LinuxFb:/dev/fb0" -
wrote on 14 May 2012, 11:20 last edited by
Please see this post: http://qt-project.org/forums/viewthread/17193
1/2