GiG
The mighty penguin cat
Hi,
I am trying to compile GPSpout: it uses MMSDK (version 0.85 if I am not wrong).
I have installed the latest devkit + the latest MMSDK (the step by step tutorial in MrMirko's page is very clear), and the examples compile correctly, so I shouldn't have problems with paths.
My directory structure is
C:\gp32_MrMirko\gp32_SDK for the necessary stuff (as the tutorial says)
and
C:\GPSpout for the GPSpout source code
When I compile I obtain this:
arm-elf-gcc -c -I../gp32_MrMirko/gp32_SDK/include -I. -Wall -mcpu=arm9 -O2 -g -o
sys_gp32.o sys_gp32.c
sys_gp32.c: In function `pceFileWriteSct':
sys_gp32.c:265: warning: passing arg 1 of `smc_fwrite' discards qualifiers from
pointer target type
sys_gp32.c: In function `initGP32':
sys_gp32.c:285: warning: large integer implicitly truncated to unsigned type
sys_gp32.c:286: warning: large integer implicitly truncated to unsigned type
sys_gp32.c:287: warning: large integer implicitly truncated to unsigned type
sys_gp32.c: In function `main':
sys_gp32.c:315: warning: implicit declaration of function `pceAppInit'
sys_gp32.c:330: warning: implicit declaration of function `pceAppProc'
sys_gp32.c:357: warning: implicit declaration of function `pceAppExit'
sys_gp32.c: In function `pceFontPrintf':
sys_gp32.c:245: warning: control reaches end of non-void function
sys_gp32.c: In function `main':
sys_gp32.c:359: warning: control reaches end of non-void function
arm-elf-gcc -c -I../gp32_MrMirko/gp32_SDK/include -I. -Wall -mcpu=arm9 -O2 -g -o
spout.o spout.c
spout.c: In function `pceAppInit':
spout.c:109: warning: implicit declaration of function `gp32GetTicks'
spout.c:87: warning: statement with no effect
spout.c:107: warning: statement with no effect
spout.c: In function `pceAppExit':
spout.c:750: warning: statement with no effect
arm-elf-gcc -L../gp32_MrMirko/gp32_SDK/lib -Wall -specs=gp32.specs -o HSpout.elf
sys_gp32.o spout.o -L../gp32_MrMirko/gp32_SDK/lib -lmirkoSDK
arm-elf-gcc: gp32.specs: No such file or directory
make: *** [HSpout.elf] Error 1
First of all, I can't find gp32.specs anywhere.
The paths in the makefile are:
WARNINGS = -Wall
INCLUDES = -I../gp32_MrMirko/gp32_SDK/include -I.
#INCLUDES = -I/gp32_MrMirko/gp32_SDK/lib.src/include -I.
LIBPATH = -L../gp32_MrMirko/gp32_SDK/lib
LIBS = -L../gp32_MrMirko/gp32_SDK/lib -lmirkoSDK
#LIBS = -lmirkoSDK -lm
OBJS = sys_gp32.o \
spout.o
#-------------------------------------------------------------------------------
CFLAGS = $(INCLUDES) ${WARNINGS} -mcpu=arm9 -O2 -g
LFLAGS = ${LIBPATH} ${WARNINGS} -specs=gp32.specs
CPPFLAGS = ${CFLAGS}
CROSS = arm-elf-
CC = $(CROSS)gcc
CXX = $(CROSS)g++
AS = $(CROSS)gcc -c
CPP = $(CROSS)gcc -E -P
LD = $(CROSS)gcc
OBJCOPY = $(CROSS)objcopy
Any suggestion? Thanks
I am trying to compile GPSpout: it uses MMSDK (version 0.85 if I am not wrong).
I have installed the latest devkit + the latest MMSDK (the step by step tutorial in MrMirko's page is very clear), and the examples compile correctly, so I shouldn't have problems with paths.
My directory structure is
C:\gp32_MrMirko\gp32_SDK for the necessary stuff (as the tutorial says)
and
C:\GPSpout for the GPSpout source code
When I compile I obtain this:
arm-elf-gcc -c -I../gp32_MrMirko/gp32_SDK/include -I. -Wall -mcpu=arm9 -O2 -g -o
sys_gp32.o sys_gp32.c
sys_gp32.c: In function `pceFileWriteSct':
sys_gp32.c:265: warning: passing arg 1 of `smc_fwrite' discards qualifiers from
pointer target type
sys_gp32.c: In function `initGP32':
sys_gp32.c:285: warning: large integer implicitly truncated to unsigned type
sys_gp32.c:286: warning: large integer implicitly truncated to unsigned type
sys_gp32.c:287: warning: large integer implicitly truncated to unsigned type
sys_gp32.c: In function `main':
sys_gp32.c:315: warning: implicit declaration of function `pceAppInit'
sys_gp32.c:330: warning: implicit declaration of function `pceAppProc'
sys_gp32.c:357: warning: implicit declaration of function `pceAppExit'
sys_gp32.c: In function `pceFontPrintf':
sys_gp32.c:245: warning: control reaches end of non-void function
sys_gp32.c: In function `main':
sys_gp32.c:359: warning: control reaches end of non-void function
arm-elf-gcc -c -I../gp32_MrMirko/gp32_SDK/include -I. -Wall -mcpu=arm9 -O2 -g -o
spout.o spout.c
spout.c: In function `pceAppInit':
spout.c:109: warning: implicit declaration of function `gp32GetTicks'
spout.c:87: warning: statement with no effect
spout.c:107: warning: statement with no effect
spout.c: In function `pceAppExit':
spout.c:750: warning: statement with no effect
arm-elf-gcc -L../gp32_MrMirko/gp32_SDK/lib -Wall -specs=gp32.specs -o HSpout.elf
sys_gp32.o spout.o -L../gp32_MrMirko/gp32_SDK/lib -lmirkoSDK
arm-elf-gcc: gp32.specs: No such file or directory
make: *** [HSpout.elf] Error 1
First of all, I can't find gp32.specs anywhere.
The paths in the makefile are:
WARNINGS = -Wall
INCLUDES = -I../gp32_MrMirko/gp32_SDK/include -I.
#INCLUDES = -I/gp32_MrMirko/gp32_SDK/lib.src/include -I.
LIBPATH = -L../gp32_MrMirko/gp32_SDK/lib
LIBS = -L../gp32_MrMirko/gp32_SDK/lib -lmirkoSDK
#LIBS = -lmirkoSDK -lm
OBJS = sys_gp32.o \
spout.o
#-------------------------------------------------------------------------------
CFLAGS = $(INCLUDES) ${WARNINGS} -mcpu=arm9 -O2 -g
LFLAGS = ${LIBPATH} ${WARNINGS} -specs=gp32.specs
CPPFLAGS = ${CFLAGS}
CROSS = arm-elf-
CC = $(CROSS)gcc
CXX = $(CROSS)g++
AS = $(CROSS)gcc -c
CPP = $(CROSS)gcc -E -P
LD = $(CROSS)gcc
OBJCOPY = $(CROSS)objcopy
Any suggestion? Thanks