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 

I have problem setting up toolchain

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



Joined: 30 Oct 2005
Posts: 2

PostPosted: Sun Oct 30, 2005 10:52 pm    Post subject: I have problem setting up toolchain Reply with quote

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:
$ 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:

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.
Back to top
View user's profile Send private message
urchin



Joined: 02 Jun 2005
Posts: 121

PostPosted: Sun Oct 30, 2005 11:04 pm    Post subject: Reply with quote

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

svn checkout svn://svn.ps2dev.org/ps2/trunk/ps2toolchain
Back to top
View user's profile Send private message
taz030485



Joined: 27 May 2004
Posts: 27

PostPosted: Mon Oct 31, 2005 8:21 am    Post subject: Reply with quote

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:
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.
Back to top
View user's profile Send private message
Raison



Joined: 30 Oct 2005
Posts: 2

PostPosted: Mon Oct 31, 2005 10:06 pm    Post subject: Reply with quote

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:
$ 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)
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Mon Oct 31, 2005 11:44 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
taz030485



Joined: 27 May 2004
Posts: 27

PostPosted: Fri Nov 04, 2005 8:49 pm    Post subject: Reply with quote

Any one have an answer to my problem? I don't mean to be pushy, I'm just am looking forward to this :D
Back to top
View user's profile Send private message
DAYAK



Joined: 02 Mar 2009
Posts: 9

PostPosted: Sat Apr 11, 2009 6:47 am    Post subject: Reply with quote

here is your answer 5 years later...

for example

Code:
int points[323]=


should be

Code:
int points[]=


and delete the last comma from the end of the array
Back to top
View user's profile Send private message
jbit
Site Admin


Joined: 28 May 2005
Posts: 293
Location: København, Danmark

PostPosted: Sat Apr 11, 2009 9:16 pm    Post subject: Reply with quote

But why did you dig up an ancient useless thread?
Back to top
View user's profile Send private message Visit poster's website
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