forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error, could not fixup imports, stubs out of order.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
richy486



Joined: 08 Mar 2006
Posts: 4

PostPosted: Wed Sep 06, 2006 7:59 pm    Post subject: Error, could not fixup imports, stubs out of order. Reply with quote

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
View user's profile Send private message
danzel



Joined: 04 Nov 2005
Posts: 182

PostPosted: Wed Sep 06, 2006 8:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
dsn



Joined: 09 Nov 2005
Posts: 47
Location: Indianapolis, Indiana, USA

PostPosted: Thu Sep 07, 2006 10:17 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group