So I try to port an SDL2 game, which work until now. But I want to debug it.
So I wanted my PSP to print out some messages.
When using the examples from the sdk, printf prints to the console where pspsh is open (when not using the macro which overrides printf).
But for some reason using cmake it breaks that somehow (no text appears, nothing fancy). I guess that has to do something with the order in which the libraries are linked. I wanted to ask if someone knows more about it.
My current order:
-lSDL2 -lSDL2_image -lvorbisfile -lvorbis -logg -lSDL2_mixer -lc -lpspirkeyb -lpspwlan -lpsppower -lpspvram -lGL -lfreetype -ljpeg -lpng -lz -lSDL2 -lpspgu -lpsphprm -lpspaudio -lstdc++ -lpspvfpu -lpsprtc -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel
Also tried using -Wl,--start-group no difference unfortunately.
Also I have no idea what the correct order is or how to find it out
Advertising