Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

SDL on PSP [pspSDK]


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 sheep19   Members   -  Reputation: 335

Like
0Likes
Like

Posted 26 February 2012 - 01:24 AM

Hi. I have recently downloaded pspsdk, compiled some of the samples provided and now I want to try SDL.

However I am having trouble compiling my code, this looks like:

#include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>
#include <pspkerneltypes.h>
#include <psppower.h>
#include <SDL/SDL.h>
PSP_MODULE_INFO("Hello world", 0, 1, 1);
int main(int argc, char *argv[])
{
SDL_Init(SDL_INIT_EVERYTHING);
SDL_Quit();

return 0;
}

I know that some methods are missing - those callbacks. However I saw someone using allegro on the internet that didn't use it so I thought it would work.


And this is my make file (which I found on a forum)
TARGET = hello
OBJS = main.o

PSPSDK = $(shell psp-config --pspsdk-path)
PSPDEV = $(shell psp-config -d)
PSPBIN = $(PSPDEV)/bin
SDL_CONFIG = $(PSPBIN)/sdl-config

CFLAGS = -O2 -G0 -Wall -D PSP
CFLAGS += $(shell $(SDL_CONFIG) --cflags)
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBS = -lstdc++ -lSDL_ttf -lfreetype -lSDL_image -ljpeg -lpng -lz -lm -lSDL_mixer -lvorbisidec -lmikmod -lmad
LIBS += -lpspaudiolib -lpspaudio -lpsppower

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World

PSPSDK=C:\pspsdk\psp\sdk
include $(PSPSDK)/lib/build.mak

I compiled the code with the command:
vsmake >> a.txt
to see the output in a text file.

This is the result:
http://pastebin.com/3xP6iDFG

A lot of undefined references...

Anyone knows what I have to do to make it compile? (and run)
--------------Visit My Website

Sponsor:

#2 slicer4ever   Crossbones+   -  Reputation: 1448

Like
0Likes
Like

Posted 26 February 2012 - 09:58 PM

it looks like your forgetting to link to a few librarys, particularly pspgu, pspgum, and iirc their's another audio library to link to(maybe not, been quite awhile since i worked with the psp's homebrew sdk.)
Check out https://www.facebook.com/LiquidGames for some great games made by me on the Playstation Mobile market.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS