Code: Select all
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -O2 -G0 -Wall -D PSP -D_PSP_FW_VERSION=1
50 -c -o main.o main.c
main.c: In function 'chip8_prepare':
main.c:121: warning: unused variable 'keys'
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -O2 -G0 -Wall -D PSP -D_PSP_FW_VERSION=1
50 -L. -LC:/pspsdk/psp/sdk/lib -specs=C:/pspsdk/psp/sdk/lib/prxspecs -Wl,-q,-TC
:/pspsdk/psp/sdk/lib/linkfile.prx main.o C:/pspsdk/psp/sdk/lib/prxexports.o -l
SDL -lglut -lGLU -lGL -lm -lc -lpsputility -lpspdebug -lpspge -lpspdisplay -lps
pctrl -lpspsdk -lpspvfpu -lpsplibc -lpspuser -lpspkernel -lpsprtc -lpsppower -lp
spdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpsp
net_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o chip8.elf
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspaudio.o):
In function `PSPAUD_CloseAudio':
src/audio/psp/SDL_pspaudio.c:134: undefined reference to `sceAudioChRelease'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspaudio.o):
In function `PSPAUD_PlayAudio':
src/audio/psp/SDL_pspaudio.c:120: undefined reference to `sceAudioOutputPannedBl
ocking'
src/audio/psp/SDL_pspaudio.c:118: undefined reference to `sceAudioOutputBlocking
'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspaudio.o):
In function `PSPAUD_OpenAudio':
src/audio/psp/SDL_pspaudio.c:194: undefined reference to `sceAudioChReserve'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspvideo.o):
In function `PSP_GuStretchBlit':
src/video/psp/SDL_pspvideo.c:629: undefined reference to `sceGuStart'
src/video/psp/SDL_pspvideo.c:630: undefined reference to `sceGuEnable'
src/video/psp/SDL_pspvideo.c:631: undefined reference to `sceGuTexMode'
src/video/psp/SDL_pspvideo.c:632: undefined reference to `sceGuTexFunc'
src/video/psp/SDL_pspvideo.c:633: undefined reference to `sceGuTexFilter'
src/video/psp/SDL_pspvideo.c:634: undefined reference to `sceGuTexImage'
src/video/psp/SDL_pspvideo.c:635: undefined reference to `sceGuTexSync'
src/video/psp/SDL_pspvideo.c:672: undefined reference to `sceGuDrawArray'
src/video/psp/SDL_pspvideo.c:639: undefined reference to `sceGuGetMemory'
src/video/psp/SDL_pspvideo.c:647: undefined reference to `sceGuTexImage'
src/video/psp/SDL_pspvideo.c:649: undefined reference to `sceGuTexSync'
src/video/psp/SDL_pspvideo.c:676: undefined reference to `sceGuFinish'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspvideo.o):
In function `PSP_FlipHWSurface':
src/video/psp/SDL_pspvideo.c:558: undefined reference to `sceGuSwapBuffers'
src/video/psp/SDL_pspvideo.c:551: undefined reference to `sceGuSync'
src/video/psp/SDL_pspvideo.c:558: undefined reference to `sceGuSwapBuffers'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspvideo.o):
In function `PSP_GuUpdateRects':
src/video/psp/SDL_pspvideo.c:734: undefined reference to `sceGuSync'
src/video/psp/SDL_pspvideo.c:734: undefined reference to `sceGuSync'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspvideo.o):
In function `PSP_FillHWRect':
src/video/psp/SDL_pspvideo.c:688: undefined reference to `sceGuStart'
src/video/psp/SDL_pspvideo.c:690: undefined reference to `sceGuGetMemory'
src/video/psp/SDL_pspvideo.c:697: undefined reference to `sceGuDrawBuffer'
src/video/psp/SDL_pspvideo.c:701: undefined reference to `sceGuColor'
src/video/psp/SDL_pspvideo.c:702: undefined reference to `sceGuDrawArray'
src/video/psp/SDL_pspvideo.c:704: undefined reference to `sceGuDrawBuffer'
src/video/psp/SDL_pspvideo.c:706: undefined reference to `sceGuFinish'
src/video/psp/SDL_pspvideo.c:707: undefined reference to `sceGuSync'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspvideo.o):
In function `HWAccelBlit':
src/video/psp/SDL_pspvideo.c:587: undefined reference to `sceGuStart'
src/video/psp/SDL_pspvideo.c:589: undefined reference to `sceGuCopyImage'
src/video/psp/SDL_pspvideo.c:595: undefined reference to `sceGuFinish'
src/video/psp/SDL_pspvideo.c:599: undefined reference to `sceGuSync'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspvideo.o):
In function `PSP_SetColors':
src/video/psp/SDL_pspvideo.c:759: undefined reference to `sceGuStart'
src/video/psp/SDL_pspvideo.c:760: undefined reference to `sceGuClutLoad'
src/video/psp/SDL_pspvideo.c:761: undefined reference to `sceGuFinish'
src/video/psp/SDL_pspvideo.c:762: undefined reference to `sceGuSync'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspvideo.o):
In function `PSP_VideoQuit':
src/video/psp/SDL_pspvideo.c:777: undefined reference to `sceGuTerm'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspvideo.o):
In function `PSP_SetVideoMode':
src/video/psp/SDL_pspvideo.c:250: undefined reference to `sceGuInit'
src/video/psp/SDL_pspvideo.c:251: undefined reference to `sceGuStart'
src/video/psp/SDL_pspvideo.c:252: undefined reference to `sceGuDispBuffer'
src/video/psp/SDL_pspvideo.c:257: undefined reference to `sceGuDrawBuffer'
src/video/psp/SDL_pspvideo.c:259: undefined reference to `sceGuClear'
src/video/psp/SDL_pspvideo.c:260: undefined reference to `sceGuOffset'
src/video/psp/SDL_pspvideo.c:261: undefined reference to `sceGuViewport'
src/video/psp/SDL_pspvideo.c:262: undefined reference to `sceGuScissor'
src/video/psp/SDL_pspvideo.c:263: undefined reference to `sceGuEnable'
src/video/psp/SDL_pspvideo.c:264: undefined reference to `sceGuFrontFace'
src/video/psp/SDL_pspvideo.c:266: undefined reference to `sceGuFinish'
src/video/psp/SDL_pspvideo.c:267: undefined reference to `sceGuSync'
src/video/psp/SDL_pspvideo.c:270: undefined reference to `sceGuDisplay'
src/video/psp/SDL_pspvideo.c:254: undefined reference to `sceGuClutMode'
src/video/psp/SDL_pspvideo.c:255: undefined reference to `sceGuDrawBuffer'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspevents.o)
: In function `PSP_EventQuit':
src/video/psp/SDL_pspevents.c:274: undefined reference to `pspIrKeybFinish'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspevents.o)
: In function `PSP_EventInit':
src/video/psp/SDL_pspevents.c:247: undefined reference to `pspIrKeybInit'
src/video/psp/SDL_pspevents.c:249: undefined reference to `pspIrKeybOutputMode'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspevents.o)
: In function `PSP_PumpEvents':
src/video/psp/SDL_pspevents.c:112: undefined reference to `pspIrKeybReadinput'
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/lib\libSDL.a(SDL_pspevents.o)
: In function `EventUpdate':
src/video/psp/SDL_pspevents.c:71: undefined reference to `sceHprmPeekCurrentKey'
make: *** [chip8.elf] Error 1
makefile:
Code: Select all
TARGET = chip8
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall -D PSP
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBS = -lSDL -lglut -lGLU -lGL -lm -lc -lpsputility -lpspdebug -lpspge -lpspdisplay -lpspctrl -lpspsdk -lpspvfpu -lpsplibc -lpspuser -lpspkernel -lpsprtc -lpsppower
LIBDIR =
LDFLAGS =
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = CHIP8 EMU
BUILD_PRX = 1
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak