| View previous topic :: View next topic |
| Author |
Message |
jloyd_
Joined: 15 Jun 2006 Posts: 6
|
Posted: Thu Jun 15, 2006 4:43 am Post subject: Help please, i am stuck. |
|
|
I have my slim ps2 connected via ethernet and using swapmagic to boot the ps2 side of the link, i can run demos fine using inlink.
Where i get stuck is compiling my own, i have installed PS2Dev Environment for Win32 but i have no idea how to use it to compile.
I have Suse linux installed but dont have Inlink for it and i dont use Linux that much only when im developing with php, my experiences lie with microsoft visual studio and directx and various languges.
It is really starting to wind me up how i can't figure this out, iv looked in tutorials and i cant fined any that explain how to compile in windows.
Does any one have any help please.
I also have an interest in having a go at development with the gametrak controller if any one has any information on this too, thans |
|
| Back to top |
|
 |
SSpeare
Joined: 23 May 2006 Posts: 63
|
Posted: Thu Jun 15, 2006 6:31 am Post subject: |
|
|
Open a command prompt (Type "cmd" into Start->Run).
cd to the directory you installed into.
Run the cygwin paths batch file.
cd into the samples directory (ps2sdk/samples I think)
type "make"
cd into a sample.
you can then run the .elf using inlink or ps2client. Try:
"make run"
if you have ps2client. |
|
| Back to top |
|
 |
jloyd_
Joined: 15 Jun 2006 Posts: 6
|
Posted: Thu Jun 15, 2006 8:46 am Post subject: |
|
|
| i get make as an unreconized internal or external command, would this be easier to do in linux, even though my linux experience is very limitied, or is there a was to use ms visual studio :s thanks for the reply |
|
| Back to top |
|
 |
Orfax

Joined: 08 Apr 2004 Posts: 21 Location: Adelaide, Australia
|
Posted: Thu Jun 15, 2006 9:59 am Post subject: |
|
|
| jloyd_ wrote: | | i get make as an unreconized internal or external command | This is a Windows cmd error. It cannot find make. What this means is you are not running a bash shell when make is run. There should be a script called "cygwin.bat" in the root cygwin folder which starts a bash shell for you.
The alternatives are setting up Windows batch scripts to wrap around the commands you use (like make) that starts bash and then runs the command. I would imagine this would be slow.
I start the following command "<path to cygwin install dir>\bin\rxvt.exe -e bash --login -i" in my cygwin bin directory (its actually a shortcut on my desktop), but it means you need the no-x rxvt installed as well (it is faster than cmd, though).
| jloyd_ wrote: | | would this be easier to do in linux, even though my linux experience is very limitied | Probably, but it does work quite fine with cygwin. Using cygwin does mean you need to be aware of Unix like environments though (just like linux).
| jloyd_ wrote: | | is there a was to use ms visual studio | Not that I'm aware of. _________________ Look deep into their eyes for what they have to say, Emotions take control of life everyday
Death (Nothing Is Everything) |
|
| Back to top |
|
 |
jloyd_
Joined: 15 Jun 2006 Posts: 6
|
Posted: Thu Jun 15, 2006 7:06 pm Post subject: |
|
|
| thank you very much, using cygwin i have got it working, i put what i wanted to compile in my users folder in usr. Now i can begin hehe : ) |
|
| Back to top |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Thu Jun 15, 2006 8:57 pm Post subject: |
|
|
usr is not "user" folders... it's for sharable (multi-user) read-only. Basically all the programs, libs, and other shared resources that are used on a regular basis live in /usr
The idea that it's short for 'user' is also false... It's an acronym, and IIRC it stands for User Sharable Resources ... but don't quote me on that.
The directory you put your files, documents, and projects in is inside of the home dir. specifically it should be /home/username/ but I don't know exactly how cygwin has things screwed up
EDIT: Okay, I looked it up and it's Unix System Resources... I had my acronym wrong. _________________ Shoot Pixels Not People!
Makeshift Development |
|
| Back to top |
|
 |
Orfax

Joined: 08 Apr 2004 Posts: 21 Location: Adelaide, Australia
|
Posted: Fri Jun 16, 2006 9:29 am Post subject: |
|
|
| Drakonite wrote: | | specifically it should be /home/username/ but I don't know exactly how cygwin has things screwed up | Just as screwed up as any other Unix OS then, huh (yes its /home/username/). _________________ Look deep into their eyes for what they have to say, Emotions take control of life everyday
Death (Nothing Is Everything) |
|
| Back to top |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Fri Jun 16, 2006 2:12 pm Post subject: |
|
|
| Orfax wrote: | | Drakonite wrote: | | specifically it should be /home/username/ but I don't know exactly how cygwin has things screwed up | Just as screwed up as any other Unix OS then, huh (yes its /home/username/). |
Heh, fair enough.. unix directory structure isn't exactly intuitive for the newbie... But I was more talking about how cygwin has a record of doing some things in a bastardized way ;) _________________ Shoot Pixels Not People!
Makeshift Development |
|
| Back to top |
|
 |
jloyd_
Joined: 15 Jun 2006 Posts: 6
|
Posted: Fri Jun 16, 2006 10:32 pm Post subject: |
|
|
thanks with all the help so far, iv hacked away at some code and drawn my initials on screen using lines lol, messing with colours and such.
I have discovered the sameples with ps2sdk, the hello applications complie to a .erl what is it? i cannot send this file to the ps2. Thanks |
|
| Back to top |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Sat Jun 17, 2006 6:03 am Post subject: |
|
|
ERLs are relocatable executables... TBH I haven't played with them, so while they may be neat I have no idea what the situation is with them ;)
There is a line in the makefile that starts with "ERL_BIN =" ... if you change it to "EE_BIN =" it will cause it to build elfs instead of erls. _________________ Shoot Pixels Not People!
Makeshift Development |
|
| Back to top |
|
 |
Kojima
Joined: 26 Jun 2006 Posts: 275
|
Posted: Wed Jun 28, 2006 12:19 am Post subject: |
|
|
I have the same problem, ERL's instead of elfs.
I just opened up the makefile and can't find anything that matches what you suggest exactly, but I did find this
"EE_ERL = hello.erl"
Do I change it to "EE_BIN = hello.elf"? |
|
| Back to top |
|
 |
misfire
Joined: 06 Sep 2004 Posts: 120 Location: Germany
|
Posted: Wed Jun 28, 2006 12:20 am Post subject: |
|
|
| Yes. |
|
| Back to top |
|
 |
nak
Joined: 29 Jun 2006 Posts: 4
|
Posted: Fri Jun 30, 2006 8:58 am Post subject: |
|
|
I get this error when running the makefile from inside the /graph/ sample
$ make graph
ee-gcc -D_EE -O2 -G0 -Wall -IC:/ps2dev/ps2sdk/ee/include -IC:/ps2dev/ps2sdk/com
mon/include -I. -c graph.c -o graph.o
gcc graph.o -o graph
ld: graph.o: Relocations in generic ELF (EM: 8)
graph.o: could not read symbols: File in wrong format
make: *** [graph] Error 1
but it makes fine when I run the make file in the parent directory (/sample/) can anyone elighten me please :) ? |
|
| Back to top |
|
 |
|