| View previous topic :: View next topic |
| Author |
Message |
Sullivan
Joined: 03 Jul 2008 Posts: 9
|
Posted: Thu Jul 03, 2008 5:46 am Post subject: PSP IDE (Developement Environment) |
|
|
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 |
|
 |
pspZorba
Joined: 22 Sep 2007 Posts: 156 Location: NY
|
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
|
| Back to top |
|
 |
Sullivan
Joined: 03 Jul 2008 Posts: 9
|
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Thu Jul 03, 2008 5:25 pm Post subject: |
|
|
| 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 |
|
 |
Sullivan
Joined: 03 Jul 2008 Posts: 9
|
Posted: Sat Jul 05, 2008 9:41 am Post subject: |
|
|
Can anyone else help based on my above information?
Please |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sat Jul 05, 2008 4:00 pm Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sat Jul 05, 2008 4:21 pm Post subject: |
|
|
| 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 |
|
 |
Sullivan
Joined: 03 Jul 2008 Posts: 9
|
Posted: Tue Jul 08, 2008 1:16 pm Post subject: |
|
|
| 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 |
|
 |
vijay
Joined: 03 Jan 2008 Posts: 25
|
Posted: Tue Jul 08, 2008 2:37 pm Post subject: |
|
|
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 |
|
 |
Sullivan
Joined: 03 Jul 2008 Posts: 9
|
Posted: Wed Jul 09, 2008 5:28 am Post subject: |
|
|
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 |
|
 |
Sullivan
Joined: 03 Jul 2008 Posts: 9
|
Posted: Fri Jul 11, 2008 3:18 pm Post subject: |
|
|
| Ya I am still stumped, is it all possible for you to give me your Code:Blocks setup? |
|
| Back to top |
|
 |
floorball92
Joined: 05 Apr 2008 Posts: 30 Location: Germany -> Hessen -> Hanau
|
Posted: Sat Jul 12, 2008 3:43 am Post subject: |
|
|
I use eclipse for this job, maybe you could try it. _________________
 |
|
| Back to top |
|
 |
pspZorba
Joined: 22 Sep 2007 Posts: 156 Location: NY
|
Posted: Sat Jul 12, 2008 10:21 am Post subject: |
|
|
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 |
|
 |
Sullivan
Joined: 03 Jul 2008 Posts: 9
|
Posted: Sat Jul 12, 2008 11:35 am Post subject: |
|
|
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 |
|
 |
pspZorba
Joined: 22 Sep 2007 Posts: 156 Location: NY
|
Posted: Sat Jul 12, 2008 3:07 pm Post subject: |
|
|
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 |
|
 |
Sullivan
Joined: 03 Jul 2008 Posts: 9
|
Posted: Thu Jul 17, 2008 8:57 am Post subject: |
|
|
Ok I did a fresh install, builds fine in cygwin.
But I still can't get any IDE's setup. |
|
| Back to top |
|
 |
pspZorba
Joined: 22 Sep 2007 Posts: 156 Location: NY
|
Posted: Fri Jul 18, 2008 10:42 am Post subject: |
|
|
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 |
|
 |
Allelujah
Joined: 16 Jul 2008 Posts: 10
|
Posted: Thu Jul 24, 2008 12:26 am Post subject: Microsoft Visual Studio as PSPSDK IDE... |
|
|
| 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 |
|
 |
a_noob
Joined: 17 Sep 2006 Posts: 97 Location: _start: jr 0xDEADBEEF
|
Posted: Thu Aug 14, 2008 5:38 pm Post subject: Bump |
|
|
Hmm I hope this turns out some time _________________
| Code: | .øOº'ºOø.
'ºOo.oOº' |
|
|
| Back to top |
|
 |
kralyk
Joined: 06 Apr 2008 Posts: 114 Location: Czech Republic, central EU
|
Posted: Fri Aug 15, 2008 12:13 am Post subject: |
|
|
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 |
|
 |
a_noob
Joined: 17 Sep 2006 Posts: 97 Location: _start: jr 0xDEADBEEF
|
Posted: Fri Aug 15, 2008 1:59 am Post subject: |
|
|
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 |
|
 |
|