Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
February 10, 2012, 02:08:56 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Check out the Code Section!
Home Help Search Shop Login Register
Digg This!
Pages: 1 2 [3] 4
Print
Author Topic: The quickest and easiest way to set up your environment on Windows  (Read 21102 times)
Angelo
Newbie
*

Karma: +6/-0
Offline Offline

Posts: 39
2256.20 points

View Inventory
Send Money to Angelo

View Profile
« Reply #30 on: May 29, 2008, 07:30:24 AM »

Look abouve, you have to configure a control panel setting. Wink

When set up correctly I much prefer DevkitPro.  Very Happy

Why?

-  Automaticly updates.
-  More like MS DOS giving it more Windows like functions like CLS. (Sod Linux functions!)
-  Faster! It compiles stuff on my slow XP computer super fast! CYGWIN compiles stuff on my Vista SUPER      computer, very slowly.
-  MUCH Easier to install than CYGWIN and Toolchain.

As I'm a PSPIR dev I had to install the PSPIRKeyB lib and it went fine.

If you're not into LIBS and stuff, and after a quick, easy compiler Devkit Pro is great!

Angelo

Smile
« Last Edit: May 29, 2008, 07:32:48 AM by angelo » Logged


phleup
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10
1241.91 points

View Inventory
Send Money to phleup

View Profile
« Reply #31 on: November 09, 2008, 12:54:27 PM »

hi.

I try to install zlib and libpng with devkitpro and I really don't know how to do that.
I downlaoded the libs but I don't know how to compile or install this libs.

can you help me ?

thanks
Logged
Angelo
Newbie
*

Karma: +6/-0
Offline Offline

Posts: 39
2256.20 points

View Inventory
Send Money to Angelo

View Profile
« Reply #32 on: November 09, 2008, 03:10:29 PM »

You have to use pre compiled libs! Here this site will help!

http://minpspw.sourceforge.net/

I recomend you install the PSPSDK 0.8.10.

It'll put you all up to date and install all major libs.

Install extra libs on the side if you need them!

Good luck!

Angelo
Logged
phleup
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10
1241.91 points

View Inventory
Send Money to phleup

View Profile
« Reply #33 on: November 10, 2008, 12:16:51 PM »

thanks a lot, it works perfectly !!!
Logged
phleup
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10
1241.91 points

View Inventory
Send Money to phleup

View Profile
« Reply #34 on: November 11, 2008, 06:25:36 AM »

Now I have problem with compiling programs with SDL lib.

I'm really bad in makefiles and it's beacoming anoying !

here is my program :
Code:
#include <stdio.h>
#include <stdlib.h>

#include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>

#include <SDL/SDL.h>
#include <SDL/SDL_image.h>

PSP_MODULE_INFO("SDL_image", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);

int SetupCallbacks(void);
int exit_callback(int arg1, int arg2, void *common);
int CallbackThread(SceSize args, void *argp);

int main()
{
SDL_Init(SDL_INIT_VIDEO);
SDL_Surface *ecran = NULL;
SDL_Surface *image = NULL;
ecran = SDL_SetVideoMode(480, 272, 32, SDL_HWSURFACE | SDL_DOUBLEBUF);
SDL_FillRect(ecran, NULL, SDL_MapRGB(ecran->format, 0, 0, 0));
image = IMG_Load("image.png");
SDL_Rect coordonnee_image;
coordonnee_image.x = ecran->w / 2 - image->w / 2;
coordonnee_image.y = ecran->h / 2 - image->h / 2;
int continuer = 1;
pspDebugScreenInit();
SetupCallbacks();
SceCtrlData pad;
while(continuer)
{
sceCtrlReadBufferPositive (&pad, 1);
if (pad.Buttons & PSP_CTRL_UP)
{
coordonnee_image.y--;
}
else if (pad.Buttons & PSP_CTRL_DOWN)
{
coordonnee_image.y++;
}
if (pad.Buttons & PSP_CTRL_RIGHT)
{
coordonnee_image.x++;
}
else if (pad.Buttons & PSP_CTRL_LEFT)
{
coordonnee_image.x--;
}
SDL_FillRect(ecran, NULL, SDL_MapRGB(ecran->format, 0, 0, 0));
SDL_BlitSurface(image, NULL, ecran, &coordonnee_image);
SDL_Flip(ecran);
}
SDL_FreeSurface(image);
SDL_FreeSurface(ecran);
SDL_Quit();
sceKernelSleepThread();
return 0;
}

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;
}

and this is my makefile :
Code:
TARGET = SDL_image
OBJS = main.o

INCDIR =
CFLAGS = -G4 -Wall -O3
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 = Les images

PSPSDK=$(shell psp-config --pspsdk-path)
DEFAULT_CFLAGS = $(shell $(SDL_CONFIG) --cflags)
include $(PSPSDK)/lib/build.mak


and here is the compiler response :
Code:
psp-gcc -I. -Ie:/devkitPro/devkitPSP/psp/sdk/include -G4 -Wall -O3 -D_PSP_FW_VER
SION=150  -L. -Le:/devkitPro/devkitPSP/psp/sdk/lib   main.o -lSDLmain -lSDL_imag
e -lSDL -lpng -ljpeg -lm -lz -lpspsdk -lpspctrl -lpsprtc -lpsppower -lpspgu -lps
paudiolib -lpspaudio -lpsphprm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsd
k -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpsp
user -lpspkernel -o SDL_image.elf
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o): In function `PSP_GL_Init':
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:109: undefine
d reference to `eglGetDisplay'
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:109: undefine
d reference to `eglGetError'
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:110: undefine
d reference to `eglInitialize'
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:110: undefine
d reference to `eglGetError'
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:135: undefine
d reference to `eglChooseConfig'
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:135: undefine
d reference to `eglGetError'
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:143: undefine
d reference to `eglCreateContext'
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:143: undefine
d reference to `eglGetError'
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:144: undefine
d reference to `eglCreateWindowSurface'
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:144: undefine
d reference to `eglGetError'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o): In function `PSP_GL_SwapBuffers':
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:82: undefined
 reference to `eglSwapBuffers'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o): In function `PSP_GL_MakeCurrent':
x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:69: undefined
 reference to `eglMakeCurrent'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x4): undefined reference to `glBegin'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0xc): undefined reference to `glBindTexture'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x14): undefined reference to `glBlendFunc'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x1c): undefined reference to `glColor4f'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x2c): undefined reference to `glDisable'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x34): undefined reference to `glEnable'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x3c): undefined reference to `glEnd'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x44): undefined reference to `glFlush'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x4c): undefined reference to `glGenTextures'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x54): undefined reference to `glGetString'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x5c): undefined reference to `glLoadIdentity'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x64): undefined reference to `glMatrixMode'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x6c): undefined reference to `glOrtho'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x74): undefined reference to `glPixelStorei'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x7c): undefined reference to `glPopAttrib'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x84): undefined reference to `glPopClientAttrib'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x8c): undefined reference to `glPopMatrix'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x94): undefined reference to `glPushAttrib'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0x9c): undefined reference to `glPushClientAttrib'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0xa4): undefined reference to `glPushMatrix'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0xac): undefined reference to `glTexCoord2f'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0xb4): undefined reference to `glTexEnvf'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0xbc): undefined reference to `glTexImage2D'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0xc4): undefined reference to `glTexParameteri'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0xcc): undefined reference to `glTexSubImage2D'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0xd4): undefined reference to `glVertex2i'
e:/devkitpro/devkitpsp/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib\libSDL.a(SDL
_pspgl.o):(.rodata+0xdc): undefined reference to `glViewport'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [SDL_image.elf] Error 1

please, can you help me ??

Logged
gibbocool
Embellished by our ignorance
News Posters
Hero Member
*

Karma: +34/-11
Offline Offline

Posts: 822
2973.87 points

View Inventory
Send Money to gibbocool

Power Overwhelming


View Profile WWW
« Reply #35 on: November 12, 2008, 04:06:06 AM »

Looks like SDL needs to be installed.
Logged

phleup
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10
1241.91 points

View Inventory
Send Money to phleup

View Profile
« Reply #36 on: November 12, 2008, 06:03:45 AM »

what I don't understand is that : "x:\workspace\minpspw\devpaks\017_SDL\SDL\src\video\psp/SDL_pspgl.c:109"

I don't have any x:\workspace\minpspw.... directory

and SDL lib seems to be installed since I have the headers in my include directory..
Logged
gibbocool
Embellished by our ignorance
News Posters
Hero Member
*

Karma: +34/-11
Offline Offline

Posts: 822
2973.87 points

View Inventory
Send Money to gibbocool

Power Overwhelming


View Profile WWW
« Reply #37 on: November 12, 2008, 04:14:24 PM »

do you have e:/devkitpro/devkitpsp/lib/psp/lib\libSDL.a
Logged

phleup
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10
1241.91 points

View Inventory
Send Money to phleup

View Profile
« Reply #38 on: November 12, 2008, 11:57:39 PM »

Yes I have that. But I solved my problem by installing all the devpaks available on minpspw website.

maybe it was a problem with the releases of the libs.

However, thanks for your help !
Logged
rex922
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2
40.42 points

View Inventory
Send Money to rex922

View Profile
« Reply #39 on: January 05, 2009, 10:29:45 PM »

where shuld i install PSPSDK 0.8.10??
ty in advance
Logged

st3ph3n
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 12
810.47 points

View Inventory
Send Money to st3ph3n

View Profile
« Reply #40 on: March 08, 2009, 07:23:12 AM »

Hi, I'm having problem in compiling my program in devkitpro. My program contain instruction that load a png graphics file. Does anyone have an idea to fix this? Error are shown below: Pls help. Thank in advance.

Code:
psp-gcc -I. -I/c/devkitPro/devkitPSP/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VE
SION=150   -c -o main.o main.c
main.c:13:17: error: png.h: No such file or directory
main.c:4221:87: warning: no newline at end of file
make: *** [main.o] Error 1
Logged
Alpha-01
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7
376.82 points

View Inventory
Send Money to Alpha-01

View Profile
« Reply #41 on: April 21, 2009, 01:45:58 PM »

i get this error when trying to make my helloworld Sad

Quote
$ make
make: psp-config: Command not found
make: psp-config: Command not found
/lib/build.mak:15: *** $(PSPSDK) is undefined.  Use "PSPSDK := $(shell psp-confi
g --pspsdk-path)" in your Makefile.  Stop.

Help me please
Logged
dark chazz
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1
136.95 points

View Inventory
Send Money to dark chazz

View Profile
« Reply #42 on: August 24, 2009, 06:16:22 AM »

devkitpro is very old and outdated.
I recommend everyone to use minpsp ,it's up to date with the latest sdk , libs , toolchain.

http://minpspw.sourceforge.net/
Logged
gibbocool
Embellished by our ignorance
News Posters
Hero Member
*

Karma: +34/-11
Offline Offline

Posts: 822
2973.87 points

View Inventory
Send Money to gibbocool

Power Overwhelming


View Profile WWW
« Reply #43 on: August 24, 2009, 11:37:40 PM »

Cheers for the feedback, I put a note in the original post about this.
Logged

steerlat
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 14
737.76 points

View Inventory
Send Money to steerlat

View Profile
« Reply #44 on: June 30, 2011, 04:52:26 AM »

Why do I exactly need Cygwin?

And what's so inconvenient about precompiled packages and adding additional libs?

I'm downloading Cygwin currently anyway. I went for the 'minimal' approach of Setting Up CYGWIN in 7 simple steps, but came to find that some items listed in the code tag in the thread are simply not present in the package selection dialog of the cygwin installer.

Once I got this, I'm still not too sure why I have what I'm having. I'd really appreciate if you guys could help me out the next couple days on certain things. I'm jailbreaking my psp for my job and I'm going to create a simple program for it. I work for a pretty big museum.
Logged
Pages: 1 2 [3] 4
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.627 seconds with 39 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com