PSP IDE (Developement Environment)

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Sullivan
Posts: 9
Joined: Thu Jul 03, 2008 4:39 am
Contact:

PSP IDE (Developement Environment)

Post by Sullivan »

Ok, I am a little stressed out and hope this is the correct forum to post this on.

I am in need of a Development Environment for coding on the PSP. I have done many tutorials and such, and know the basics. The thing is, I want to have a IDE to code in and do all the compiling from one program, Code:Blocks is the current one I have been fiddling around with. But I keep getting errors when trying to compile my code.

Can any one help me setup my IDE or refer me to a better IDE to work with that will work with cygwin.

Thanks
pspZorba
Posts: 156
Joined: Sat Sep 22, 2007 11:45 am
Location: NY

Post by pspZorba »

code::blocks works perfectly for me.

you can have a look at this thread:

http://forums.ps2dev.org/viewtopic.php? ... 5dc4380a2b
--pspZorba--
NO to K1.5 !
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Here's my method of using the psp toolchain with Code::Blocks.

http://forums.ps2dev.org/viewtopic.php?t=10319
Sullivan
Posts: 9
Joined: Thu Jul 03, 2008 4:39 am
Contact:

Post by Sullivan »

thanks for the replies.
I used the first one so far, thanks.
I decided to give it a test at running a old hello world app I made a while ago. But it didn't compile.

Screenshot:

http://picboost.com/images/2008/July/2/ ... rectly.JPG
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

Microsoft's Visual Studio Express is free even for commercial application and Heimdall's toolchain comes with a wizard installer for VS, too. NetBeans 6.0 allow development of c++ code and automaGically detects installed toolchains (for psp a little tweaking is needed...nothing more than turning "g++" into "psp-g++" around in configs)
Sullivan
Posts: 9
Joined: Thu Jul 03, 2008 4:39 am
Contact:

Post by Sullivan »

Can anyone else help based on my above information?

Please
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

I'm still using Dev C++. Theres a U3/Portable Apps version that I use to code away from home.

But Code::Blocks looks like its newer/better.

In any case Dec C++ is extremely easy to setup.
You only need to configure the paths to the libraries and includes.

Heres a guide I saved. (Click on Request Ticket to download) Open the MHT file in Internet Explorer.
http://ifile.it/ma2ut1p/pspsdk_with_dev_c__.php_.mht
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Sullivan wrote:Can anyone else help based on my above information?

Please
If it didn't work the first way, you could always try it my way (see above). :)
Sullivan
Posts: 9
Joined: Thu Jul 03, 2008 4:39 am
Contact:

Post by Sullivan »

Thanks torch, I just found that thread on QJ. Well I followed it, then I goto Execute > Compile, but it gives my simple hello world test app errors.
vijay
Posts: 25
Joined: Thu Jan 03, 2008 10:07 pm

Post by vijay »

i believe u r not including the header files or the psp libs properly
thats why its giving tht "undefined reference to ........"
check ur makefile.

i use eclipse on my linux machine.
Sullivan
Posts: 9
Joined: Thu Jul 03, 2008 4:39 am
Contact:

Post by Sullivan »

my makefile contains the following:

Code: Select all

TARGET = hello
OBJS = main.o

CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World by Tyler SUllivan

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
Sullivan
Posts: 9
Joined: Thu Jul 03, 2008 4:39 am
Contact:

Post by Sullivan »

Ya I am still stumped, is it all possible for you to give me your Code:Blocks setup?
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Post by floorball92 »

I use eclipse for this job, maybe you could try it.
Image
pspZorba
Posts: 156
Joined: Sat Sep 22, 2007 11:45 am
Location: NY

Post by pspZorba »

Hi sullivan,

Could you try to do a make ( of your makefile of course) in a cygwin terminal?

and let us know if you have the same errors.
--pspZorba--
NO to K1.5 !
Sullivan
Posts: 9
Joined: Thu Jul 03, 2008 4:39 am
Contact:

Post by Sullivan »

Hey thanks for the replies.

I will not use Eclipse, I have used it in the past and a lot of people don't like it either.
If I compile it in cygwin it's self, it compiles fine, with no problems. It outputs the elf file and eboot file along with a few others. I ran the eboot plenty of times before, it works I know it does.

I removed cygwin along with the pspsdk and psptoolchain, oh boy, does that take hours to do it manually. I am doing a fresh install using the following guide:

http://hyde.90megs.com/tutorials/devccygwin.htm

Hopefully it will work.
pspZorba
Posts: 156
Joined: Sat Sep 22, 2007 11:45 am
Location: NY

Post by pspZorba »

you should'nt have removed cygwin, if the make was successfull, it meant that the toolchain was correctly installed.

So reinstall it won't probably change anything.

Anyway let us know.
--pspZorba--
NO to K1.5 !
Sullivan
Posts: 9
Joined: Thu Jul 03, 2008 4:39 am
Contact:

Post by Sullivan »

Ok I did a fresh install, builds fine in cygwin.

But I still can't get any IDE's setup.
pspZorba
Posts: 156
Joined: Sat Sep 22, 2007 11:45 am
Location: NY

Post by pspZorba »

Hi Sullivan,

I assume that If you do 'make' in the directory where your makefile is, it compiles correctly.

in codeblock you will create a new set of global compiler settings

1) Settings=>compiler and debugger

you should have a new window in the field named "selected compiler"
select 'Cygwin GCC compiler'

then use the 'copy' button which is just under, you are asked to give a name.
put something like 'Cygwin GCC-PSP' or whatever you want then 'OK'.

2) select the tab 'Toolchain executables'

in the field 'compiler's installation directory' set the path to the compiler

for me it is 'D:\cygwin\usr\local\pspdev\bin'


3) then fill the fields below with :
C-compiler => psp-gcc.exe
C++ compiler => psp-g++.exe
linker for dyn... =>psp-g++.exe
linker for stat... =>psp-ar.exe
debugger psp => gdb.exe
Resource complier => mksfo.exe

and the most important:
Make program => make.exe



than you click 'OK'

the environment is setup

now to create a project:

1) File => new =>project
2) double click on icon "empty project"
3) file the fields ... do 'next'
4) a new window appears, select the compiler you have created above ( 'Cygwin GCC-PSP')
5) then 'finish'

NOW STEP VERY IMPORTANT:

6) right click on the project name (left window of codeblock) select properties
on the first tab (project settings) click on "this is a custom makefile"
That will tell to codeblock to use make and your makefile
then ok


last step:
7) right click on the project name, select Add Files to add your files .h .c or cpp AND the makefile

now if you build the project that should work.



FYI the creation of projects can be automated in using custom projects, for that RTFM.
--pspZorba--
NO to K1.5 !
Allelujah
Posts: 10
Joined: Wed Jul 16, 2008 4:26 pm

Microsoft Visual Studio as PSPSDK IDE...

Post by Allelujah »

jean wrote:Microsoft's Visual Studio Express is free even for commercial application and Heimdall's toolchain comes with a wizard installer for VS, too.

Yup, you're right and i've tried it.

Here's the following step i've done:

1. Create a new "Makefile Project"
2. On the "Makefile Appication Wizard" dialog, click "Next" or "Debug Configuration Settings" and set the following fields:


Build command line = make
Clean commands = make clean
Rebuild command line = make clean && make

3. On "Release Configuration Settings", just check "Same as debug configuration" box.

4. To add your codes, copy them to the project folder, where the .vcproj is located and add through Microsoft Visual Studio Solution Explorer. make sure that your makefile is included.


Now you should be able to build your project ;)


This method might be found useful for those who prefer Microsoft Visual Studio as their IDE.
a_noob
Posts: 97
Joined: Sun Sep 17, 2006 8:33 am
Location: _start: jr 0xDEADBEEF

Bump

Post by a_noob »

Image
Hmm I hope this turns out some time

Code: Select all

.øOº'ºOø.
'ºOo.oOº'
kralyk
Posts: 114
Joined: Sun Apr 06, 2008 8:18 pm
Location: Czech Republic, central EU

Post by kralyk »

In Code::Blocks, its very useful to set up yourself a Custom User Project Template, so you dont have to set up everything whenever you create a new psp project.

If you want, I can send you my code::blocks windows psp project template, which requires minimum configuration (one line) to work on another system ;)
...sorry for my english...
a_noob
Posts: 97
Joined: Sun Sep 17, 2006 8:33 am
Location: _start: jr 0xDEADBEEF

Post by a_noob »

Ya I know, I have my SDK setup in Xcode 3.1 using platforms :D it is really cool, everything works natively, since all I did was follow the same structure as the iPhone SDK. But a PSP specific one would be nice as I cant seem to tell Xcode to use a different GDB and if I could get it to hook up to psp-gdb then that would be legit. THe main reason for the bump was that awesome pic, just had to use it :P

Code: Select all

.øOº'ºOø.
'ºOo.oOº'
Post Reply