I get this error when I make my program:
psp-fixup-imports invaderR.elf
Error, could not fixup imports, stubs out of order.
Ensure the SDK libraries are linked in last to correct this error
make: *** [invaderR.elf] Error 1
I'm not quite sure what to do because I thought I had linked the SDK libs last.
Here is my makefile:
TARGET = invaderR_4c
OBJS = main.o Base.o BaseSet.o Bomber.o Invader.o InvaderSet.o Player.o Shooter.o Text.o
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
PSPBIN = $(PSPSDK)/../bin
CFLAGS += -I$(PSPSDK)/../include -fsingle-precision-constant -g -Wall -O2
LIBS += -lglut -lGLU -lGL -lm -lc -lpsputility -lpspdebug -lpspge -lpspdisplay -lpspctrl -lpspsdk -lpspvfpu -lpsplibc -lpspuser -lpspkernel -lpsprtc -lpsppower -lstdc++
LDFLAGS += -DMODULE_NAME="invaderR_4c" psp-setup.c
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = invaderR_4c
# PSP_EBOOT_ICON = hero.png
# PSP_EBOOT_PIC1 = bg.png
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
any help would be great.
Thanks
Error, could not fixup imports, stubs out of order.
How come you've got all that stuff in LIBS? Mine looks like this:
LIBS = -lpspgum -lpspgu -lpsprtc -lmad -lpspaudio -lpsppower
build.mak adds these to LIBS for you: -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel
LIBS = -lpspgum -lpspgu -lpsprtc -lmad -lpspaudio -lpsppower
build.mak adds these to LIBS for you: -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel