Ubuntu9.10 + qt-embedded-linux-opensource-src-4.5.0 + tslib-1.4.1 + gcc-4.3.3 + gcc-4.1 transplantation experience

Source: Internet
Author: User
Based on Ubuntu9.10 + qt-embedded-linux-opensource-src-4.5.0 + tslib-1.4.1 + gcc-4.3.3 + gcc-4.1 Target Platform: TQ2440 (s3c2440) + LCDw3.5-2 (Donghua) + kernel: 2.6.30.4 + QT4.5 [Qtopia-2.2.0] NandFlash: 256 MB + NorFlash: 2 MB

Based on Ubuntu9.10 + qt-embedded-linux-opensource-src-4.5.0 + tslib-1.4.1 + gcc-4.3.3 + gcc-4.1

Target Platform: TQ2440 (s3c2440) + LCD w3.5-2 (Donghua) + kernel: 2.6.30.4 + QT4.5 [Qtopia-2.2.0]

Nand Flash: 256 MB + Nor Flash: 2 MB + SDRAM: 64 MB

S3C2440-ARMV4T (Harvard)-ARM920T-ARM9

In the/etc/profile file:

Export PATH =/media/_ home/opt/4.3.3/bin: $ PATH [arm-linux-gcc-4.3.3]
Export PATH =/media/_ home/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/tslib-1.4.1: $ PATH

Command:

Ln-s/usr/bin/make/usr/bin/gmake [ubuntu 9.10]

Source/etc/profile

Sudo apt-get install gcc-4.1 [? M4 autoconf automake libtool]

Tar-vxjf qt-embedded-linux-opensource-src-4.5.0_20091216-C/media/_ home/opt/EmbedSky/qt-4.5

Tar-vxjf tslib-1.4.1.tar.bz2-C/media/_ home/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0

Compile tslib-1.4.1:

CDS/media/_ home/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/tslib-1.4.1

./Build

Or

. /Configure -- host = arm-linux-disable-hp3600 -- disable-arctic2 -- disable-mk712 -- disable-collie -- disable-corgi -- disable-ucb1x00 -- disable-linear-h2200 -- with-gnu-ld -- prefix = $ PWD /__ install ac_cv_func_malloc_0_nonnull = yes

Make & make install

Compile qt-embedded-linux-opensource-src-4.5.0: [ARM]

/Media/_ home/opt/EmbedSky/qt-4.5/mkspecs/qws/linux-arm-g ++/qmake. conf file:

#
# Qmake configuration for building with arm-linux-g ++
#

Include (/media/_ home/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/mkspecs/common/g ++. conf)
Include (/media/_ home/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/mkspecs/common/linux. conf)
Include (/media/_ home/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/mkspecs/common/qws. conf)

# Modifications to g ++. conf
QMAKE_CC =/media/_ home/opt/4.3.3/bin/arm-linux-gcc
QMAKE_CXX =/media/_ home/opt/4.3.3/bin/arm-linux-g ++
QMAKE_LINK =/media/_ home/opt/4.3.3/bin/arm-linux-g ++
QMAKE_LINK_SHLIB =/media/_ home/opt/4.3.3/bin/arm-linux-g ++

# Modifications to linux. conf
QMAKE_AR =/media/_ home/opt/4.3.3/bin/arm-linux-ar cqs
QMAKE_OBJCOPY =/media/_ home/opt/4.3.3/bin/arm-linux-objcopy
QMAKE_STRIP =/media/_ home/opt/4.3.3/bin/arm-linux-strip

QMAKE_INCDIR = export PATH =/media/_ home/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/_ install/include: $ PATH
QMAKE_LIBDIR = export PATH =/media/_ home/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/_ install/lib: $ PATH

Load (qt_config)

Command:

CDS/media/_ home/opt/EmbedSky/qt-4.5

./Arm_qt4.5_build [to be modified]

Or:

Cd./qt-embedded-linux-opensource-src-4.5.0

. /Configure-prefix/media/_ home/opt/EmbedSky/qt-4.5/_ install/arm/-release-shared-fast-no-largefile-qt-SQL-sqlite-no-qt3support -no-xmlpatterns-no-mmx-no-3dnow-no-sse-no-sse2-no-svg-no-webkit-qt-zlib-qt-gif-qt-libtiff-qt-libpng -qt-libjpeg-make libs-nomake examples-nomake docs-nomake demo-no-nis-no-cups-no-iconv-no-signature-no-openssl-xplatform qws/ linux-arm-g ++-embedded arm-little-endian-qt-freetype-depths 16-qt-gfx-linuxfb-qt-gfx-transformed-qt-gfx-multiscreen- no-gfx-vnc-no-gfx-qvfb-qt-kbd-usb-no-glib-armfpa-qt-mouse-tslib-I/media/_ home/opt/EmbedSky /qt-4.5/qt-embedded-linux-opensource-src-4.5.0/tslib-1.4.1/_ install/include-L/media/_ home/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/tslib-1.4.1/_ install/lib

Gmake

Gmake install

Compile qt-embedded-linux-opensource-src-4.5.0: [X86]

CDS/media/_ home/opt/EmbedSky/qt-4.5

./X86_qt4.5_build [modify]

Or:

Cd./qt-embedded-linux-opensource-src-4.5.0

. /Configure-prefix/media/_ home/opt/EmbedSky/qt-4.5/_ install/x86/-release-shared-fast-qt-SQL-sqlite-plugin-SQL-sqlite -nomake demos-nomake examples-silent

Gmake

Gmake install

Related Article

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.