PDA

View Full Version : Programming in C / C++ for PSP... ?



CT_Bolt
November 14th, 2006, 20:19
First of all thank you for taking the time to read this:

Some background Info:

I have been programming for a while now & i recently learned c++.
I've read alot of different things on how to set up a development evironment, but... I can't fully set up anything.


My questions:

What is the best PSP develoment environment to use?
What all do I need after download/extracting devkitPSP_r8-win32?
How do I set up a good PSP develoment environment?
Sorry to ask such a repeated question but, no other post was clear enough.

splodger15
November 14th, 2006, 20:34
Have a look here it tells you how to set up a enviroment


http://www.psp-programming.com/tutorials/

yaustar
November 15th, 2006, 10:33
1. Depends on what you define as best. I prefer the Code::Blocks and DevKitPSP setup (IDE + Compiler). To me, it's the fastest cleanest way to get up and running. There are also various other 'environments' to setup as well.

2. Either an IDE or Msys which is a minimalist cygwin environment. What isn't recommended but possible is to use batch files to compile source code. You can also download make.exe and use that with makefiles.

3. Again, it depends on your definition of good. You have the cygwin tutorial as linked by splodger or you can follow my tutorial on using Code::Blocks and DevkitPSP.

http://www.psp-programming.com/forums/index.php?topic=1363.0

CT_Bolt
November 15th, 2006, 18:52
Well I had CYGWIN almost fully setup but, then I got other errors so I wanted to know if there was an easier way.

Right now I have devkitPSP_r8-win32 & MSYS-1.0.10 downloaded. MSYS is installed but I don't know what to do with devkit.

Well any way splodger15, yaustar thank you both for your help.:thumbup:

splodger15
November 15th, 2006, 18:55
No problem

CT_Bolt
November 15th, 2006, 20:36
Well I followed the Code::Block tutorial but, I think I did this wrong and now I'm stuck again...
can anyone tell me what this means I need to do.

Project : Console application
Compiler : DevKitPSP (called directly)
Directory : C:\devkitPSP\bin\Hello World\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: main.c
Linking console executable: C:\devkitPSP\bin\Hello World\HelloWorld.elf
c:\devkitpsp\bin\..\lib\gcc\psp\4.1.0\..\..\..\..\ psp\bin\ld.exe: cannot find -lpspdebug
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings

aw man... I am really sorry about this.

MikeDX
November 15th, 2006, 21:01
edit your msys.bat file

and under the line that says

if "%1" == "GOTO:" goto %2

add these 3 lines

SET PATH=c:\devkitpro\devkitpsp\bin;%PATH%
SET PSPSDK=/c/devkitpro/devkitpsp/psp/sdk
SET PSPDIR=/c/devkitpro/devkitpsp/psp

assuming you installed to /c/devkitpro...

CT_Bolt
November 16th, 2006, 13:11
THANK YOU MikeDX, I now have msys 1.0 working and making eboots.

AND THANK YOU again yaustar, splodger15 for taking the time to help me.

:thumbup: :D :thumbup:

splodger15
November 16th, 2006, 17:52
^ ^
No Problem

MikeDX
November 16th, 2006, 19:00
Well done mate, it's cool when you make your first eboot!

If you want any psp dev help let me know :)