安装Qt/Embedded

Qt 3.0.5

Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

Installing Qt/Embedded

This installation procedure is written for Linux. It may need to be modified for other platforms. 这个安装过程是为Linux写的,如果是其他平台这个过程需要修改。

    Unpack the archive if you have not done so already
  1. 假如你没有准备好的话,解包档案文件。

        cd <anywhere>;
        gunzip qt-embedded-VERSION-commercial.tar.gz    # uncompress the archive
        tar xf qt-embedded-VERSION-commercial.tar       # unpack it
    
    Replace VERSION with the Qt/Embedded version number throughout.
    使用Qt/Embedded的完整版本号替换上面的"VERSION"。
    This document assumes that the archive is installed as ~/qt-VERSION.
    这个文档默认Qt被安装在~/qt-VERSION.

    Compile the Qt/Embedded library and examples.

  2. 编译Qt/Embedded库和例程

        cd ~/qt-VERSION
        export QTDIR=~/qt-VERSION
        ./configure
        make
    
    The configuration system is designed to allow platform-specific options to be added, but in general all Linux system which have framebuffer support can use the "linux-generic-g++" platform. The configuration system also supports cross-compilers: to build on Linux/x86 for the Linux/MIPSEL target, you would use:

    这个配置系统(configuration system)是被设计为允许添加平台指定的选项的, 但是在普通的有架构缓存(framebuffer)支持的Linux系统能使用"linux-generic-g++"平台。 这个配置系统(configuration system)也支持交叉编译器为Linux/x86上的Linux/MIPSEL目标构建,你需要使用下面的命令:

        ./configure -platform linux-x86-g++ -xplatform linux-mips-g++
    
    Only a small number of configurations are predefined, all much the same. Configurations files are found in configs/.

    配置中仅有一小部分被预定义了,绝大部分相同,配置文件可以在configs/中被发现。

    Enable framebuffer support.

  3. 使架构缓存(framebuffer)支持有效

    You may need to recompile your kernel to enable the framebuffer. This document does not describe how to do this; the HOWTO-Framebuffer page contains a short description. (You should see a penguin logo at boot time when the frame buffer is enabled.)
    为了使架构缓存(framebuffer)支持有效你需要重新编译核(Kernel)。 这个文档没有描述如何做,在HOWTO-Framebuffer page中有一个简短记述。 (如果架构缓存(framebuffer)是有效的,在系统启动时你应该能够看到企鹅标志)。


      For Matrox G100/G200/G400 use the matrox frame buffer driver.
      For NVidia TNT cards use the nvidia frame buffer driver.
      For Mach64 and most other cards, use the vesafb driver.
    • Matrox G100/G200/G400使用的是matrox frame buffer驱动
    • NVidia TNT卡使用的是nvidia frame buffer驱动
    • Mach64和其他大多数卡使用的是vesafb驱动

    Note that some cards are only supported in VGA16 mode, this will not work with the current version of Qt/Embedded, since VGA/16 is not yet supported. You may need to upgrade your kernel, or even switch to an experimental kernel.

    注意有一些卡仅在VGA16模式的情况下才被支持,自从VGA/16不再被支持,当前版本的Qt/Embedded有可能将不能够工作, 你需要更新核或者转化到经过验证的核(experimental kernel)。

    The frame buffer must also be enabled with a boot parameter. See /usr/src/linux/Documentation/fb for details.
    架构缓存必须在启动时被设置成有效,更详细的内容请看/usr/src/linux/Documentation/fb

    The fbset program, which should be included in Linux distributions, may be used to switch video modes without rebooting the system. The video mode active when the server is started will be used. (8-bit modes are still experimental.) Note: fbset does not work with the vesafb driver.

  4. Change permissions.
    改变权限

    To run Qt/Embedded, you need write access to the framebuffer device /dev/fb0.
    You also need read access to the mouse device. (Note that /dev/mouse is normally a symbolic link; the actual mouse device must be readable.)
    为了运行Qt/Embedded,你需要架构缓存/dev/fb0的写权限,你也需要鼠标驱动/dev/fb0的读取访问权限 (注意/dev/mouse是一个普通的链接符号,实际的鼠标驱动必须是可读的)。

  5. How to run the demonstration program.
    如何运行例子程序

    Log into a virtual console and do:
    登陆到虚拟控制台然后执行如下命令:

        cd ~/qt-VERSION/
        ./start-demo
    

  6. Miscellaneous troubleshooting and known bugs.
    各种问题和已知的Bug

    To kill gpm, run the following command as root:
    杀死gpm,使用root用户运行如下名令:

        gpm -k
    

    In some cases, if the server does not work, it will work when run as root.
    因为某些原因,假如服务没有运行,用root用户登陆使它运行。

    Some example programs may not compile with GCC 2.95.
    一些例程不能使用GCC 2.95进行编译。

    Show processes using the framebuffer:
    显示架构缓存(framebuffer)的进程(processes):

        fuser -v /dev/fb0
    

    Kill such processes:
    杀死这样的进程

        fuser -vk /dev/fb0
    
    or harsher:
    或者更严格:
        fuser -k -KILL /dev/fb0
    

    Show existing semaphores:
    显示已经存在的信号:

        ipcs            
    

    Remove semaphores:
    删除信号:

        ipcrm
    

    The communication between client and server is done through the named pipe /tmp/.QtEmbedded; sometimes it may need to be deleted (eg. if you run Qt/Embedded as root then later as an unprivileged user).
    客户端和服务器进行沟通是通过名字管道(named pipe)/tmp/.QtEmbedded进行的;有些时候,它是需要被删除的 例如:假如你首先以root权限运行Qt/Embedded,而以后是用没有特权的帐户运行它。

  7. Customization.
    客户化

    The Qt/Embedded library can be reduced in size by removing unnecessary features.
    可以通过删除一些不必要的特征来减少Qt/Embedded库的大小。


Copyright © 2002 TrolltechTrademarks
Qt version 3.0.5