1. Configure the LCD
By reference http://www.linuxfans.org/bbs/thread-182082-1-1.html
2. Quota Network
Http://www.linuxfans.org/bbs/thread-182384-1-1.html by reference to my previous article
Mkdir/home/ARM
CD/home/ARM
3 download qt-embedded-2.3.7.tar.gz,tmake-1.11.tar.gz
Tar zxvf qt-embedded-2.3.7.tar.gz
Tar zxvf tmake-1.11.tar.gz
Music qt-2.3.7 QT-embedded-Target
Music tmake-1.11 tmake
Set Environment Variables
Export tmakedir = $ PWD/tmake
Export qtedir = $ PWD/Qt-embedded-Target
Export tmakepath = $ tmakedir/lib/qws/Linux-arm-G ++
Export qtdir = $ qtedir
Export Path = $ qtdir/bin: $ path
Export LD_LIBRARY_PATH = $ qtdir/lib: $ LD_LIBRARY_PATH
4. Configure the cross-compilation environment
3.3.2 is used here.
Tar jxvf cross-3.3.2.tar.bz2
Mkdir/usr/local/ARM
MV 3.3.2/usr/local/ARM
Export Path =/usr/local/ARM/3.3.2/bin: $ path
5. Start Compilation
CD $ qtedir
/Configure-xplatform Linux-arm-G ++-no-xft-no-qvfb-depths, 16, 32
Make
After compilation
Will appear
/Home/ARM/Qt-embedded-target/lib/libqte. So: Undefined reference to 'operator new [] (unsigned INT )'
/Home/ARM/Qt-embedded-target/lib/libqte. So: Undefined reference to 'operator Delete (void *)'
/Home/ARM/Qt-embedded-target/lib/libqte. So: Undefined reference to '_ cxa_pure_virtual'
/Home/ARM/Qt-embedded-target/lib/libqte. So: Undefined reference to 'operator Delete [] (void *)'
/Home/ARM/Qt-embedded-target/lib/libqte. So: Undefined reference to 'operator new (unsigned INT )'
Collect2: LD returned 1 exit status
Make [4]: *** [T1]
It doesn't matter. This is an error when connecting to the test file. It doesn't matter because the dynamic library we need has been connected.
After this step, we will see libqte under the/$ qtedir/lib/directory. so libqte. so.2 libqte. so.2.3 libqte. so.2.3.7. You can run the file command to check whether the library file is the one we need to run on the Development Board.
File libqte. so.2.3.7
Libqte. so.2.3.7: Elf 32-bit LSB shared object, arm, Version 1 (ARM), stripped
6. Compile the sample program
Modify the file $ tmakedir/lib/qws/Linux-arm-G ++/tmake. conf.
Replace "tmake_link = arm-Linux-GCC"
"Tmake_link_shlib = arm-Linux-GCC"
Changed to "tmake_link = arm-Linux-G ++"
"Tmake_link_shlib = arm-Linux-G ++"
CD $ qtedir/examples/progressbar
Export tmakepath = $ tmakedir/lib/qws/Linux-arm-G ++
Export Path = $ tmakedir/bin/: $ path
Make clean
Tmake-O makefile progressbar. Pro
Make
File progressbar
Progressbar: Elf 32-bit LSB executable, arm, Version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked (uses SHARED libs), not stripped
7. Prepare an environment for running Skyeye
Edit the NFS configuration file/etc/exports on the host
/Home/ARM 10.0.0. * (RO, sync) contains the directory when We decompress qt-embedded-2.3.7.tar.gz.
/Home/lib 10.0.0. * (RO, sync) # Put some dynamic libraries of arm-Linux-GCC here
Copy the dynamic library we need
Mkdir/home/lib
CD/home/lib
CP-Ali/usr/local/ARM/3.3.2/ARM-Linux/lib/libgcc_s.s *.
CP-Ali/usr/local/ARM/3.3.2/ARM-Linux/lib/libstdc ++. S *.
Ln libstdc ++. so.5.0.5 libstdc ++. so.5-S
CP-Arn/usr/local/ARM/3.3.2/lib/ld-2.3.2.so.
CP-Arn/usr/local/ARM/3.3.2/lib/ld-linux.so.2.
CP-Arn/usr/local/ARM/3.3.2/lib/libm-2.3.2.so.
CP-Ali/usr/local/ARM/3.3.2/lib/libm. So.
CP-Ali/usr/local/ARM/3.3.2/lib/libm. so.6.
CP-Arn/usr/local/ARM/3.3.2/lib/libc-2.3.2.so.
CP-Ali/usr/local/ARM/3.3.2/lib/libc. so.6.
Start Skyeye-e vmlinux
Mkdir mnt
Mount-O nolock 10.0.0.1:/home/lib
Mount-O nolock 10.0.0.1:/home/ARM/mnt
CD/mnt
Export qtedir = $ PWD/Qt-embedded-Target
Export qtdir = $ qtedir
Export Path = $ qtdir/bin: $ path
Export LD_LIBRARY_PATH = $ qtdir/lib: $ LD_LIBRARY_PATH
/Mnt/Qt-embedded-target/examples/progressbar-qws
Touch screen not finished yet
Who has the required materials?
And the simulation is super slow.