(1). CPU: Andes RISC CPU core_N12.
(2). 平台: ADP-XC5FF676 V1.1.
(3). Linux OS: Ubuntu10.04.
(4). Toolchains: AndeSight v1.4 for Linux.
(5). Embedded Linux2.6.27.
2. 目的: 使用跨平台Qt Creator設計GUI介面,再移植至ADP-XC5實驗板.
3. 實驗步驟:
(1). 使用滑鼠選擇Ubuntu下的〝Applications〞->〝Programming〞->〝Qt Creator〞開啟Qt Creator.

# modifications to g++.conf
QMAKE_CC = /home/acer/Andestech/AndeSight14/toolchains/nds32le-linux-glibc-V0/bin/nds32le-linux-gcc -EL -G0 -Wa,-mno-small-data –lts
QMAKE_CXX = /home/acer/Andestech/AndeSight14/toolchains/nds32le-linux-glibc-V0/bin/nds32le-linux-g++ -EL -G0 -Wa,-mno-small-data –lts
QMAKE_LINK = /home/acer/Andestech/AndeSight14/toolchains/nds32le-linux-glibc-V0/bin/nds32le-linux-g++ -EL -G0 -Wa,-mno-small-data –lts
QMAKE_LINK_SHLIB = /home/acer/Andestech/AndeSight14/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/AndeSight14/toolchains/nds32le-linux-glibc-V0/bin/nds32le-linux-ar cqs
QMAKE_OBJCOPY = /home/acer/Andestech/AndeSight14/toolchains/nds32le-linux-glibc-V0/bin/nds32le-linux-objcopy
QMAKE_STRIP = /home/acer/Andestech/AndeSight14/toolchains/nds32le-linux-glibc-V0/bin/nds32le-linux-strip

(a). 按〝+〞符號按鈕,增加〝Manual〞的選項.
(b). 設定
*Version name: QtEmbedded-4.7.0-generic
*qmake location: /usr/local/Trolltech/QtEmbedded-4.7.0-generic/bin/qmake
(c). 設定完成後按〝Rebuild〞,之後可以按〝Show Log〞查看路徑,最後按〝OK〞結束設定.







注意:如要編輯程式請使用滑鼠選擇元件後按〝滑鼠右鍵〞->〝Go to slot...〞既可編輯程式.


(13). 執行〝./helloqt -qws〞,


注意:中斷測試程式按〝Ctrl+C〞.
(14). 程式執行完畢後要卸載SD需再根目錄輸入〝umount /tmp〞.

沒有留言:
張貼留言