22
Architecture for Next-generation Digital Engines for SoC Qt Creator and AndeShape Ccross-Compile Qt Creator and AndeShape Ccross-Compile

Qt Creator and AndeShape cross-compile lab1

  • Upload
    others

  • View
    20

  • Download
    0

Embed Size (px)

Citation preview

Microsoft PowerPoint - Qt Creator and AndeShape cross-compile_lab1Qt Creator and AndeShape Ccross-Compile
Qt Creator and AndeShape Ccross-Compile
ANDES ConfidentialPage 2
1. UbuntuApplications->Programming->Qt Creator Qt Creator. :,Toolchains,Terminalsource bashrc.nds32le-linux-V0,.
ANDES ConfidentialPage 3
Embedded Linux Qt CreatorEmbedded GUI
Embedded Linux Qt CreatorEmbedded GUI
2. Qt CreatorFile->New File or Project...,Qt4 Gui Application-> OK.
ANDES ConfidentialPage 4
3. project Name:, helloqt;/home/acer, ,Next>.
ANDES ConfidentialPage 5
4. ,Next>.
ANDES ConfidentialPage 6
Embedded Linux Qt CreatorEmbedded GUI
Embedded Linux Qt CreatorEmbedded GUI
5. Base classQMainWindows; QWidget;QDialog, QDialog,Next>.
ANDES ConfidentialPage 7
6. Finish,Edit.
7. Projectsdialog.ui .
ANDES ConfidentialPage 9
8. 320x240ADP-XC5 3.5,
ANDES ConfidentialPage 10
dialog.ui*.
ANDES ConfidentialPage 11
9. ,Qt CreatorIDErun: (a). Qt CreatorTools->Options...->Qt4: (b). +,Default Qt Version: . : *Version Name: QtEmbedded-4.6.0-generic *QMake Location: /usr/local/Trolltech/QtEmbedded-4.6.0- generic/bin/qmake (c). Rebuild. (d). Default Qt Version: QtEmbedded-4.6.0-generic->OK.
ANDES ConfidentialPage 12
ANDES ConfidentialPage 13
(e). /usr/local/Trolltech/QtEmbedded-4.6.0-generic/mkspecs/qws/linux-generic- g++/qmake.conf,: # modifications to g++.conf QMAKE_CC = /home/acer/Andestech/AndeSight133/toolchains/nds32le-linux- glibc-V0/bin/nds32le-linux-gcc -EL -G0 -Wa,-mno-small-data -lts QMAKE_CXX = /home/acer/Andestech/AndeSight133/toolchains/nds32le- linux-glibc-V0/bin/nds32le-linux-g++ -EL -G0 -Wa,-mno-small-data -lts QMAKE_LINK = /home/acer/Andestech/AndeSight133/toolchains/nds32le- linux-glibc-V0/bin/nds32le-linux-g++ -EL -G0 -Wa,-mno-small-data -lts QMAKE_LINK_SHLIB =/home/acer/Andestech/AndeSight133/toolchains/nds32le- linux-glibc-V0/bin/nds32le-linux-g++ -EL -G0 -Wa,-mno-small-data -lts # modifications to linux.conf QMAKE_AR = /home/acer/Andestech/AndeSight133/toolchains/nds32le-linux- glibc-V0/bin/nds32le-linux-ar cqs QMAKE_OBJCOPY = /home/acer/Andestech/AndeSight133/toolchains/nds32le- linux-glibc-V0/bin/nds32le-linux-objcopy QMAKE_STRIP = /home/acer/Andestech/AndeSight133/toolchains/nds32le- linux-glibc-V0/bin/nds32le-linux-strip
ANDES ConfidentialPage 15
(d). Qt Creator IDErun, .
ANDES ConfidentialPage 16
10. cd /home/acer/helloqt helloqt,SD. :ADP-XC5,tslib Qt4.6.0 exportln,.
ANDES ConfidentialPage 17
11. ./helloqt -qws,
: ADP-XC5Embedded Linux ,printf “\033[9;0]” > /dev/tty0,. :Ctrl+C. 12. SD umount /tmp.
ANDES ConfidentialPage 19
Embedded Linux
Embedded Linux
ANDES ConfidentialPage 20
Embedded Linux
Embedded Linux
ANDES ConfidentialPage 21
Embedded Linux
Embedded Linux
: ,collect2:ld returned 1 exit status,sudo apt- get install qt4-dev-tools.
Architecture for Next-generation Digital Engines for SoC
Thank You!!!Thank You!!!