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 Compiling SDL_Image

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



Joined: 11 Oct 2005
Posts: 7

PostPosted: Tue Oct 11, 2005 5:16 pm    Post subject: Error Compiling SDL_Image Reply with quote

First I ran the toolchain script from oopo's website then I compiled SDL, PSPSDK, jpeg, zlib, and libpng all from the svn, then I compiled newlib 1.13.0, and binutils-2.16 with their patches from the toolchain applied.

I can't get past this error however, while compiling SDL_image :( using OS X 10.4.2

Code:
MiniMac:/tmp/pspsdl/SDL_image username$ sudo make
/bin/sh ./libtool --preserve-dup-deps --mode=link psp-gcc  -g -O2 -G0 -I"/usr/local/pspdev/psp/sdk/include" -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XPM  -L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser -o showimage  showimage.o libSDL_image.la -L/usr/local/pspdev/psp/lib -lSDLmain -lSDL -lm -L/usr/local/pspdev/psp/sdk/lib -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpspaudio -lc -lpspuser -lpsputility -lpspkernel
psp-gcc -g -O2 -G0 -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XPM -o showimage showimage.o  -L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser ./.libs/libSDL_image.a -lc -lpspuser -L/usr/local/pspdev/psp/lib -L/tmp/pspdev/gcc-4.0.1/build-psp-c++/psp/libstdc++-v3/src -L/tmp/pspdev/gcc-4.0.1/build-psp-c++/psp/libstdc++-v3/src/.libs -L/tmp/pspdev/gcc-4.0.1/build-psp-c++/gcc -L/usr/local/pspdev/psp/bin -L/usr/local/pspdev/lib/gcc/psp/4.0.1 -L/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib -lc -lpspuser -lc -lpspuser -lSDLmain /usr/local/pspdev/psp/lib/libSDL.a /usr/local/pspdev/psp/lib/libstdc++.a -lgcc -lc -lpspuser -lm -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpspaudio -lc -lpspuser -lpsputility -lpspkernel
/usr/local/pspdev/psp/lib/libc.a(pspcwd.o): In function `__psp_init_cwd':
../../../../../../newlib/libc/sys/psp/pspcwd.c:28: undefined reference to `__psp_argv_0'
../../../../../../newlib/libc/sys/psp/pspcwd.c:28: undefined reference to `__psp_argv_0'
collect2: ld returned 1 exit status
make: *** [showimage] Error 1


any help is appreciated
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Oct 12, 2005 4:03 am    Post subject: Reply with quote

The toolchain at oopo's site is old and incompatible with current pspsdk. Checkout svn://svn.pspdev.org/psp/trunk/psptoolchain/ and run the toolchain.sh in there.
Back to top
View user's profile Send private message
x2cube



Joined: 11 Oct 2005
Posts: 7

PostPosted: Wed Oct 12, 2005 4:54 am    Post subject: Reply with quote

jimparis wrote:
The toolchain at oopo's site is old and incompatible with current pspsdk. Checkout svn://svn.pspdev.org/psp/trunk/psptoolchain/ and run the toolchain.sh in there.


thanks that fixed it
Back to top
View user's profile Send private message
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