| View previous topic :: View next topic |
| Author |
Message |
richy486

Joined: 08 Mar 2006 Posts: 4
|
Posted: Wed Sep 06, 2006 7:59 pm Post subject: Error, could not fixup imports, stubs out of order. |
|
|
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 |
|
| Back to top |
|
 |
danzel
Joined: 04 Nov 2005 Posts: 182
|
Posted: Wed Sep 06, 2006 8:41 pm Post subject: |
|
|
It means your LIBS= line is out of order.
Not sure what the correct line would be for you, try fiddle them around.
Move rtc further left and pspsdk to the far right maybe? |
|
| Back to top |
|
 |
dsn

Joined: 09 Nov 2005 Posts: 47 Location: Indianapolis, Indiana, USA
|
Posted: Thu Sep 07, 2006 10:17 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|