Transplantation of qt4.7.2 to ARM platform

Source: Internet
Author: User

The target machine is mini2440.

 

1. Download the source code of QT embedded 4.7.2 and obtain it from the http://qt.nokia.com.

 

2. Extract the source code package and enter the corresponding directory. Configure the package first. You can write a configuration file to run it for automatic configuration.

For example, compile the automatic configuration file AutoConfig. Sh with the following content:

 

#! /Bin/bash

./Configure/
-Prefix/usr/local/qt-arm9-4.7.2/
-Opensource/
-Confirm-license/
-Release-shared/
-Embedded ARM/
-Xplatform qws/Linux-arm-G ++/
-Depths 16, 18, 24/
-Fast/
-Optimized-qmake/
-PCH/
-QT-SQL-SQLite/
-QT-libjpeg/
-QT-zlib/
-QT-libpng/
-QT-FreeType/
-Little-Endian-host-little-Endian/
-No-qt3support/
-No-LibTIFF-no-libmng/
-No-OpenGL/
-No-MMX-no-SSE-no-sse2/
-No-3dnow/
-No-OpenSSL/
-No-WebKit/
-No-qvfb/
-No-phonon/
-No-NIS/
-No-OpenGL/
-No-cups/
-No-glib/
-No-xcursor-no-xfixes-no-xrandroid-no-xrender/
-No-separate-debug-info/
-Nomake examples-nomake tools-nomake docs/
-QT-mouse-tslib/
-I/usr/local/tslib/include/
-L/usr/local/tslib/lib

 

Some of the preceding configuration items should be selected as needed. To compile a WebKit program, remove NO-WebKit.

 

Save the file. Then run AutoConfig. Sh

[Root @ localhost qt4.7.2] # chmod A + x AutoConfig. Sh # Add executable permissions

[Root @ localhost qt4.7.2] #./AutoConfig. Sh # generate the MAKEFILE file automatically

Compile and install

[Root @ localhost qt4.7.2] # Make

[Root @ localhost qt4.7.2] # make install

Compilation Time may be long

 

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.