Building QT/Embedded4.8.5 development environment on s3c2410 (V)

Publisher:数字之舞Latest update time:2021-08-12 Source: eefocusKeywords:s3c2410  QT Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

We have already built three different versions of QT compilation environment


①qt-4.8.5-x11: The qt version that depends on x11 can be run directly on PC with "./"


②qt-4.8.5-x86: The qt version that depends on qvfb. You can use "qvfb &" on a PC, and then run it with "./ -qws"


③qt-4.8.5-arm: QT version on arm, run on arm after cross compilation


The compilation took about two and a half days to configure. During this period, some problems were encountered, but fortunately all of them were solved. However, we can't spend so much time setting up the environment every time. Fortunately, we still have tar to use. We packaged and backed up the final compiled version, so that we can directly decompress it when we use it in the future.


Backup qt-4.8.5

tar -cvzf tslib-1.4-arm.tar.gz /opt/tslib-1.4

tar -cvzf qt-4.8.5-arm.tar.gz /opt/qt-4.8.5-arm 

tar -cvzf qt-4.8.5-x86.tar.gz /opt/qt-4.8.5-x86

tar -cvzf qt-4.8.5-x11.tar.gz /opt/qt-4.8.5-x11

When we use it in the future, we can just decompress it

 tar xvzf tslib-1.4-arm.tar.gz -C / 

 tar xvzf qt-4.8.5-arm.tar.gz -C / 

 tar xvzf qt-4.8.5-x86.tar.gz -C / 

 tar xvzf qt-4.8.5-x11.tar.gz -C / 

Because the file is too large to upload on CSDN, I uploaded it to Baidu Cloud.


http://pan.baidu.com/s/1hqmQFha

Configuring environment variables

Porting QT library

It is actually very simple to use on the development board. You only need to copy the corresponding library files and set the environment variables. The copying method depends on personal preference. I mount nfs to achieve the copy.


Our qt library is installed in the /opt/qt-4.8.5-arm directory, and the tslib library is installed in opt/tslib

We copy the library file to our CentOS shared directory and then mount it on the arm board

cp /opt/qt-4.8.5-arm/lib /gatieme/arm/lib/qt-4.8.5-arm

cp /opt/tslib/lib /gatieme/arm/lib/tslib-1.4

Then we mount the arm directory to the arm board

mount -o tcp 192.168.81.132:/gatieme/arm /host

Setting Environment Variables

Next, start setting the QTE environment variables on the arm board

# export the path of TSLIB-1.4

export TSLIB_ROOT=/host/lib/tslib-1.4

export TSLIB_TSDEVICE=/dev/event0

export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf

export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts

export TSLIB_CALIBFILE=/etc/pointeral

export TSLIB_FBDEVICE=/dev/fb0

 

export QWS_MOUSE_PROTO=tslib:/dev/event0

export QWS_SIZE=640*480 

 

# export the path of QT/Embedded-4.8.5 

export QTDIR=/host/qt-4.8.5-arm

export QT_QWS_FONTDIR=$QTDIR/lib/fonts

export LD_LIBRARY_PATH=$TSLIB_ROOT/lib:$QTDIR/lib:$LD_LIBRARY_PATH

We can also set up a script to automatically execute this script when the computer is turned on, so that the environment variables can be loaded into the system on the arm board.

Keywords:s3c2410  QT Reference address:Building QT/Embedded4.8.5 development environment on s3c2410 (V)

Previous article:Unknown symbol in module appears when loading insmod driver on arm
Next article:ARM920T (S3C2440) interrupt system

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号