Linux Qt4.7.0 porting -- ubuntu10.10

Source: Internet
Author: User

Preparation:

1. QT source package qt-everywhere-opensource-src-4.7.0-beta2.tar.gz

 

2. The cross-compiler is embedded with eabi-4.3.3_embedsky_20100610.tar.bz2 (4.3.3)

 

3. Touch Screen verification tool: tslib-1.4.tar.gz

 

Token)

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

Compile and install:

1. First install the cross-Editor eabi-4.3.3_embedsky_20100610.tar.bz2 (this is easy, not to mention)

 

2.install tslib-1.4.tar.gz. This is also relatively easy (refer to the previous article. Note that install g ++: sudo apt-Get g ++ in Ubuntu first)

3. Compile and install QT for arm. The configuration is as follows:

./Configure-Prefix/opt/embedsky/qt-4.7-arm-Embedded ARM-release-opensource
-Fast-no-accessibility-no-scripttools-no-mmx-no-multimedia-no-svg-no-3dnow-no-sse-no-sse2-silent-qt-libpng-qt-libjpeg -no-libmng-no-libtiff-no-multimedia-make libs-nomake tools-nomake examples-nomake docs-nomake demo-no-nis-no-cups-no-iconv
-No-plugin-no-openssl-xplatform qws/linux-arm-g ++-little-endian-qt-freetype-depths 16,18-qt-gfx-linuxfb-no-gfx -transformed-no-gfx-multiscreen-no-gfx-vnc-no-gfx-qvfb-qt-kbd-linuxinput-no-glib-qt-mouse-tslib-I/usr /local/tslib/include-L/usr/local/tslib/lib
-Confirm-license "$ @"
Compile make and install make install.

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

Qt transplantation:

1. First copy the library lib under/opt/EmbedSky/qt-4.7-arm, all to the new development board directory/usr/local/Trolltech/QtEmbedded-4.7.0-arm/lib

 

2. Copy everything in the tslib directory after installation to/usr/local/tslib of the Development Board.

 

3. Configure the environment: vi/etc/profile. Add the following:

Export QTDIR =/usr/local/Trolltech/QtEmbedded-4.7.0-arm
Export QPEDIR =/usr/local/Trolltech/QtEmbedded-4.7.0-arm
Export TSLIB_ROOT =/usr/local/tslib
Export PATH = $ QTDIR/bin: $ PATH
Export TSLIB_CONSOLEDEVICE = none
Export TSLIB_FBDEVICE =/dev/fb0
Export TSLIB_TSDEVICE =/dev/event0
Export TSLIB_PLUGINDIR = $ TSLIB_ROOT/lib/ts
Export TSLIB_CONFFILE = $ TSLIB_ROOT/etc/ts. conf
Export TSLIB_CALIBFILE =/etc/pointercal
Export QWS_MOUSE_PROTO = Tslib:/dev/event0
Export QWS_DISPLAY = LinuxFb:/dev/fb0
Export QWS_SIZE = 480x272
Export set QT_QWS_FONTDIR = $ QTDIR/lib/fonts/
Export LD_LIBRARY_PATH = $ TSLIB_ROOT/lib: $ QTDIR/lib:/usr/local/lib: $ LD_LIBRARY_PATH

 

Save and take effect immediately: source/etc/profile

 

4. Copy the program to the position you want on the Development Board and run the test program:./test_hello-qws.

 

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

 

If you want to disable Qtopia, you can modify/etc/init. d/rcS.

 

Comment out the following line:

# Qtopia &

 

If you want to run your program on startup, you can add the following content in/etc/init. d/rcS:

Export set HOME =/root
Export TSLIB_ROOT =/usr/local/tslib
Export TSLIB_CONSOLEDEVICE = none
Export TSLIB_TSDEVICE =/dev/event0
Export TSLIB_FBDEVICE =/dev/fb0
Export TSLIB_CALIBFILE =/etc/pointercal
Export TSLIB_PLUGINDIR = $ TSLIB_ROOT/lib/ts
Export TSLIB_CONFFILE = $ TSLIB_ROOT/etc/ts. conf
Export TSLIB_CALIBFILE =/etc/pointercal
Export QWS_MOUSE_PROTO = Tslib:/dev/event0
Export QWS_DISPLAY = LinuxFb:/dev/fb0

Export qtdir =/usr/local/trolltech/QtEmbedded-4.7.0-arm
Export qpedir =/usr/local/trolltech/QtEmbedded-4.7.0-arm
Export Path = $ qtdir/bin: $ path
Export LD_LIBRARY_PATH = $ tslib_root/lib: $ qtdir/lib:/usr/local/lib: $ LD_LIBRARY_PATH

 

Test_hello-qws &

 

Note that test_hello should be placed under/sbin /.

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

Provide a good method: mount the root file system with NFS, so that the root file system is on your PC, and it is much easier to copy files, mainly because it is wrong and you don't want to use it anymore, you don't need to burn it, just extract it again.

 

Note: When mounting NFS, check whether the parameter settings are correct. If not, comment out a line in/etc/init. d/RCS: # net_set &

 

 

Provide a library: http://bbs.embedsky.net/viewthread.php? Tid = 7123 & extra =

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

When tslib is installed, the following error occurs:

First, check whether g ++ is installed.

Check whether the following tools are installed.

Apt-get install autoconf (or autoconf2.13)
Apt-get install automake
Apt-get install libtool

 

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.