Search found 5 matches

by phosphorous
Mon Jan 07, 2008 9:31 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 659084

R_MIPS_GPREL16 relocations are $gp relative. -G0 disables $gp relative addressing so "relocation truncated to fit: R_MIPS_GPREL16" means the module was built without -G0. Ok, so I went back to the configure step and added -G0 to CXXFLAGS: CXXFLAGS='-G0 -I/usr/local/pspdev/psp/sdk/include ...
by phosphorous
Sun Jan 06, 2008 5:53 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 659084

truncate prototype needs to be extern "C" Instead of messing w/ unistd.h I ended up creating a new file, truncate.h, and including that in ftruncate.c and drivelocal.cpp: #ifndef __TRUNCATE_H__ #define __TRUNCATE_H__ #ifdef __cplusplus extern "C" { #endif int _EXFUN&...
by phosphorous
Sat Jan 05, 2008 3:47 pm
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 659084

truncate's prototye is in unistd.h but it's defined out. Ok, I wasn't sure what to do here so I just pulled the prototype out of the ifdef in unistd.h and the file compiled. My fault, this line should be commented out. Commented it out and the build continued. Next error was: cdrom_image.cpp: In fu...
by phosphorous
Fri Jan 04, 2008 5:45 pm
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 659084

I still need help w/ the truncate issue but uncovered another error. After adding a few more hacks to get the build to continue, I'm stuck again here:
sdlmain.cpp:83:20: error: me_rpc.h: No such file or directory
by phosphorous
Fri Jan 04, 2008 4:24 pm
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 659084

There are probably changes i've made to my toolchain that will cause this to fail, so post if there are other problems. I'm on a Mac. I applied the patch and ran configure: CXXFLAGS='-I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/psp/include/SDL -fomit-frame-pointer -Os -frename-registers ...