voila j'aimerais comme certainement beaucoup d'autre, me lancer dans la programmation sur PSP, j'ai suivi ce tuto pour installer toolchain ainsi que les lib dont j'aurais besoin
http://uruk-hai01.goldzoneweb.info/b...sp-sous-ubuntu
lors d'une compilation simple (programme tout con avec de l'affichage par le printf() de la psp) ca marche sans problème, compilation et exécution
mais pour la sdl c'est autre chose, la compilation ne passe pas et je ne trouve pas comment résoudre ca
donc
voila mon main.c
dans mon "pspfunc.h" il y a :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #include "pspfunc.h" PSP_MODULE_INFO("SDL test", 0, 1, 1); PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU); int main() { SceCtrlData pad; int go = 1; SDL_Init(SDL_INIT_VIDEO); pspDebugScreenInit(); SetupCallbacks(); while (go) { sceCtrlReadBufferPositive (&pad, 1); } sceKernelSleepThread(); return (0); }
et mon Makefile
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 #ifndef __PSPFUNC_H__ # define __PSPFUNC_H__ #include <pspkernel.h> #include <pspdebug.h> #include <pspdisplay.h> #include <pspctrl.h> #include <SDL/SDL.h> #include <SDL/SDL_image.h> # define printf pspDebugScreenPrintf int exit_callback(int arg1, int arg2, void *common); int CallbackThread(SceSize args, void *argp); int SetupCallbacks(); #endif
et le resultat d'un make rebuild :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 TARGET = SDLtest OBJS = main.o\ pspfunc.o INCDIR = CFLAGS = -G4 -Wall -O3 -I/usr/local/pspdev/psp/include/SDL CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) PSPSDK = $(shell psp-config --pspsdk-path) PSPBIN = $(PSPSDK)/../bin LIBDIR = LDFLAGS = STDLIBS = -lSDLmain -lSDL_image -lSDL -lpng -ljpeg -lm -lz \ -lpspsdk -lpspctrl -lpsprtc -lpsppower -lpspgu -lpspaudiolib -lpspaudio -lpsphprm LIBS = $(STDLIBS)$(YOURLIBS) EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = sdltest PSPSDK = $(shell psp-config --pspsdk-path) SDL_CONFIG = /usr/local/pspdev/psp/bin/sdl-config DEFAULT_CFLAGS = $(shell $(SDL_CONFIG) --cflags) include $(PSPSDK)/lib/build.mak
je ne comprend rien a ce makefile pour toolchain
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55 rm -f SDLtest.elf main.o pspfunc.o PARAM.SFO EBOOT.PBP EBOOT.PBP psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -G4 -Wall -O3 -I/usr/local/pspdev/psp/include/SDL -D_PSP_FW_VERSION=150 -c -o main.o main.c psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -G4 -Wall -O3 -I/usr/local/pspdev/psp/include/SDL -D_PSP_FW_VERSION=150 -c -o pspfunc.o pspfunc.c psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -G4 -Wall -O3 -I/usr/local/pspdev/psp/include/SDL -D_PSP_FW_VERSION=150 -L. -L/usr/local/pspdev/psp/sdk/lib main.o pspfunc.o -lSDLmain -lSDL_image -lSDL -lpng -ljpeg -lm -lz -lpspsdk -lpspctrl -lpsprtc -lpsppower -lpspgu -lpspaudiolib -lpspaudio -lpsphprm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o SDLtest.elf /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o): dans la fonction � PSP_GL_Init �: /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:109: r�f�rence ind�finie vers � eglGetDisplay � /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:109: r�f�rence ind�finie vers � eglGetError � /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:110: r�f�rence ind�finie vers � eglInitialize � /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:110: r�f�rence ind�finie vers � eglGetError � /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:135: r�f�rence ind�finie vers � eglChooseConfig � /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:135: r�f�rence ind�finie vers � eglGetError � /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:143: r�f�rence ind�finie vers � eglCreateContext � /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:143: r�f�rence ind�finie vers � eglGetError � /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:144: r�f�rence ind�finie vers � eglCreateWindowSurface � /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:144: r�f�rence ind�finie vers � eglGetError � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o): dans la fonction � PSP_GL_SwapBuffers �: /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:82: r�f�rence ind�finie vers � eglSwapBuffers � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o): dans la fonction � PSP_GL_MakeCurrent �: /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspgl.c:69: r�f�rence ind�finie vers � eglMakeCurrent � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x4): r�f�rence ind�finie vers � glBegin � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0xc): r�f�rence ind�finie vers � glBindTexture � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x14): r�f�rence ind�finie vers � glBlendFunc � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x1c): r�f�rence ind�finie vers � glColor4f � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x2c): r�f�rence ind�finie vers � glDisable � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x34): r�f�rence ind�finie vers � glEnable � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x3c): r�f�rence ind�finie vers � glEnd � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x44): r�f�rence ind�finie vers � glFlush � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x4c): r�f�rence ind�finie vers � glGenTextures � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x54): r�f�rence ind�finie vers � glGetString � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x5c): r�f�rence ind�finie vers � glLoadIdentity � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x64): r�f�rence ind�finie vers � glMatrixMode � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x6c): r�f�rence ind�finie vers � glOrtho � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x74): r�f�rence ind�finie vers � glPixelStorei � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x7c): r�f�rence ind�finie vers � glPopAttrib � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x84): r�f�rence ind�finie vers � glPopClientAttrib � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x8c): r�f�rence ind�finie vers � glPopMatrix � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x94): r�f�rence ind�finie vers � glPushAttrib � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0x9c): r�f�rence ind�finie vers � glPushClientAttrib � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0xa4): r�f�rence ind�finie vers � glPushMatrix � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0xac): r�f�rence ind�finie vers � glTexCoord2f � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0xb4): r�f�rence ind�finie vers � glTexEnvf � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0xbc): r�f�rence ind�finie vers � glTexImage2D � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0xc4): r�f�rence ind�finie vers � glTexParameteri � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0xcc): r�f�rence ind�finie vers � glTexSubImage2D � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0xd4): r�f�rence ind�finie vers � glVertex2i � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspgl.o):(.rodata+0xdc): r�f�rence ind�finie vers � glViewport � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspevents.o): dans la fonction � PSP_EventQuit �: /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspevents.c:274: r�f�rence ind�finie vers � pspIrKeybFinish � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspevents.o): dans la fonction � PSP_EventInit �: /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspevents.c:247: r�f�rence ind�finie vers � pspIrKeybInit � /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspevents.c:249: r�f�rence ind�finie vers � pspIrKeybOutputMode � /usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspevents.o): dans la fonction � PSP_PumpEvents �: /home/server/Projets/psp/psplibraries/build/SDL/src/video/psp/SDL_pspevents.c:112: r�f�rence ind�finie vers � pspIrKeybReadinput � collect2: ld a retourné 1 code d'état d'exécution make: *** [SDLtest.elf] Erreur 1
et encore moins comment régler le problème
quelqu'un aurait il la reponse ?
PS: OS : ubuntu 8.04
Partager