Transplantation of qt-embedded-linux-opensource-src-4.5.2 touch screen edition based on MIPS

Source: Internet
Author: User
Tags gtk

Reprinted please describe the link to this article




1.download qt-embedded-linux-opensource-src-4.5.2.tar.bz2

: Http://get.qtsoftware.com/qt/source/


Qt-embedded-linux-opensource-src-4.5.2.tar.bz2

2. Configuration

./Configure-Prefix/opt/qt-4.5.2-embedded MIPS-no-OpenGL-QT-mouse-tslib

 

Because I have already compiled all the required libraries, I will not describe them here.

The configuration result is as follows:

Build... libs examples demos docs translations
Configuration ....... cross_compile release shared DLL embedded largefile STL extends exceptions_off minimal-config small-config medium-config large-config full-config qt3support extends embedded limit IPv6 clock-gettime clock-monotonic mremap getaddrinfo extends inotify system-JPEG system-MNG system-PNG system-Tiff FreeType system-zlib NIS OpenSSL SVG WebKit scripttools release
Debug ...... No
Qt 3 compatibility... yes
Qtw.module... no
Qtscripttools module Yes
Qtxmlpatterns module No
Phonon module... no
SVG module... yes
WebKit module... yes
STL support... yes
PCH support... yes
MMX/3 dnow/SSE/sse2.. no/No
IPv6 support... yes
IPv6 ifname support. Yes
Getaddrinfo support. Yes
Getifaddrs support .. Yes
Accessibility... yes
NIS support... yes
Cups support... no
Iconv support... no
Glib support... no
Gstreamer support... no
Large file support .. Yes
GIF support ...... plugin
Tiff support... plugin (system)
JPEG support ...... plugin (system)
PNG support ...... Yes (system)
MNG support ...... plugin (system)
Zlib support... System
Session management... no
Embedded support... MIPS
FreeType2 support... auto (yes)
Graphics (QT) ...... linuxfb multismultiscreen
Graphics (plugin )...
Decorations (QT)... styled Windows Default
Decorations (plugin)
Keyboard driver (QT). tty
Keyboard driver (plugin)
Mouse driver (QT)... PC linuxtp tslib
Mouse driver (plugin)
OpenGL support... no
SQLite support... plugin (QT)
OpenSSL support... Yes (run-time)

3. Compile and install

Gmake

Gmake install

4. Put the installed files into the File System

All files will be installed to the/opt/qt-4.5.2 directory, first delete some useless things such as header files, and then directly compress the qt-4.5.2 into a BZ package, decompress the package to my file system/OPT directory.

5. Touch Screen Environment Variables

Before running the QT program, you must export the following environment variables. You can save them as a script to automatically export these variables at startup.

---------------------------------

#!/bin/shTSLIB_ROOT=/usrexport PATH=$PATH:$TSLIB_ROOT/binexportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TSLIB_ROOT/libexport TSLIB_CONSOLEDEVICE=noneexport TSLIB_FBDEVICE=/dev/fbexport TSLIB_TSDEVICE=/dev/tsexport TSLIB_CALIBFILE=/etc/pointercalexport TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.confexport TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/tsexport  QWS_MOUSE_PROTO=tslib:/dev/tsexport QTDIR=/opt/qt-4.5.2export TSLIB_TSEVENTTYPE="H3600"

---------------------------------

Save it as Ts. SH and put it in/etc/profile. d/directory, because my startup script will automatically run/etc/profile. d/directory *. sh file, so I do not need to manually export it when starting.

6. Create a File System

Mkyaffs2image 2 root yaffs. img

In this way, you can create a yaffs file system image and download it directly to the corresponding flash Address.

7. Run

Any program under demos, such as demos/books-qws, must be run with the parameter-qws to start QT server at the same time, the subsequent programs do not require-qws.

8. qt-4.5.2 running speed gives me the feeling

My CPU is around MHz, which is equivalent to the S3C2440 level. When I start the first program-qws, it takes about 3 s to run books-qws and 6 s to run browser-qws, other large programs will exceed 10 s. I feel that the speed is not fast enough. In addition, the memory consumption is also very serious. I transplanted this time only to see its effect and determine whether it is suitable for the company's solution. We plan to use 64 MB of memory, however, this does not seem to be enough for Qt, and the company will not adopt QT. Further comparison is required. x + GTK, directfb + GTK may all be QT killer, because we need to comprehensively consider the overall cost effectiveness.

 

I have worked with colleagues who compared QT, x + GTK, directfb + GTK. Please reply to me and give me some advice,


Thank you


Thank you!

 

 

 

Keywords: QT 4.5.2 transplantation, QT 4.5.2 touch screen, qt mips Processor

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.