The migration of QTE has been annoying recently. Now we can sort out the information and share it with you. Compile 1. Select cross-Compilation
The migration of QTE has been annoying recently. Now we can sort out the information and share it with you.
First, each version of the software package
Ubuntu 10.04
Qt-everywhere-opensource-src-4.6.3.tar.gz
Arm-linux-gcc-3.4.1.tar.bz2
Qt-sdk-linux-x86-opensource-2010.04.bin
Tslib-1.4.tar.gz
1. Select Cross Compiler
I don't know. Porting QT has fixed version requirements for cross-compiler. I checked a lot of information and didn't get any definite explanation. A more reliable statement is that "arm-linux-gcc 3.4.1 is an old version. Now we use the 4.3.2 compiler in Linux 2.6.29. However, because there is another product line of S3C2410 + Linux 2.4.18, 3.4.1 is still not discarded. ". In addition, when other parameters are configured the same, I always use the self-compiled arm-softfloat-linux-gnu-gcc 3.4.5 to prompt such errors. I had to use arm-linux-3.4.1 to explain this.
Install arm-linux-3.4.1. This is relatively simple:
(1). Extract
# Tar-jxvf arm-linux-gcc-3.4.1.tar.bz2 To Get A usr folder.
(2). Add environment variables:
# Vi/etc/bash. bashrc
Add: export PATH = $ PATH:/* decompress the folder */usr/local/arm/3.4.1/bin at the end:
(3). Make the new environment variables take effect:
# Source/etc/bash. bashrc
(4). Check whether the path is set correctly:
# Echo $ PATH
(5) check whether the cross-compilation tool is successfully installed:
# Arm-linux-gcc-v
If the version information is displayed, it will be OK.
2. Compile tslib1.4
(1) extract the source code:
Tar zxvf tslib-1.4.tar.gz
Cd tslib-1.4
(2) install some tools:
Sudo apt-get install automake libtool
(3) execute the script to generate the configure file
./Autogen. sh
(4) execute configure to generate the Makefile file.
Echo "ac_cv_func_malloc_0_nonnull = yes"> $ ARCH-linux.cache
./Configure -- host = arm-linux -- cache-file = $ ARCH-linux.cache -- prefix =/home/linux/tslib-3.4.1
(5) Compile and install
Make
Make install
(6) copy to the Board File System
Cp-a/home/linux/tslib-3.4.1/source/rootfs
(7) modify the ts. conf file
Vim ts. conf
Remove the "#" of # module_raw input in the second line and set the le_raw input ceiling.
(8) set the environment variables of the Development Board. Write the script file here
Vim qtsetenv. sh
Export TSLIB_ROOT =/tslib-3.4.1
Export TSLIB_TSDEVICE =/dev/event0
Export TSLIB_CONFFILE =/tslib-3.4.1/etc/ts. conf
Export TSLIB_PLUGINDIR =/tslib-3.4.1/lib/ts
Export TSLIB_CALIBFILE =/etc/pointercal
Export POINTERCAL_FILE =/etc/pointercal
Export TSLIB_FBDEVICE =/dev/fb0
Export QWS_SIZE = 320x240
Export QWS_DISPLAY = "LinuxFb: mmWidth100: mmHeight130: 0"
Export LD_LIBRARY_PATH =/tslib-3.4.1/lib: $ LD_LIBRARY_PATH
Export QWS_MOUSE_PROTO = Tslib:/dev/event0
Export TSLIB_CONSOLEDEVICE = none
Export TSLIB_TSEVENTTYYPE = H3600i
(9) test. You can run the test file in/tslib/bin.