Porting qt4.7.0 to OMAP

Source: Internet
Author: User

Preparation:

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

2. Cross Compiler arm-eabi-4.4.0.tar.bz2

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

4. Development Board OMAP

Compile and install:

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

Install tslib:

Run the CD tslib command to enter the current directory of tslib. Then run the following command:

[Email protected]:/ARM/Qt # cd tslib/

[Email protected]:/ARM/Qt # echo "ac_cv_func_malloc_0_nonnull = yes"> arm-linux.cache

[Email protected]:/ARM/Qt #./configure -- Host = arm-None-Linux-gnueabi -- prefix =/usr/local/tslib -- cache-file = arm-none-linux-gnueabi.cache

[Email protected]:/ARM/Qt # Make

[Email protected]:/ARM/Qt # make install

After the operation is successful, you can generate tslib under/usr/local/. After Entering tslib, You can see four folders, Bin include lib etc. We will ignore it for the time being and will only use these folders during the next porting process.

Here, I package the files in tslib to/usr/local/tslib of the Development Board.

 

To compile and install QT for ARM, first configure the following:

[Email protected]:/ARM/QT/qt-everywhere-opensource-src-4.7.0 # Vim a. Sh

1 #! /Bin/sh
2
3 # For arm
4. /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-signature-no-OpenSSL-xplatform qws/Linux-arm-gnueabi-G ++-l ittle -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/lo cal/tslib/lib-confirm-license "[email protected]"

The text in red must be changed to the corresponding directory-I/-L to specify the path of the tslib compiled earlier.

# Make
# Make install

/* Files such as libraries and fonts will be installed to the/opt/embedsky/qt-4.7-arm directory. */

 

Copy the following files under the/opt/QtEmbedded-4.7.3/lib directory to the root file system/usr/lib directory:
# Cp-A/opt/QtEmbedded-4.7.3/lib.tar.gz rootfs/usr/lib
(Here I package lib to the Development Board/usr/lib /)

Step 3:

Create a directory in the root file system

# Mkdir/usr/lib/Fonts

Copy the font unifont_160_50.qpf under the/ARM/QT/qt-everywhere-opensource-src-4.7.0/lib/fonts directory to the directory corresponding to the Development Board
# Cp/ARM/QT/qt-everywhere-opensource-src-4.7.0/lib/Fonts/Unifont_160_50.qpf/usr/local

 

Step 4:

Make QT support JPG Images

CP/ARM/QT/qt-everywhere-opensource-src-4.7.0/plugins/imageformats/*/usr/lib/

Add app. addlibrarypath ("/usr/lib/") to the main program of the application /");

 

 

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.