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 

Lil'help: pspmame .04 .97

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



Joined: 06 May 2005
Posts: 2

PostPosted: Fri Aug 19, 2005 3:38 am    Post subject: Lil'help: pspmame .04 .97 Reply with quote

I was wondering if someone could give me a hand... I have the source for PSPmame 97 ( http://www.geocities.jp/pspmame/files/pspmame04_src.zip ) and I can't seem to get it to compile correctly in the SDK (cygwin - set up following the wiki - using current toolchain.sh). The code was compiled with some other tool chain I guess. I figured out the first part and made changes to /src/psp/psp.mak

Old psp.mak
Code:

AR = mipsel-elf-ar
CC = mipsel-elf-gcc
LD = mipsel-elf-ld
ASM = mipsel-elf-as
STRIP =mipsel-elf-strip

CFLAGS += -D_HUGE=HUGE_VAL -DCLIB_DECL=
ASMFLAGS = -march=r4000 -g -mabi=eabi -mgp32 -c -xassembler -O

# add libs
#TMK LIBS += -lalleg -laudio -lemu -lzvg
LIBS = -lc -lm /usr/local/lib/gcc/mipsel-elf/3.4.2/libgcc.a


New psp.mak
Code:

AR = psp-ar
CC = psp-gcc
LD = psp-ld
ASM = psp-as
STRIP = psp-strip

CFLAGS += -D_HUGE=HUGE_VAL -DCLIB_DECL=
ASMFLAGS = -march=r4000 -g -mabi=eabi -mgp32 -c -xassembler -O

# add libs
#TMK LIBS += -lalleg -laudio -lemu -lzvg
LIBS = -lc -lm /usr/can't/remember/off/hand/lib/gcc/4.something/libgcc.a


Anyway, I don't have the exact error here (I'll edit this when I get home) since I was using my home computer but if I recall correctly it was a 'relocation error'. Can some what give me some suggestions??

.shin
_________________
.shin
Back to top
View user's profile Send private message AIM Address
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Fri Aug 19, 2005 4:42 am    Post subject: Reply with quote

Does your toolchain compile the sample's in the PSPSDK?

If it does, then try and using one of those make files and editing it a little bit to work with PSPMame.
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
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