forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PSP IDE (Developement Environment)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Sullivan



Joined: 03 Jul 2008
Posts: 9

PostPosted: Thu Jul 03, 2008 5:46 am    Post subject: PSP IDE (Developement Environment) Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website AIM Address
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Thu Jul 03, 2008 6:00 am    Post subject: Reply with quote

code::blocks works perfectly for me.

you can have a look at this thread:

http://forums.ps2dev.org/viewtopic.php?t=10082&sid=466a437506128245ffd8335dc4380a2b
_________________
--pspZorba--
NO to K1.5 !
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Jul 03, 2008 6:52 am    Post subject: Reply with quote

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

http://forums.ps2dev.org/viewtopic.php?t=10319
Back to top
View user's profile Send private message AIM Address
Sullivan



Joined: 03 Jul 2008
Posts: 9

PostPosted: Thu Jul 03, 2008 9:57 am    Post subject: Reply with quote

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/compilednotcorrectly.JPG
Back to top
View user's profile Send private message Visit poster's website AIM Address
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Thu Jul 03, 2008 5:25 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
Sullivan



Joined: 03 Jul 2008
Posts: 9

PostPosted: Sat Jul 05, 2008 9:41 am    Post subject: Reply with quote

Can anyone else help based on my above information?

Please
Back to top
View user's profile Send private message Visit poster's website AIM Address
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sat Jul 05, 2008 4:00 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Jul 05, 2008 4:21 pm    Post subject: Reply with quote

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). :)
Back to top
View user's profile Send private message AIM Address
Sullivan



Joined: 03 Jul 2008
Posts: 9

PostPosted: Tue Jul 08, 2008 1:16 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website AIM Address
vijay



Joined: 03 Jan 2008
Posts: 25

PostPosted: Tue Jul 08, 2008 2:37 pm    Post subject: Reply with quote

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.
_________________
My blog : http://montamer.blogspot.com
Back to top
View user's profile Send private message
Sullivan



Joined: 03 Jul 2008
Posts: 9

PostPosted: Wed Jul 09, 2008 5:28 am    Post subject: Reply with quote

my makefile contains the following:

Code:
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
Back to top
View user's profile Send private message Visit poster's website AIM Address
Sullivan



Joined: 03 Jul 2008
Posts: 9

PostPosted: Fri Jul 11, 2008 3:18 pm    Post subject: Reply with quote

Ya I am still stumped, is it all possible for you to give me your Code:Blocks setup?
Back to top
View user's profile Send private message Visit poster's website AIM Address
floorball92



Joined: 05 Apr 2008
Posts: 30
Location: Germany -> Hessen -> Hanau

PostPosted: Sat Jul 12, 2008 3:43 am    Post subject: Reply with quote

I use eclipse for this job, maybe you could try it.
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Sat Jul 12, 2008 10:21 am    Post subject: Reply with quote

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 !
Back to top
View user's profile Send private message
Sullivan



Joined: 03 Jul 2008
Posts: 9

PostPosted: Sat Jul 12, 2008 11:35 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website AIM Address
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Sat Jul 12, 2008 3:07 pm    Post subject: Reply with quote

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 !
Back to top
View user's profile Send private message
Sullivan



Joined: 03 Jul 2008
Posts: 9

PostPosted: Thu Jul 17, 2008 8:57 am    Post subject: Reply with quote

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

But I still can't get any IDE's setup.
Back to top
View user's profile Send private message Visit poster's website AIM Address
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Fri Jul 18, 2008 10:42 am    Post subject: Reply with quote

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 !
Back to top
View user's profile Send private message
Allelujah



Joined: 16 Jul 2008
Posts: 10

PostPosted: Thu Jul 24, 2008 12:26 am    Post subject: Microsoft Visual Studio as PSPSDK IDE... Reply with quote

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.
Back to top
View user's profile Send private message
a_noob



Joined: 17 Sep 2006
Posts: 97
Location: _start: jr 0xDEADBEEF

PostPosted: Thu Aug 14, 2008 5:38 pm    Post subject: Bump Reply with quote


Hmm I hope this turns out some time
_________________
Code:
.øOº'ºOø.
'ºOo.oOº'
Back to top
View user's profile Send private message AIM Address MSN Messenger
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Fri Aug 15, 2008 12:13 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
a_noob



Joined: 17 Sep 2006
Posts: 97
Location: _start: jr 0xDEADBEEF

PostPosted: Fri Aug 15, 2008 1:59 am    Post subject: Reply with quote

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:
.øOº'ºOø.
'ºOo.oOº'
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group