Steps for Skyeye 1.2.4 to simulate running QT-embedded on S3C2410

Source: Internet
Author: User

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.

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.