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 

Win32 PS2DEV

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



Joined: 28 Jul 2005
Posts: 2
Location: Basildon, UK

PostPosted: Fri Jul 29, 2005 12:12 am    Post subject: Win32 PS2DEV Reply with quote

Hello. I am using Windows XP (i haveno linux system avaliable) and have installed ps2dev on it. i have used notepad to create a simple .c file. I now need to know how to make it into an .elf file. i am new to this and despite searching i cannot find anything that works. please can somebody help me.
Thank you in advance.
_________________
- AJ
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
shawn_t



Joined: 26 Jul 2005
Posts: 11

PostPosted: Sat Jul 30, 2005 12:08 pm    Post subject: Reply with quote

You are going to need a Makefile. You then will type the command 'make' to build your elf file. When you type 'make', it will look for either 'Makefile' or 'makefile' in the current directory as the input makefile. You can also specify the Makefile name explicity by typing: 'make -f myMakefile'

If you are really unfamiliar with 'make', and instead would like to use Visual Studio, there is a tutorial on creating Visual Studio projects to build PS2DEV ELF files. It is located at: http://www.internalreality.com/

scroll down to September 2003 and there is a ZIP file with instructions. It is a little outdated (i.e. using InLink, but if you follow the instructions, everything will work) If you are using XLink, it doesn't seem to take command line arguments like InLink did so you won't be able to launch your ELF from the Visual Studio IDE, but you can easily launch it from within XLink so that isn't a huge problem.


There are a few simple samples included with the PS2DEV SDK. They are located in: <INSTALL_LOCATION>/ps2sdk/samples

For example, here is the Makefile for the math3d sample (be aware that this Makefile references two other Makefiles so you will need those as well!! Makefile.pref and Makefile.eeglobal):

Code:

# _____     ___ ____     ___ ____
#  ____|   |    ____|   |        | |____|
# |     ___|   |____ ___|    ____| |    \    PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.
#

EE_BIN = math3d.elf
EE_OBJS = math3d.o
EE_LIBS = -ldma -lgraph -lmath3d -lmf -lpacket

all: $(EE_BIN)
   ee-strip --strip-all $(EE_BIN)

clean:
   rm -f *.elf *.o *.a

run: $(EE_BIN)
   ps2client execee host:$(EE_BIN)

reset:
   ps2client reset

include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal


With this makefile you can perform the following tasks from the command line:

    make - will build your ELF
    make clean - will remove all OBJ, LIB and ELF files
    make run - will launch your application using ps2client
    make reset - will reset the ps2 using ps2client

MAKE is a very common build environment so there are plenty of references out there to help you learn. However, you can probably figure out how to modify the above Makefile to build your application...[/url][/list]
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 -> PS2 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