Installation and Transplantation of QT4.3.5 and tslib-1.4 under Ubuntu10.04

Source: Internet
Author: User
A, working environment: 1, host: Ubuntu10.042, hardware platform: real64103, Cross Compiler: arm-linux-gcc-4.3.24, touch screen adapter layer source code: tslib-1.4.tar.gz download license

I. Working Environment:

1. Master: Ubuntu 10.04

2. Hardware Platform: real 6410

3. Cross Compiler: arm-linux-gcc-4.3.2

4, touch screen adapter layer source code: tslib-1.4.tar.gz

Download http://www.linuxidc.net/thread-2244-1-1.html

2. Cross-compiling tslib-1.4

1.decompress tslib-1.4.tar.gz

Cd tslib/

./Autogen. sh

Echo "ac_cv_func_malloc_0_nonnull = yes"> arm-linux.cache

./Configure -- host = arm-linux-cache-file = arm-linux.cache -- enable-inputapi = no-prefix =/usr/local/tslib

Make

Make install

Red indicates the path after tslib is installed.

Modify ts. conf content

Vi/usr/local/tslib/etc/ts. conf

The final content is as follows:

Module_raw input

Module pthres pmin = 1

Module variance delta = 30

Module dejitter delta = 100

Module linear

Then, package the entire tslib content and download it to the corresponding path (/usr/local) in the Development Board ).

2. Configure Environment Variables

Vi/etc/profile

Add the following content:

Export TSLIB_ROOT =/usr/local/tslib

Export TSLIB_TSDEVICE =/dev/input/event0

Export TSLIB_CALIBFILE =/etc/pointercal

Export TSLIB_CONFFILE = $ TSLIB_ROOT/etc/ts. conf

Export TSLIB_PLUGINDIR = $ TSLIB_ROOT/lib/ts

Export TSLIB_FBDEVICE =/dev/fb0

Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH: $ TSLIB_ROOT/lib

Restart MINI2440 and input./ts_calibrate under the terminal. The tslib touch screen five-point calibration screen is displayed. So far, the installation and Transplantation of tslib are successful.

Iii. Cross-compiling qtopia4.3.5

Pressure Relief qtopia-opensource-4.3.5.tar.gz

Cd qtopia-opensource-4.3.5/

Vi build

Add the following content:

#! /Bin/bash

./Configure-prefix/mini2440-release-shared-fast-pch-no-qt3support-qt-SQL-sqlite-no-libtiff-no-libmng-qt-libjpeg-

Qt-zlib-qt-libpng-qt-freetype-nomake tools-nomake examples-nomake demos-optimized-qmake-no-nis-no-opengl-no-cups-no-xcursor -no-xfixes-no-xrandroid-no-xrender-no-xkb-no-sm-no-xinerama-no-xshape-no-separate-debug-info-xplatform qws/ linux-arm-g ++-embedded arm-depths 16-no-qvfb-no-gfx-qvfb-no-kbd-qvfb-no-mouse-qvfb-qt-gfx- linuxfb-qt-kbd-usb-confirm-license-qt-mouse-tslib-I/usr/local/tslib/include-L/usr/local/tslib/lib

Note: the path marked in red must be the same as the installation path of tslib. Otherwise, the compilation fails, and its parameters can be configured according to your actual situation.

Save and exit and modify the execution permission of the build file. (Chmod + x build) and then execute build.

./Build

Make (long time, please wait !!)

Make install

Cd/mini2440/bin

Mv qmake-arm

Cp qmake-arm/bin/

Run the which qmake-arm command. If/bin/qmake-arm/is displayed, the installation is successful.

In the future, we will use qmake-arm to compile the qt Program (that is, qmake-arm-project qmake-arm make ).

Now, qt4.3.5 has been installed.

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.