› Foros › Multiplataforma › Desarrollo
$ /usr/local/pspdev/psp/bin/sdl-config --libs
-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
BUILD_PRX = 1
PSP_FW_VERSION = 371
TARGET = xxxxx
PSPSDK = $(shell psp-config --pspsdk-path)
PSPBIN = $(shell psp-config --psp-prefix)/bin
SDL_CONFIG = $(PSPBIN)/sdl-config
OBJS = main.o
BUILD_PRX = 1
PSP_FW_VERSION = 371
SDL_INSTALL_PATH=/usr/local/pspdev/psp
#DEFAULT_CFLAGS = $(shell $(SDL_CONFIG) --cflags)
DEFAULT_CFLAGS = -I$(SDL_INSTALL_PATH)/include/SDL
MORE_CFLAGS = -G0 -O2 -DPSP
CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS)
CXXFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -fno-exceptions -fno-rtti
#LIBS = -lSDL_gfx -lSDL_image -lSDL_mixer -lSDL_ttf -lvorbisidec -lfreetype -lpng -ljpeg -lz -lm $(shell $(SDL_CONFIG) --libs)
LIBS = -lSDL_gfx -lSDL_image -lSDL_mixer -lSDL_ttf -lvorbisidec -lfreetype -lpng -ljpeg -lz -lm -L$(SDL_INSTALL_PATH)/lib -lSDL -lm -L$(SDL_INSTALL_PATH)/sdk/lib -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpspaudio -lc -lpspuser -lpsputility -lpspkernel
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = xxxxx
PSP_EBOOT_ICON = ./imagenes/iconoinicio.png
PSP_EBOOT_PIC1 = ./imagenes/background.png
include $(PSPSDK)/lib/build.mak
PSP_MODULE_INFO("My Homebrew", 0, 1, 0);
PSP_HEAP_SIZE_KB(20480);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_mixer.h>
#include <SDL/SDL_image.h>
#ifdef PSP
#include <pspkernel.h>
#include <pspctrl.h>
#include <pspdebug.h>
#include <pspgu.h>
#endif
#define printf pspDebugScreenPrintf
PSP_MODULE_INFO("My Homebrew", 0, 1, 0);
PSP_HEAP_SIZE_KB(20480);
int exit_callback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}
int CallbackThread(SceSize args, void *argp) {
int cbid;
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCallback(cbid);
sceKernelSleepThreadCB();
return 0;
}
int SetupCallbacks(void) {
int thid = 0;
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >= 0) {
sceKernelStartThread(thid, 0, 0);
}
return thid;
}
SDL_Event event;
SDL_Surface *screen = NULL;
SDL_Surface *fondo= NULL;
SDL_Rect origenn,destino;
int x_ant,y_ant,w_ant,h_ant;
int main(int argc, char *argv[]){
int done = 0;
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0) {printf ("NOse puedo Inicializar SDL: %s\n", SDL_GetError());exit (1);}
..etccc.etcccc
edelpuerto escribió:Perodna tio.
Fue despieste mio.
me faltaba la linea de:
SetupCallbacks();
soy un zokete.
Muchas graciasss, por tu explendida ayudaa, estoy muy contento.
Nota.- Os seguiré molestando a los maestross
donde encuentro psplinkusb + psp-gdb ?
Es que yo uso el Shell 3.81, y me va como el culo. se me para la conexion cada 2x3