cant compile anything...

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
ghostboy78
Posts: 22
Joined: Mon Jul 24, 2006 1:11 pm

cant compile anything...

Post by ghostboy78 »

Ok... i think i got everything i need to compile .elf's but dont know how to =( so far i only got that precompiled toolchain for win32 installed. whats the command to compile elfs.
:D
Ramon
Posts: 17
Joined: Thu Jun 29, 2006 9:00 pm

Post by Ramon »

to compile, go to the folder of your project using cygwin and then type make.

Then ta-da!
ghostboy78
Posts: 22
Joined: Mon Jul 24, 2006 1:11 pm

Post by ghostboy78 »

ok so i typed, make "C:\ps2dev\ps2sdk\samples\cube\cube.c". then i got this "make: Nothing to be done for `C:\ps2dev\ps2sdk\samples\cube\cube.c'.

anybody know the error?
:D
ubergeek42
Posts: 83
Joined: Wed Jul 13, 2005 12:25 am

Post by ubergeek42 »

navigate to the folder(using the cd command), then when in the folder, simply type 'make'.
Ramon
Posts: 17
Joined: Thu Jun 29, 2006 9:00 pm

Post by Ramon »

make sure that you have a makefile also... ;)
ghostboy78
Posts: 22
Joined: Mon Jul 24, 2006 1:11 pm

Post by ghostboy78 »

where do i get makefile >.<
:D
Ramon
Posts: 17
Joined: Thu Jun 29, 2006 9:00 pm

Post by Ramon »

Take a look at the example makefiles found at the ps2sdk. I'm sure they can help...
Last edited by Ramon on Sat Jul 29, 2006 8:29 pm, edited 2 times in total.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

Generic makefile primer:
http://www.pineight.com/gba/faq/make.html

Taking a look at the samples and of some of the stuff in svn will help a lot. There are a lot of predefined rules provided for you with ps2sdk.
Shoot Pixels Not People!
Makeshift Development
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Just type 'make'. You don't need to specify the file name.
bukarkimaster
Posts: 6
Joined: Thu Aug 10, 2006 9:03 pm

Post by bukarkimaster »

okay this is what i type C:\cygwin\usr\local\ps2dev\ps2sdk\samples\hello make and all i get is this is a directory what am i doing wrong thnx:P
I live on a deserted spoon:P
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Use the command called 'cd' to change to that directory, then type 'make'.
bukarkimaster
Posts: 6
Joined: Thu Aug 10, 2006 9:03 pm

Post by bukarkimaster »

yay it compiled thanks oopo i didnt fullyunderstand wat ppl ment bye cd into a directory :P
I live on a deserted spoon:P
Post Reply