I found the one guide to porting SDL apps using rRootage as an example, however I would like any others available. With some simple ones I've received and attempted to port I've had... Issues. If possible I'd like a general tutorial on writing or modifying the Makefile for porting SDL apps. Impossible to be a catch-all of course, but any tips would be appreciated.
/tmp/cckBJFNY.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
/usr/local/pspdev/lib/gcc/psp/4.3.1/libgcc.a(unwind-dw2.o): In function `uw_install_context_1':
../../../libgcc/../gcc/unwind-dw2.c:1505: undefined reference to `memcpy'
collect2: ld returned 1 exit status
make: *** [Template.elf] Error 1
Nimue wrote:I found the one guide to porting SDL apps using rRootage as an example, however I would like any others available. With some simple ones I've received and attempted to port I've had... Issues. If possible I'd like a general tutorial on writing or modifying the Makefile for porting SDL apps. Impossible to be a catch-all of course, but any tips would be appreciated.
/tmp/cckBJFNY.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
/usr/local/pspdev/lib/gcc/psp/4.3.1/libgcc.a(unwind-dw2.o): In function `uw_install_context_1':
../../../libgcc/../gcc/unwind-dw2.c:1505: undefined reference to `memcpy'
collect2: ld returned 1 exit status
make: *** [Template.elf] Error 1
Looks more like they're missing libc than the include. The SDL libs have certain library requirements of their own on the PSP. Look at various PSP SDL projects to get an idea of what other libs to include in the makefile.
For example, here's the libs used with Jump 'n Bump -
Well with string.h included I am still having the memcpy error. I have actually been getting this on one or two other things I've tried to port. Any suggestions?
Still no luck and the same error. Even copying and pasting the LIBS section (and then taking out the parts I don't have support for that shouldn't matter [tiff, irkeyboard, etc]) you supplied doesn't seem to help any.
Download the file I supplied and then change the following things:
add #include<string.h> to the DungeonMaker.cpp file
AH!! It's a C++ project! No wonder -lc wasn't working. :) I wish people would specify C/C++ when asking about problems. Us devs know there's a difference, and it's so fundamental, we might not ask. It would be like asking "well, are you using a computer?" :D
J.F. wrote:AH!! It's a C++ project! No wonder -lc wasn't working. :) I wish people would specify C/C++ when asking about problems. Us devs know there's a difference, and it's so fundamental, we might not ask. It would be like asking "well, are you using a computer?" :D
Eh... I know well enough that there's a rather fundamental difference... I've coded in both (mostly in C), I don't really know -lc, I just use a template Makefile for my varying projects (which have admittedly been rather simple file parsers and such. One short little text game I wrote in C++ as my first project back in like... High school. Also some limited image shit for course purposes down at GATech) I made awhile ago (about three years). I just figured you took a look at the link I posted and just followed what you said. I'm not really a serious developer. Just write what I need.
edit: I just caught that I had CC=gcc. Feel like an idiot there.
Still having issues though. There's a reason it's called a template =P. Used it on my other PSP projects (Again, nothing notable. Just... Displaying text and such).