PSP3D Left Header
Shop Online
PSP3D Logo CraveOnline Logo
Help the PSP 3D community grow!
Vote for us below:


Vote on the PSP Top 200
PSP Top 200 - Games, Videos, Wallpapers, Files, Hacks, Homebrew

Development Center - Learn the basics of coding or talk about advanced coding techniques with other developers.

Welcome to PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums!

You are currently viewing our website as a guest, which gives you limited access to reply and interact to discussions and other members. By joining our free community, you will be able to post topics in the forums, communicate privately with other members, vote in polls, and access many other special features.

Registration is fast, simple, and absolutely free so join our community today!

Go Back PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums > PSP Forums > Development Center

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-26-2006, 12:09 AM
dalejrrocks dalejrrocks is offline
Junior Member
 
Join Date: Apr 2006
Posts: 7
Points: 0.55
Donate
Thumbs up [NEW+UPDATED Tutorial] The Quick + Easy Way To Start Developing in C/C++!!

###Changes on July 04, 2006##
-Added Installing PSP Libs part.
-Changed the .bat file code to improve performance, and fix some bugs.

###INTRODUCTION###

For some months now, I have been wanting to start/try developing for the PSP in C/C++. I read some of the tutorials explaining how to set up and use mingw or cygwin. Most of the tutorials were complex, and required a lot of downloading of huge files. I have dial-up, so I couldn’t really sit there all day and watch these files download. I am sure some others feel this way also. Anyways, I think that this may be one of the easiest and quickest(because of the small download sizes)ways to set up the PSPSDK, and the toolchain/compiler on a windows machine. So here we go:

###INSTALLATION###

1.) Go download the precompiled windows toolchain/compiler + PSPSDK from:
http://xorloser.com/PSPDevWin32.zip

2.) Extract the .zip file somewhere on your hard-drive.

3.) Launch the .exe file and go through the installation. You should install the package to X:\pspdev\ where X is the letter of your hard-drive. This directory is the default setting on the installer anyways.

4.) Find your way to your x:\pspdev\ folder using the Windows Explorer. Create a new .bat file in that folder and name it whatever you want. I named mine start.bat. Next, make sure your .bat file includes the following code:

Code:
set PSPDEV=X:/pspdev set PATH=%PATH%;%PSPDEV%/bin set PSPSDK=X:/pspdev/psp/sdk cmd
5.) Delete the pspdev.bat file from your x:\pspdev\ folder. The file that we created in step 4 configures the settings for your environment. You don’t need the other pspdev.bat file that came with the package. Or you may keep it if you want. That’s up to you. :icon_wink

6.) Use the Windows search engine to search for a file called cygwin1.dll. Look at the file properties for all of the results and keep the newest one in x:\pspdev\bin\. Delete the other older files. I use the cygwin1.dll file with the build date of 2006-01-20 13:28 and it works great. If you don’t delete the other files the compiler will get an error.

7.) Now, you are done! Congrats, you have a working psptoolchain and PSPSDK along with the compilers installed on your computer.

###COMPILING AN EXAMPLE FILE###

a.) Double-click your .bat file that you created in step 4 of the installation. It should start with the command prompt saying something like this:

Code:
C:\pspdev>set path=C:\Python24\.;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\WINDOWS\SYSTEM32\WSG32\;C:/pspdev/bin;C:/pspdev2/bin;c:\pspdev\bin C:\pspdev>set PSPSDK=C:\pspdev\psp\sdk C:\pspdev>cmd Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\pspdev>
Of course, instead of C it will show the letter of your drive.

b.) Type cd psp\sdk\samples\controller\basic and hit enter to go to the x:\pspdev\psp\sdk\samples\controller\basic directory.
You should get something like this:

Code:
C:\pspdev\psp\sdk\samples\controller\basic>
c.) Type make and hit enter.
You should get something like this in the command prompt and and eboot in the x:\pspdev\psp\sdk\samples\controller\basic folder:

Code:
psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -c -o main.o main.c psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -L. -LC:/pspdev/psp/sdk/l ib main.o -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lp spnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel - o controller_basic.elf psp-fixup-imports controller_basic.elf mksfo 'Basic controller sample' PARAM.SFO psp-strip controller_basic.elf -o controller_basic_strip.elf pack-pbp EBOOT.PBP PARAM.SFO NULL \ NULL NULL NULL \ NULL controller_basic_strip.elf NULL rm -f controller_basic_strip.elf C:\pspdev\psp\sdk\samples\controller\basic>
d.) Congratulations, you just compiled a working controller sample eboot. I’ve tested this on my 2.01 PSP through the GTA exploit and it worked fine.

###Installing PSP Libs###
Now this is the very easy part. Go download my & Whazilla's PSP Development Library Installer. Get it Here. And the rest is pretty much self-explanatory. Make sure to read the readme in the package to get a detailed list of tested/untested libs, installation instructions, etc...

###Conclusion###
So did you like this tutorial? This is my first tutorial. Any feedback/suggestions/problems is welcome. dalejrrocks@rambler.ru or nascar_sk8ing_technology@yahoo.com. Or PM me on the forums.

Enjoy,
Nick/dalejrrocks

Last edited by dalejrrocks : 07-04-2006 at 07:53 PM. Reason: Refer to the Changes Section
Reply With Quote
  #2 (permalink)  
Old 05-26-2006, 12:23 AM
Birdman1's Avatar
Birdman1 Birdman1 is offline
Stankin'-Ass Vagina
My Mood:
 
Join Date: Dec 2005
Location: THE O.C.
Posts: 3,436
Points: 4,927.74
Donate
Send a message via AIM to Birdman1 Send a message via ShopTapNham to Birdman1
awesome. keep them coming
__________________


"Life's a garden, dig it." -Joe Dirt
Reply With Quote
  #3 (permalink)  
Old 05-26-2006, 06:43 AM
PopcOrn DeVil's Avatar
PopcOrn DeVil PopcOrn DeVil is offline
Highly Respected Member
My Mood:
 
Join Date: Jan 2006
Location: Western Australia
Age: 16
Posts: 911
Points: 2.11
Donate
Send a message via AIM to PopcOrn DeVil Send a message via ShopTapNham to PopcOrn DeVil
You're helping people start up, which is good if you want more games on your PSP.
Reply With Quote
  #4 (permalink)  
Old 05-27-2006, 04:36 AM
farkob farkob is offline
Junior Member
 
Join Date: Feb 2006
Posts: 17
Points: 16.80
Donate
This was what I wanted. Thanks.
__________________
Reply With Quote
  #5 (permalink)  
Old 05-27-2006, 04:44 AM
Kjeezy's Avatar
Kjeezy Kjeezy is offline
Senior Member
 
Join Date: Nov 2005
Location: In da ghetto
Age: 18
Posts: 633
Points: 1.66
Donate
Send a message via AIM to Kjeezy Send a message via ShopTapNham to Kjeezy Send a message via Yahoo to Kjeezy
Good job man. I have dial up to and I hate it.
__________________


Reply With Quote
  #6 (permalink)  
Old 05-27-2006, 07:03 AM
Robkellas's Avatar
Robkellas Robkellas is offline
Grand Theft Auto God
My Mood:
 
Join Date: Apr 2006
Location: Leeds, England
Age: 17
Posts: 1,426
Points: 44.98
Donate
Send a message via AIM to Robkellas Send a message via ShopTapNham to Robkellas Send a message via Yahoo to Robkellas
nice work
__________________
Reply With Quote
  #7 (permalink)  
Old 05-27-2006, 11:28 PM
Demo's Avatar
Demo Demo is offline
Member
 
Join Date: May 2006
Location: T-dot a.k.a TORONTO
Posts: 52
Points: 0.40
Donate
Erm..

Nice guide dude, major props. I did everything it said. but...When i type make in the command prompt thing, it says the following:
make is not recognized as an internal or external command, operable program or batch file.

What do i do =[
__________________
<-----Feel free to put this one in your sig if your a fan


Reply With Quote
  #8 (permalink)  
Old 05-27-2006, 11:53 PM
sharko's Avatar
sharko sharko is offline
Senior Member
 
Join Date: Jan 2006
Posts: 456
Points: 10.69
Donate
Wow, i didnt do a damn thing u said to install but if that works its all good. I used the scriptscribbler tuts they worked pretty good
__________________
kid101skater says:
wanna here a funny story
sharko says:
shure
kid101skater says:
a fat girl walked by my house and i went to the window and acted retarded
then i ran to the door
and said
LET ME OFF MY CHAIN MOMMY.... i wanna doo what daddy does to you....
whats funny is
the next day i found her number in my mailbox
Reply With Quote
  #9 (permalink)  
Old 05-28-2006, 12:12 AM
birdman's Avatar
birdman birdman is offline
Member
 
Join Date: Nov 2005
Posts: 43
Points: 0.08
Donate
Send a message via AIM to birdman
hey i get all the way to executeing the start.bat and i get:

C:\WINDOWS\System32\cmd.exe
C:\PROGRA~1\Symatec\s32evnt1.dll. An installable Virtual Device Driver failed Dll iniilazation. Choose Close to terminate the application

and i get 2 options close and ignore, bouth close the application

whats wrong? i want to start codeing!
__________________
ir shell beta tester
Reply With Quote
  #10 (permalink)  
Old 05-28-2006, 05:21 PM
pj1115's Avatar
pj1115 pj1115 is offline
Camouflage Condoms: They won't see you coming
My Mood:
 
Join Date: Nov 2005
Location: Surrey, UK
Age: 24
Posts: 1,310
Points: 220.99
Donate
Send a message via ShopTapNham to pj1115
birdman, i keep mistaking you for birdman1, a well known DEV. Make sure no-body mistakes you.

lol you're problem is probably that an antivirus is halting the creation of a virtual drive.
Reply With Quote
Reply

« Porting Homeworld from PC to PSP ?? | Compiling for PSP »



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 0.00
Points Per Thread: 1.00
Points Per Reply: 0.10

Similar Threads
Thread Thread Starter Forum Replies Last Post
Language Filter zzaz3 General PSP Discussion 63 09-06-2007 07:59 PM





Crave Partner Sites: CraveOnline.com | DVDFile.com | PSP3D.com | ComingSoon.net | SuperHeroHype.com | RedBalcony.com | ActionTrip.com | CraveLyrics.com
Soundtrack.net | CraveFix.com | SpikedHumor.com | RPGamer.com | TattooNow.com | ImpactWrestling.com | SeekLyrics.com | PedalBMX.com | WildKO.com
vidKing.com | StrategyInformer.com | HHdb.com | RapLeagues.com | HipHop-Lyrics.com | Cravecocktails.com | ThePhatPhree.com | RideJudge.com | HottieSpots.com


Powered by Custom vB Version 6.0 for Crave Online Media, LLC.
Copyright © 2000 - 2009, Jelsoft Enterprises Ltd. and PSP3D.com.
LinkBacks Enabled by vBSEO 3.0.0 RC8
All times are GMT -4. The time now is 09:14 PM.