Gemei A330

開發環境


GA330開發工具包可以從這裡下載,下載後,解壓縮到c:\GA330\資料夾,該開發工具包含:編譯器(cygwin)、函式庫(MultiPlatform)等檔案,而在MultiPlatform資料夾中,有一個PicShow程式範例,我們可以使用該範例進行測試以及學習如何編寫GA330程式。

編譯步驟如下:
1. 在c:\GA330\MultiPlatform\PicShow\make-cc1800-gcc資料夾底下新增一個Test.bat檔案,內容如下

PATH c:/ga330/cygwin/arm-linux/bin;c:/ga330/CYGWIN/BIN;
make -f makefile shell=shell_app_a330 LinkScript=DLL.SCF dllcfg=dlmake_a330.ini
pause

2. 執行Test.bat檔案,編譯輸出的訊息

c:\GA330\MultiPlatform\PicShow\make-cc1800-gcc>Test.bat
c:\GA330\MultiPlatform\PicShow\make-cc1800-gcc>PATH c:/ga330/cygwin/arm-linux/bin;c:/ga330/CYGWIN/BIN;
c:\GA330\MultiPlatform\PicShow\make-cc1800-gcc>make -f makefile shell=shell_app_a330 LinkScript=DLL.SCF dllcfg=dlmake_a330.ini
arm-linux-gcc -c -g -I../../inc/ -I../ -fno-pic -pipe -O2 -Wall -finline-functions -fomit-frame-pointer -msoft-float -fno-builtin -mcpu=arm926ej-s -D__MULTIPLATFORM__ -D__MULTIPLATFORM_HD8800__ -o bitmap_zoom.o ../bitmap_zoom.c
arm-linux-gcc -c -g -I../../inc/ -I../ -fno-pic -pipe -O2 -Wall -finline-functions -fomit-frame-pointer -msoft-float -fno-builtin -mcpu=arm926ej-s -D__MULTIPLATFORM__ -D__MULTIPLATFORM_HD8800__ -o image_cache.o ../image_cache.c
arm-linux-gcc -c -g -I../../inc/ -I../ -fno-pic -pipe -O2 -Wall -finline-functions -fomit-frame-pointer -msoft-float -fno-builtin -mcpu=arm926ej-s -D__MULTIPLATFORM__ -D__MULTIPLATFORM_HD8800__ -o image_zoom.o ../image_zoom.c
../image_zoom.c: In function 'image_zoom_read_line':
../image_zoom.c:26: warning: unused variable 'y'
../image_zoom.c:24: warning: unused variable 'height'
arm-linux-gcc -c -g -I../../inc/ -I../ -fno-pic -pipe -O2 -Wall -finline-functions -fomit-frame-pointer -msoft-float -fno-builtin -mcpu=arm926ej-s -D__MULTIPLATFORM__ -D__MULTIPLATFORM_HD8800__ -o PicShow.o ../PicShow.c
../PicShow.c: In function 'sys_reg_filetype':
../PicShow.c:34: warning: pointer targets in return differ in signedness
../PicShow.c: In function 'set_zoom_mode':
 ../PicShow.c:224: warning: enumeration value 'ZOOM_MODE_MAX' not handled in switch
../PicShow.c: In function 'PicShow_Zoom':
../PicShow.c:493: warning: enumeration value 'MENU_CMD_NORMAL' not handled in switch
../PicShow.c:493: warning: enumeration value 'MENU_CMD_END' not handled in switch
../PicShow.c: In function 'PicShow_SingleView':
../PicShow.c:694: warning: pointer targets in passing argument 1 of 'MM_image_open' differ in signedness
../PicShow.c: In function 'picshow_main':
../PicShow.c:751: warning: unused variable 'key'
../PicShow.c: At top level:
../PicShow.c:785: warning: 'test_hw_lcd_resizer' defined but not used
arm-linux-gcc -c -g -I../../inc/ -I../ -fno-pic -pipe -O2 -Wall -finline-functions -fomit-frame-pointer -msoft-float -fno-builtin -mcpu=arm926ej-s -D__MULTIPLATFORM__ -D__MULTIPLATFORM_HD8800__ -o ps_config.o ../ps_config.c
../ps_config.c: In function 'ps_config_save':
../ps_config.c:51: warning: pointer targets in passing argument 1 of 'strrchr' differ in signedness
../ps_config.c:51: warning: pointer targets in assignment differ in signedness
../ps_config.c:54: warning: pointer targets in passing argument 1 of 'strrchr' differ in signedness
../ps_config.c:54: warning: pointer targets in assignment differ in signedness
../ps_config.c:60: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness
../ps_config.c:62: warning: pointer targets in passing argument 1 of 'ini_file_open' differ in signedness
../ps_config.c: In function 'ps_config_load':
../ps_config.c:85: warning: pointer targets in passing argument 1 of 'strrchr' differ in signedness
../ps_config.c:85: warning: pointer targets in assignment differ in signedness
../ps_config.c:88: warning: pointer targets in passing argument 1 of 'strrchr' differ in signedness
../ps_config.c:88: warning: pointer targets in assignment differ in signedness
../ps_config.c:94: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness
../ps_config.c:96: warning: pointer targets in passing argument 1 of 'ini_file_open' differ in signedness
arm-linux-gcc -c -g -I../../inc/ -I../ -fno-pic -pipe -O2 -Wall -finline-functions -fomit-frame-pointer -msoft-float -fno-builtin -mcpu=arm926ej-s -D__MULTIPLATFORM__ -D__MULTIPLATFORM_HD8800__ -o ps_menu.o ../ps_menu.c
arm-linux-gcc -c -g -I../../inc/ -I../ -fno-pic -pipe -O2 -Wall -finline-functions -fomit-frame-pointer -msoft-float -fno-builtin -mcpu=arm926ej-s -D__MULTIPLATFORM__ -D__MULTIPLATFORM_HD8800__ -o xgui_keyset.o ../xgui_keyset.c
../xgui_keyset.c: In function 'XGUI_KeySet_Set':
../xgui_keyset.c:58: warning: suggest parentheses around assignment used as truth value
arm-linux-gcc -c -g -I../../inc/ -I../ -fno-pic -pipe -O2 -Wall -finline-functions -fomit-frame-pointer -msoft-float -fno-builtin -mcpu=arm926ej-s -D__MULTIPLATFORM__ -D__MULTIPLATFORM_HD8800__ -o xgui_menu.o ../xgui_menu.c
../xgui_menu.c: In function 'MainMenu_CallBack':
../xgui_menu.c:102: warning: enumeration value 'MENU_STATE_CONTINUE' not handled in switch
arm-linux-ld bitmap_zoom.o image_cache.o image_zoom.o PicShow.o ps_config.o ps_menu.o xgui_keyset.o xgui_menu.o   ../../lib/x690hd_gcc/miniio.a ../../lib/x690hd_gcc/font.a ../../lib/x690hd_gcc/MultiMedia.a ../../lib/x690hd_gcc/Graphics.a ../../lib/x690hd_gcc/xgui.a ../../lib/x690hd_gcc/advlib.a ../../lib/cc1800_gcc/shell_app_a330.a ../../lib/x690hd_gcc/zlib.a ../../lib/x690hd_gcc/libc.a ../../lib/x690hd_gcc/stdpatch.a  -Bstatic -g -T link.xn -o downenv.elf -Map downenv.map -L../../lib/x690hd_gcc -lgcc -lm
c:\ga330\cygwin\arm-linux\bin\arm-linux-ld.exe: warning: cannot find entry symbol init; defaulting to 13800000
arm-linux-objcopy -O binary -R .export_table -R .export_string -R \
.import_table -R .import_string -R .section_info downenv.elf downenv.bin
arm-linux-objcopy -O binary -j .export_table downenv.elf export.tab
arm-linux-objcopy -O binary -j .export_string downenv.elf export.str
arm-linux-objcopy -O binary -j .import_table downenv.elf import.tab
arm-linux-objcopy -O binary -j .import_string downenv.elf import.str
arm-linux-objcopy -O binary -j .section_info downenv.elf section.dsc
./dlmake.exe dlmake_a330.ini

3. 將PicShow-A330.cc檔案複製到的Flash Memory或MiniSD
4. 開啟GA330掌機並執行3D遊戲選項,選擇PicShow-A330.cc檔案就可以執行該程式


返回上一頁