Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 如何在Ubuntu的X-window上跑QT?

如何在Ubuntu的X-window上跑QT?

Scheduled Pinned Locked Moved Chinese
2 Posts 2 Posters 4.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    uniquez
    wrote on 14 May 2012, 06:53 last edited by
    #1

    遇到一个棘手的问题,情况如下:

    有一块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.1

    configure配置参数:
    ./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"

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 14 May 2012, 11:20 last edited by
      #2

      Please see this post: http://qt-project.org/forums/viewthread/17193

      1 Reply Last reply
      0

      1/2

      14 May 2012, 06:53

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved