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 

build a PSP file

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



Joined: 30 Sep 2005
Posts: 7

PostPosted: Tue Oct 04, 2005 5:39 am    Post subject: build a PSP file Reply with quote

Hello,
I installed cygwin and pspchain like explained in http://wiki.pspdev.org/psp:programming_faq.Now i would like to build a little test. I tryed this :
I created a cpp file and i pasted it in the "C:\cygwin\home\my_name" directory.
i enterer "$ make test1" and it work! It created test1.exe ... ... an "exe" file on a PSP ?!
Back to top
View user's profile Send private message
ashleydb



Joined: 03 Oct 2005
Posts: 26
Location: USA

PostPosted: Tue Oct 04, 2005 5:46 am    Post subject: Reply with quote

Where did the makefile come from?
_________________
www.PSP-Files.com - PSP News, Hacks etc.

www.HiAsh.com - My work and stuff
Back to top
View user's profile Send private message Visit poster's website
xoclipse



Joined: 03 Oct 2005
Posts: 5
Location: Phoenix, Arizona

PostPosted: Tue Oct 04, 2005 5:47 am    Post subject: Reply with quote

PSP's do not take "exe" files. Your makefile is most likely incorrect. Issuing the command 'make' should result in creating EBOOT.PBP, an elf binary, and a PARAM.SFO file. Your makefile should look something like this:

Quote:

TARGET = app-name
OBJS = src/main.o

USE_PSPSDK_LIBC = 1
INCDIR = include/
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =
LIBS = -lstdc++

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Eboot title

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
Flammy



Joined: 30 Sep 2005
Posts: 7

PostPosted: Tue Oct 04, 2005 5:51 am    Post subject: Reply with quote

Think u very mutch but where is the makefile plz?
Back to top
View user's profile Send private message
xoclipse



Joined: 03 Oct 2005
Posts: 5
Location: Phoenix, Arizona

PostPosted: Tue Oct 04, 2005 5:58 am    Post subject: Reply with quote

The makefile is usually in the directory where your project resides. You must create it for a new project, and use something to similiar to what I posted below. I suggest you read a tutorial on what makefiles do and how to use them properly. You can find one here: http://www.eng.hawaii.edu/Tutor/Make/.

Also, if you want to just build a test, the pspsdk comes with some sample projects. To compile those, just go into the directory of the sample you want to compile and issue the command 'make' or 'make kxploit'. For example, if you are in your cygwin shell...

Quote:

cd /usr/local/pspdev/psp/sdk/samples/wlan
make kxploit
Back to top
View user's profile Send private message Visit poster's website AIM Address
Flammy



Joined: 30 Sep 2005
Posts: 7

PostPosted: Tue Oct 04, 2005 6:20 am    Post subject: Reply with quote

It's ok i understood thank you!!!
Back to top
View user's profile Send private message
Flammy



Joined: 30 Sep 2005
Posts: 7

PostPosted: Tue Oct 04, 2005 6:32 am    Post subject: Reply with quote

It is an obligation to to create the project in the "C:\cygwin\usr\local\pspdev\psp\sdk" directory?
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Tue Oct 04, 2005 6:35 am    Post subject: Reply with quote

if your running cygwin you can
create a directory holding
your project files anywhere on any drive

just cd to that dir and build as usual
your project/s as you did the pspsdk
samples (make kxploit)....just make sure you
have makefile in order and all
needed includes and data in that
current project directory
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
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