I have problem setting up toolchain

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

Moderators: cheriff, Herben

Post Reply
Raison
Posts: 2
Joined: Sun Oct 30, 2005 10:40 pm

I have problem setting up toolchain

Post by Raison »

Hi, i followed the tutorial at
http://www.lukasz.dk/ps2dev/cygwintutorial.html.

While the tutorial seems idiot proof, I have difficulties with it.

I have installed almost all of the package of cygwin. Then I tried to download the files from svn using:

svn checkout svn:://svn.ps2dev.org/ps2/trunk/ps2toolchain

However, it doesn't seem download the required files. Here is the output:

Code: Select all

$ svn checkout svn:://svn.ps2dev.org/ps2/trunk/ps2toolchain
checkout (co): Check out a working copy from a repository.
usage: checkout URL[@REV]... [PATH]

  If specified, REV determines in which revision the URL is first
  looked up.

  If PATH is omitted, the basename of the URL will be used as
  the destination. If multiple URLs are given each will be checked
  out into a sub-directory of PATH, with the name of the sub-directory
  being the basename of the URL.

Valid options:
  -r [--revision] arg      : ARG (some commands also take ARG1:ARG2 range)
                             A revision argument can be one of:
                                NUMBER       revision number
                                "{" DATE "}" revision at start of the date
                                "HEAD"       latest in repository
                                "BASE"       base rev of item's working copy
                                "COMMITTED"  last commit at or before BASE
                                "PREV"       revision just before COMMITTED
  -q [--quiet]             : print as little as possible
  -N [--non-recursive]     : operate on single directory only
  --username arg           : specify a username ARG
  --password arg           : specify a password ARG
  --no-auth-cache          : do not cache authentication tokens
  --non-interactive        : do no interactive prompting
  --config-dir arg         : read user configuration files from directory ARG
  --ignore-externals       : ignore externals definitions
So i decided to download the toolchain.sh from svn.ps2dev.org directly and ran it. I got a couple of errors too. One of the errors cygwin complained is that it cant find the gmake command, but I can't find it in cygwin.

One of the other error that I managed to capture is this:

Code: Select all

updating cache .././config.cache
loading cache .././config.cache
configure: error: Unrecognized target system type; please check config.sub.
make: *** [configure-opcodes] Error 1
ERROR BUILDING BINUTILS (binutils-2.14 ee)
I am intermediate in c/c++ but I knew little about cygwin. Someone help me please.
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

You've got too many colons in the address. Try:

svn checkout svn://svn.ps2dev.org/ps2/trunk/ps2toolchain
taz030485
Posts: 27
Joined: Thu May 27, 2004 3:37 pm

Post by taz030485 »

I'm having a problem aswell.

Install Cygwin = done.
Copy toolchain from svn = done.
chmod toolchain.sh = done.
run toolchain.sh = done.
download binutils, gcc, newlib = done.
build binutils = done.
build gcc = not done.

this is what is output on the screen

Code: Select all

make[2]: Entering directory `/tmp/ps2dev/gcc-3.2.2/build-ee/gcc/fixinc'
/bin/sh ../../../gcc/fixinc/genfixes machname.h
-uThe system cannot find the file specified.
make[2]: *** [machname.h] Error 1
make[2]: Leaving directory `/tmp/ps2dev/gcc-3.2.2/build-ee/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory `/tmp/ps2dev/gcc-3.2.2/build-ee/gcc'
make: *** [all-gcc] Error 2
ERROR BUILDING GCC (gcc-3.2.2 ee)
I have copied everything from the cygwin window if more info is needed.
Raison
Posts: 2
Joined: Sun Oct 30, 2005 10:40 pm

Post by Raison »

I finally got it to the toolchain to work. Since, there are like different processors in ps2. I see that there are different compilers like ee-gcc, iop-gcc, etc. I am so new to this and I dont even know how to compile a file.

Can someone tell me how to get started? I really can't find enough resource. I downloaded a simple code in ps2sdk-using-libdraw.txt from oopo.net and I don't even know how should i compile it.

I tried to use ee-gcc and it didnt seem to work. Please help me out. Thanks!

Code: Select all

$ ee-gcc test.c
test.c:24:23: tamtypes.h: No such file or directory
test.c:26:19: draw.h: No such file or directory
test.c:27:20: graph.h: No such file or directory
test.c:28:21: math3d.h: No such file or directory
test.c:43: parse error before "vertices"
test.c:44: warning: braces around scalar initializer
test.c:44: warning: (near initialization for `vertices[0]')
test.c:44: warning: excess elements in scalar initializer
test.c:44: warning: (near initialization for `vertices[0]')
test.c:44: warning: excess elements in scalar initializer
test.c:44: warning: (near initialization for `vertices[0]')
test.c:44: warning: excess elements in scalar initializer
test.c:44: warning: (near initialization for `vertices[0]')
test.c:45: warning: braces around scalar initializer
test.c:45: warning: (near initialization for `vertices[1]')
test.c:45: warning: excess elements in scalar initializer
test.c:45: warning: (near initialization for `vertices[1]')
test.c:45: warning: excess elements in scalar initializer
test.c:45: warning: (near initialization for `vertices[1]')
test.c:45: warning: excess elements in scalar initializer
test.c:45: warning: (near initialization for `vertices[1]')
test.c:46: warning: braces around scalar initializer
test.c:46: warning: (near initialization for `vertices[2]')
test.c:46: warning: excess elements in scalar initializer
test.c:46: warning: (near initialization for `vertices[2]')
test.c:46: warning: excess elements in scalar initializer
test.c:46: warning: (near initialization for `vertices[2]')
test.c:46: warning: excess elements in scalar initializer
test.c:46: warning: (near initialization for `vertices[2]')
test.c:47: warning: data definition has no type or storage class
test.c:49: parse error before "colours"
test.c:50: warning: braces around scalar initializer
test.c:50: warning: (near initialization for `colours[0]')
test.c:50: warning: excess elements in scalar initializer
test.c:50: warning: (near initialization for `colours[0]')
test.c:50: warning: excess elements in scalar initializer
test.c:50: warning: (near initialization for `colours[0]')
test.c:50: warning: excess elements in scalar initializer
test.c:50: warning: (near initialization for `colours[0]')
test.c:51: warning: braces around scalar initializer
test.c:51: warning: (near initialization for `colours[1]')
test.c:51: warning: excess elements in scalar initializer
test.c:51: warning: (near initialization for `colours[1]')
test.c:51: warning: excess elements in scalar initializer
test.c:51: warning: (near initialization for `colours[1]')
test.c:51: warning: excess elements in scalar initializer
test.c:51: warning: (near initialization for `colours[1]')
test.c:52: warning: braces around scalar initializer
test.c:52: warning: (near initialization for `colours[2]')
test.c:52: warning: excess elements in scalar initializer
test.c:52: warning: (near initialization for `colours[2]')
test.c:52: warning: excess elements in scalar initializer
test.c:52: warning: (near initialization for `colours[2]')
test.c:52: warning: excess elements in scalar initializer
test.c:52: warning: (near initialization for `colours[2]')
test.c:53: warning: data definition has no type or storage class
test.c:72: parse error before "object_position"
test.c:72: warning: excess elements in scalar initializer
test.c:72: warning: (near initialization for `object_position')
test.c:72: warning: excess elements in scalar initializer
test.c:72: warning: (near initialization for `object_position')
test.c:72: warning: excess elements in scalar initializer
test.c:72: warning: (near initialization for `object_position')
test.c:72: warning: data definition has no type or storage class
test.c:73: parse error before "object_rotation"
test.c:73: warning: excess elements in scalar initializer
test.c:73: warning: (near initialization for `object_rotation')
test.c:73: warning: excess elements in scalar initializer
test.c:73: warning: (near initialization for `object_rotation')
test.c:73: warning: excess elements in scalar initializer
test.c:73: warning: (near initialization for `object_rotation')
test.c:73: warning: data definition has no type or storage class
test.c:75: parse error before "camera_position"
test.c:75: warning: excess elements in scalar initializer
test.c:75: warning: (near initialization for `camera_position')
test.c:75: warning: excess elements in scalar initializer
test.c:75: warning: (near initialization for `camera_position')
test.c:75: warning: excess elements in scalar initializer
test.c:75: warning: (near initialization for `camera_position')
test.c:75: warning: data definition has no type or storage class
test.c:76: parse error before "camera_rotation"
test.c:76: warning: excess elements in scalar initializer
test.c:76: warning: (near initialization for `camera_rotation')
test.c:76: warning: excess elements in scalar initializer
test.c:76: warning: (near initialization for `camera_rotation')
test.c:76: warning: excess elements in scalar initializer
test.c:76: warning: (near initialization for `camera_rotation')
test.c:76: warning: data definition has no type or storage class
test.c: In function `main':
test.c:111: `MATRIX' undeclared (first use in this function)
test.c:111: (Each undeclared identifier is reported only once
test.c:111: for each function it appears in.)
test.c:111: parse error before "local_world"
test.c:125: `VECTOR' undeclared (first use in this function)
test.c:125: `temp_vertices' undeclared (first use in this function)
test.c:127: `u64' undeclared (first use in this function)
test.c:127: `xyz' undeclared (first use in this function)
test.c:128: `rgbaq' undeclared (first use in this function)
test.c:141: `GRAPH_MODE_AUTO' undeclared (first use in this function)
test.c:141: `GRAPH_PSM_32' undeclared (first use in this function)
test.c:154: `view_screen' undeclared (first use in this function)
test.c:164: subscripted value is neither array nor pointer
test.c:164: subscripted value is neither array nor pointer
test.c:164: subscripted value is neither array nor pointer
test.c:165: subscripted value is neither array nor pointer
test.c:165: subscripted value is neither array nor pointer
test.c:165: subscripted value is neither array nor pointer
test.c:174: `local_world' undeclared (first use in this function)
test.c:176: `world_view' undeclared (first use in this function)
test.c:178: `local_screen' undeclared (first use in this function)
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

The example given in that document is just a simple version of the cube sample, located in $PS2SDK/samples/cube. In that directory, type 'make' to build it, and 'make run' to run it if you're using ps2link.
taz030485
Posts: 27
Joined: Thu May 27, 2004 3:37 pm

Post by taz030485 »

Any one have an answer to my problem? I don't mean to be pushy, I'm just am looking forward to this :D
DAYAK
Posts: 9
Joined: Mon Mar 02, 2009 2:21 am

Post by DAYAK »

here is your answer 5 years later...

for example

Code: Select all

int points[323]=
should be

Code: Select all

int points[]=
and delete the last comma from the end of the array
User avatar
jbit
Site Admin
Posts: 293
Joined: Sat May 28, 2005 3:11 am
Location: København, Danmark
Contact:

Post by jbit »

But why did you dig up an ancient useless thread?
Post Reply