QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1269|回复: 3

ARM 2410 移植QTembedded。。。

[复制链接]
发表于 2004-10-3 09:10:31 | 显示全部楼层 |阅读模式
Installing Qt/Embedded
This installation procedure is written for Linux. It may need to be modified for other platforms.


Unpack the archive if you have not done so already

    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.
This document assumes that the archive is installed as ~/qt-VERSION.

Compile the Qt/Embedded library and examples.

    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:

    ./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/.


Enable framebuffer support.
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.)

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.

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.

The frame buffer must also be enabled with a boot parameter. See /usr/src/linux/Documentation/fb for details.

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.


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.)


How to run the demonstration program.
Log into a virtual console and do:


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


Miscellaneous troubleshooting and known bugs.
To kill gpm, run the following command as root:


    gpm -k

In some cases, if the server does not work, it will work when run as root.

Some example programs may not compile with GCC 2.95.

Show processes using the framebuffer:


    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).


Customization.
The Qt/Embedded library can be reduced in size by removing unnecessary features.
发表于 2004-10-4 16:55:27 | 显示全部楼层
我离开公司的时候,开发部里有人正在搞这个,可惜 ...
回复

使用道具 举报

 楼主| 发表于 2004-10-4 18:33:30 | 显示全部楼层
呵呵,我这几天准备做这个,大家可以一起做,交流交流,
觉得QT是个好冬冬。。。
包括移植,自己应用的开发,都可以写些心得在这里 :)
回复

使用道具 举报

发表于 2004-10-5 21:40:56 | 显示全部楼层
可惜,我已经离开了公司了 ...

而且,那个公司对LINUX的图形非常没有信心...

引用开发部经理的话: " 人家M$的图形是花了多少人力和财力专门搞的!!!"
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-24 15:06 , Processed in 0.070582 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表