qt-4.8.4 installation and environment variable configuration

Source: Internet
Author: User

Install QT:PC for different platforms in Linux, Embedded X86;arm.

These three PC version, embedded X86 version and ARM version of the difference is mainly reflected in: When the Configure were added different parameters, the specific difference is:

PC platform (X11 platform): Full QT installation in Linux, use it to compile the program, directly with "./" can be run.
Embedded X86 platform: With QVFB function, on the PC can simulate the operation of the application on the arm Development Board. With this compiled program, only the "./" command cannot be run, you must add the parameter [-QVFB]–QWS
Ps: Embedded X86 platform, this is a PC under the Qtopia, he has a simulator, can simulate the appearance of the arm Development Board. Convenient commissioning;
ARM platform: A compiled program for running on an arm platform.
Ps:arm platform, this is mainly used to compile, because to download to the Development Board, requires the arm version of the QTE library files, compiled directly to the Development board after the download run;

Ps: Compiling x86 is to get MAKEQPF, compiling PC is to get QVFB

A. Installing the QT on the PC platform
1) configuration: Run./configure-prefix/usr/local/qt-4.8.4-x11
2) Compile: Make (time is longer)

3) Install: Make install (because the installation directory is specified in the configuration, this will be installed in the directory/usr/local/qt-4.8.4-x11)

B. Installing the ARM platform qt/e
1) configuration: Go to CD Qt-4.8.4-arm and run

./configure \

-opensource \

-confirm-license \

-release-shared \

-embedded arm \

-xplatform qws/linux-arm-g++ \

-depths 4,8,16,32 \

-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-xrandr-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
2) Compile: Make (time is longer)
3) Install: Make install

Environment variable configuration:

#!/bin/sh

Export Tslib_root=/usr/local/tslib

Export Tslib_tsdevice=/dev/input/event0

Export tslib_tseventtype=h3600

Export tslib_conffile=/usr/local/tslib/etc/ts.conf

Export Tslib_plugindir=/usr/local/tslib/lib/ts

Export tslib_calibfile=/etc/pointercal

Export tslib_plugindir= $TSLIB _root/lib/ts

Export Tslib_consoledevice=none

Export tslib_fbdevice=/dev/fb0

Export qtdir=/opt/qt-4.8.4/

Export Qt_qws_fontdir=/opt/qt-4.8.4/lib/fonts

Export ld_library_path= $QTDIR/lib:/root/tslib/build/lib: $LD _library_path

Export Path=/bin:/sbin:/usr/bin/:/usr/sbin:/root/tslib/build/bin

Export qws_display= "Linuxfb:mmwidth152:mmheight88:1"

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

qt-4.8.4 installation and environment variable configuration

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.