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.
Previous article:Unknown symbol in module appears when loading insmod driver on arm
Next article:ARM920T (S3C2440) interrupt system
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- ASML predicts that its revenue in 2030 will exceed 457 billion yuan! Gross profit margin 56-60%
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- Wireless chip faster than 5G is born
- I think the company is wasting money hiring me
- [DIY] Use mosquito repellent to modify wifi repeater, wifi signal booster
- How is this comparator with hysteresis implemented?
- Precautions for using chip ferrite beads
- Introduction to Electromagnetic Compatibility by Clayton R.Paul
- Stare at pictures to find inspiration
- Common problems in designing microcontroller peripheral circuits
- Smart connected lighting and the Internet of Things
- [Chuanglong TLA40i-EVM development board] +01. Unboxing (zmj)