PSP3D Left Header
PSP3D Header Right
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
Tags: coding


Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 11-28-2007, 10:16 PM
dq9's Avatar
dq9 dq9 is offline
Moderator
My Mood:
 
Join Date: Jun 2006
Location: Iacon, Cybertron
Age: 20
Posts: 2,385
Points: 440,666.30
Donate
Send a message via AIM to dq9 Send a message via Yahoo to dq9
Do I do that though Terminal?
__________________
| Rules | Downgrade Tutorial |
| Guidelines for creating News | Guidelines for Reviewing Games |
My Forum
Look for me on Xbox Live. My gamertag is dq9.


VOTE FOR PSP3d!!!
One vote every day makes all the difference in the world!
Reply With Quote
  #22 (permalink)  
Old 11-28-2007, 10:21 PM
iamstrange14's Avatar
iamstrange14 iamstrange14 is offline
PSP3D's Strangest Member
My Mood:
 
Join Date: Nov 2005
Location: Ca$hville
Age: 16
Posts: 775
Points: 3.44
Donate
Send a message via AIM to iamstrange14 Send a message via ShopTapNham to iamstrange14 Send a message via Yahoo to iamstrange14
i guess. and i forgot. you need a makefile. those were the hardest part for me.
Quote:
By PSP-programming.com
Now we just have to tell the compiler how we want this project compiled by creating a Makefile. So create a new file called "Makefile" with no extention (ie, no .txt). Once you've done this, open it up in your text editor.

Put the following in your Makefile:
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

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
You can use this Makefile as a basis for all of your simple projects. Sometimes you will need to add libraries or whatnot to this file, but for now it is fairly simple. It basically just tells your compiler to take "main.c" and build it using the PSPSDK into a .pbp file that your PSP can read. What you will need to change if you use this Makefile in other projects is where it says "PSP_EBOOT_TITLE = Hello World." You can change where it says "Hello World" to the title of your program, this is the name that will appear on the PSP Game Menu when you select the file.

Now open up a CYGWIN Bash Shell and "cd" into your "projects/helloworld" directory. Type "make" and your shell should output some stuff to you. It will tell you if your source code had any errors that made it uncompilable. Generally, if it gives you a few warnings, it's not a big deal. Errors are what you want to watch out for, warnings are just possible points that could cause bugs. Note: if you have Firmware Version 1.50, you can automatically generate your two folders by typing "make kxploit" instead of "make."

If you didn't have any errors, congratulations! You have successfully created and compiled your first application for the PSP. I'll bet you're dying to test it out. So, put "C:/cygwin/home/yourUserName/projects/helloworld/EBOOT.PBP" on your PSP just like you would any other homebrew application, and try it out for yourself!
ok so you need to make one of these, and put the source in the same folder, navigate to the folder its in (in Terminal), and type make. i have no idea if it will work in OS X.
__________________
Think outside the cubical triangle

wilhel1812 is my hero!

Join my site! http://uberforumz.com

Thanks to pspkillsds for 250 points!
Thanks to zzaz3 for 59,000 points!


Reply With Quote
  #23 (permalink)  
Old 11-28-2007, 10:22 PM
dq9's Avatar
dq9 dq9 is offline
Moderator
My Mood:
 
Join Date: Jun 2006
Location: Iacon, Cybertron
Age: 20
Posts: 2,385
Points: 440,666.30
Donate
Send a message via AIM to dq9 Send a message via Yahoo to dq9
I'll try it, I'll post my results.
__________________
| Rules | Downgrade Tutorial |
| Guidelines for creating News | Guidelines for Reviewing Games |
My Forum
Look for me on Xbox Live. My gamertag is dq9.


VOTE FOR PSP3d!!!
One vote every day makes all the difference in the world!
Reply With Quote
Reply

« Compiling for PSP | My new gameboot »



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
Downgrade your PSP to version 1.5 using your PSP battery leony General PSP Discussion 18 07-24-2008 04:52 PM
HELP: I ran Xmame & it bricked my PSP andrewwan1980 Homebrew/Hacking 4 10-04-2007 07:15 AM
New PSP Mod-Chip info! gta3dude Homebrew/Hacking 12 06-12-2006 08:45 PM
PSP Video Encoding - SOFTWARE BENCHMARKED AND REVIEWED! bboy_sonik General PSP Discussion 3 02-14-2006 07:32 AM
PSP Christmas Special (1.5 Premodded) Stunt General PSP Discussion 0 12-22-2005 05:45 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

ShopTapNham Shop Online Powered by Custom vB Version 5.1.0 for Crave Online Media, LLC.
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd. and PSP3D.com.
LinkBacks Enabled by vBSEO 3.0.0 RC8

All times are GMT -4. The time now is 10:00 AM.
ShopTapNham Footer Right