| View previous topic :: View next topic |
| Author |
Message |
Flammy
Joined: 30 Sep 2005 Posts: 7
|
Posted: Tue Oct 04, 2005 5:39 am Post subject: build a PSP file |
|
|
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 |
|
 |
ashleydb
Joined: 03 Oct 2005 Posts: 26 Location: USA
|
Posted: Tue Oct 04, 2005 5:46 am Post subject: |
|
|
Where did the makefile come from? _________________ www.PSP-Files.com - PSP News, Hacks etc.
www.HiAsh.com - My work and stuff |
|
| Back to top |
|
 |
xoclipse
Joined: 03 Oct 2005 Posts: 5 Location: Phoenix, Arizona
|
Posted: Tue Oct 04, 2005 5:47 am Post subject: |
|
|
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 |
|
 |
Flammy
Joined: 30 Sep 2005 Posts: 7
|
Posted: Tue Oct 04, 2005 5:51 am Post subject: |
|
|
| Think u very mutch but where is the makefile plz? |
|
| Back to top |
|
 |
xoclipse
Joined: 03 Oct 2005 Posts: 5 Location: Phoenix, Arizona
|
Posted: Tue Oct 04, 2005 5:58 am Post subject: |
|
|
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 |
|
 |
Flammy
Joined: 30 Sep 2005 Posts: 7
|
Posted: Tue Oct 04, 2005 6:20 am Post subject: |
|
|
| It's ok i understood thank you!!! |
|
| Back to top |
|
 |
Flammy
Joined: 30 Sep 2005 Posts: 7
|
Posted: Tue Oct 04, 2005 6:32 am Post subject: |
|
|
| It is an obligation to to create the project in the "C:\cygwin\usr\local\pspdev\psp\sdk" directory? |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Tue Oct 04, 2005 6:35 am Post subject: |
|
|
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 |
|
 |
|