Problem about build ftpd
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
Problem about build ftpd
I followed the TUTORIALS at http://ps2dev.org/kb.x?T=927
and it seemed to be success.But I don't know how to compile a file.
I haven't any experience on gcc , cygwin and I haven't used linux or unix like system before,so please tell me how to do it.
thx.
This problem has been solved,please help me with another question at page 2.
and it seemed to be success.But I don't know how to compile a file.
I haven't any experience on gcc , cygwin and I haven't used linux or unix like system before,so please tell me how to do it.
thx.
This problem has been solved,please help me with another question at page 2.
Last edited by Chocoboboy on Fri Jul 30, 2004 2:21 am, edited 1 time in total.
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
I suggest reading up on gcc and gnu make.
gcc info
http://users.actcom.co.il/~choo/lupg/tu ... -unix.html
gnu make info
http://www.cs.utah.edu/dept/old/texinfo ... e_toc.html
gcc info
http://users.actcom.co.il/~choo/lupg/tu ... -unix.html
gnu make info
http://www.cs.utah.edu/dept/old/texinfo ... e_toc.html
Kung VU
I'd suggest we update the http://ps2dev.org/kb.x?T=927 page so it ends with your two links, as "Getting started" or something similar...
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
Err... if he used the toolchain, then, the files are under /usr/local/ps2dev/bin, and thus, not under his path. Have to teach him how to set up his PATH variable now (and other environment variables....)
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
There is a file named "ee-gcov.exe" in my "\usr\ps2dev\ee\bin"pixel wrote:Err... if he used the toolchain, then, the files are under /usr/local/ps2dev/bin, and thus, not under his path. Have to teach him how to set up his PATH variable now (and other environment variables....)
Is it that file?
I can set Path in msdos,I am familiar with MSDOS.
Let me guess~,use "set bash=..."?
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
if that is all you have in that bin dir your installation is far from complete.
for some bash reference check
http://linux.org.mt/article/terminal
for some bash reference check
http://linux.org.mt/article/terminal
Kung VU
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
I have downloaded the prebuilt binaries,and decompression it to my /usr/ps2dev/gcc/ee and /usr/ps2dev/gcc/iop,and then set the path environment variable use "export PATH=$PATH:/usr/ps2dev/gcc/ee/bin:/usr/ps2dev/gcc/iop/bin"
But when I try to use "iop-gcc main.c" to compile the "starsim" sample code,it says
But when I try to use "iop-gcc main.c" to compile the "starsim" sample code,it says
So...what shoud I do now?I have some of these files in my "usr/ps2dev/gcc/iop/lib/gcc-lib/iop/2.8.1-ps2dev/include"main.c:27:22: tamtypes.h: No such file or directory
main.c:29:20: kernel.h: No such file or directory
main.c:30:20: sifrpc.h: No such file or directory
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
Oh...I try to compile hello sample in ps2sdk,but still it can't find some include files.
By the way,the tutorial you give me is very easy to understand,I acquired a lot of things.Thanks again.hello.c:1:22: tamtypes.h: No such file or directory
hello.c:2:20: sifcmd.h: No such file or directory
hello.c:3:20: kernel.h: No such file or directory
hello.c:4:20: sifrpc.h: No such file or directory
hello.c:5:17: sio.h: No such file or directory
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
I am sorry to trouble you again.But I still can't do it.I don't know why I got so many problems on only compiling a simple hello program.Maybe my computer don't like to do it. :?
This time I use the "-I" to locate my include files,and it seemd my include files have some error.
It gave me many messages,and I can't copy it.I try to use "ee-gcc hello.c -I.... >err.txt" but it doesn't work.I got only a empty text file.
The message on the end is
This time I use the "-I" to locate my include files,and it seemd my include files have some error.
It gave me many messages,and I can't copy it.I try to use "ee-gcc hello.c -I.... >err.txt" but it doesn't work.I got only a empty text file.
The message on the end is
And I want to know where should I put the include files that ee-gcc can find itself?n returning a function
/usr/ps2dev/ps2lib/ee/include/kernel.h:149: parse error before "next"
/usr/ps2dev/ps2lib/ee/include/kernel.h:150: parse error before "channel"
/usr/ps2dev/ps2lib/ee/include/kernel.h:150: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:151: parse error before "_EnableIntc"
/usr/ps2dev/ps2lib/ee/include/kernel.h:151: parse error before "cause"
/usr/ps2dev/ps2lib/ee/include/kernel.h:151: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:152: parse error before "_DisableIntc"
/usr/ps2dev/ps2lib/ee/include/kernel.h:152: parse error before "cause"
/usr/ps2dev/ps2lib/ee/include/kernel.h:152: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:153: parse error before "_EnableDmac"
/usr/ps2dev/ps2lib/ee/include/kernel.h:153: parse error before "channel"
/usr/ps2dev/ps2lib/ee/include/kernel.h:153: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:154: parse error before "_DisableDmac"
/usr/ps2dev/ps2lib/ee/include/kernel.h:154: parse error before "channel"
/usr/ps2dev/ps2lib/ee/include/kernel.h:154: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:155: parse error before "SetAlarm"
/usr/ps2dev/ps2lib/ee/include/kernel.h:155: parse error before "time"
/usr/ps2dev/ps2lib/ee/include/kernel.h:155: parse error before "alarm_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:155: `SetAlarm' declared as function retu
rning a function
/usr/ps2dev/ps2lib/ee/include/kernel.h:156: parse error before "alarm_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:156: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:157: parse error before "_iEnableIntc"
/usr/ps2dev/ps2lib/ee/include/kernel.h:157: parse error before "cause"
/usr/ps2dev/ps2lib/ee/include/kernel.h:157: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:158: parse error before "_iDisableIntc"
/usr/ps2dev/ps2lib/ee/include/kernel.h:158: parse error before "cause"
/usr/ps2dev/ps2lib/ee/include/kernel.h:158: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:159: parse error before "_iEnableDmac"
/usr/ps2dev/ps2lib/ee/include/kernel.h:159: parse error before "channel"
/usr/ps2dev/ps2lib/ee/include/kernel.h:159: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:160: parse error before "_iDisableDmac"
/usr/ps2dev/ps2lib/ee/include/kernel.h:160: parse error before "channel"
/usr/ps2dev/ps2lib/ee/include/kernel.h:160: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:161: parse error before "iSetAlarm"
/usr/ps2dev/ps2lib/ee/include/kernel.h:161: parse error before "time"
/usr/ps2dev/ps2lib/ee/include/kernel.h:161: parse error before "alarm_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:161: `iSetAlarm' declared as function ret
urning a function
/usr/ps2dev/ps2lib/ee/include/kernel.h:162: parse error before "alarm_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:162: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:163: parse error before "CreateThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:163: parse error before '*' token
/usr/ps2dev/ps2lib/ee/include/kernel.h:163: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:164: parse error before "DeleteThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:164: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:164: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:165: parse error before "StartThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:165: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:165: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:168: parse error before "TerminateThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:168: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:168: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:169: parse error before "iTerminateThread
"
/usr/ps2dev/ps2lib/ee/include/kernel.h:169: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:169: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:172: parse error before "ChangeThreadPrio
rity"
/usr/ps2dev/ps2lib/ee/include/kernel.h:172: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:172: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:173: parse error before "iChangeThreadPri
ority"
/usr/ps2dev/ps2lib/ee/include/kernel.h:173: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:173: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:174: parse error before "RotateThreadRead
yQueue"
/usr/ps2dev/ps2lib/ee/include/kernel.h:174: parse error before "priority"
/usr/ps2dev/ps2lib/ee/include/kernel.h:174: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:175: parse error before "iRotateThreadRea
dyQueue"
/usr/ps2dev/ps2lib/ee/include/kernel.h:175: parse error before "priority"
/usr/ps2dev/ps2lib/ee/include/kernel.h:175: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:176: parse error before "ReleaseWaitThrea
d"
/usr/ps2dev/ps2lib/ee/include/kernel.h:176: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:176: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:177: parse error before "iReleaseWaitThre
ad"
/usr/ps2dev/ps2lib/ee/include/kernel.h:177: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:177: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:178: parse error before "GetThreadId"
/usr/ps2dev/ps2lib/ee/include/kernel.h:178: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:179: parse error before "ReferThreadStatu
s"
/usr/ps2dev/ps2lib/ee/include/kernel.h:179: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:179: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:180: parse error before "iReferThreadStat
us"
/usr/ps2dev/ps2lib/ee/include/kernel.h:180: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:180: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:181: parse error before "SleepThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:181: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:182: parse error before "WakeupThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:182: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:182: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:183: parse error before "iWakeupThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:183: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:183: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:184: parse error before "CancelWakeupThre
ad"
/usr/ps2dev/ps2lib/ee/include/kernel.h:184: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:184: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:185: parse error before "iCancelWakeupThr
ead"
/usr/ps2dev/ps2lib/ee/include/kernel.h:185: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:185: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:186: parse error before "SuspendThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:186: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:186: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:187: parse error before "iSuspendThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:187: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:187: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:188: parse error before "ResumeThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:188: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:188: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:189: parse error before "iResumeThread"
/usr/ps2dev/ps2lib/ee/include/kernel.h:189: parse error before "thread_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:189: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:191: parse error before "RFU059"
/usr/ps2dev/ps2lib/ee/include/kernel.h:191: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:193: parse error before "RFU060"
/usr/ps2dev/ps2lib/ee/include/kernel.h:193: parse error before "arg0"
/usr/ps2dev/ps2lib/ee/include/kernel.h:193: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:194: parse error before "arg0"
/usr/ps2dev/ps2lib/ee/include/kernel.h:197: parse error before "CreateSema"
/usr/ps2dev/ps2lib/ee/include/kernel.h:197: parse error before '*' token
/usr/ps2dev/ps2lib/ee/include/kernel.h:197: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:198: parse error before "DeleteSema"
/usr/ps2dev/ps2lib/ee/include/kernel.h:198: parse error before "sema_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:198: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:199: parse error before "SignalSema"
/usr/ps2dev/ps2lib/ee/include/kernel.h:199: parse error before "sema_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:199: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:200: parse error before "iSignalSema"
/usr/ps2dev/ps2lib/ee/include/kernel.h:200: parse error before "sema_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:200: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:201: parse error before "WaitSema"
/usr/ps2dev/ps2lib/ee/include/kernel.h:201: parse error before "sema_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:201: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:202: parse error before "PollSema"
/usr/ps2dev/ps2lib/ee/include/kernel.h:202: parse error before "sema_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:202: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:203: parse error before "iPollSema"
/usr/ps2dev/ps2lib/ee/include/kernel.h:203: parse error before "sema_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:203: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:204: parse error before "ReferSemaStatus"
/usr/ps2dev/ps2lib/ee/include/kernel.h:204: parse error before "sema_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:204: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:205: parse error before "iReferSemaStatus
"
/usr/ps2dev/ps2lib/ee/include/kernel.h:205: parse error before "sema_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:205: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:206: parse error before "iDeleteSema"
/usr/ps2dev/ps2lib/ee/include/kernel.h:206: parse error before "sema_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:206: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:210: parse error before "GetGsVParam"
/usr/ps2dev/ps2lib/ee/include/kernel.h:210: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:212: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:213: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:214: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:215: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:216: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:217: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:218: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:219: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:220: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:221: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:222: parse error before "EnableCache"
/usr/ps2dev/ps2lib/ee/include/kernel.h:222: parse error before "cache"
/usr/ps2dev/ps2lib/ee/include/kernel.h:222: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:223: parse error before "DisableCache"
/usr/ps2dev/ps2lib/ee/include/kernel.h:223: parse error before "cache"
/usr/ps2dev/ps2lib/ee/include/kernel.h:223: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:224: parse error before "GetCop0"
/usr/ps2dev/ps2lib/ee/include/kernel.h:224: parse error before "reg_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:224: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:225: parse error before "operation"
/usr/ps2dev/ps2lib/ee/include/kernel.h:226: parse error before "CpuConfig"
/usr/ps2dev/ps2lib/ee/include/kernel.h:226: parse error before "config"
/usr/ps2dev/ps2lib/ee/include/kernel.h:226: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:227: parse error before "iGetCop0"
/usr/ps2dev/ps2lib/ee/include/kernel.h:227: parse error before "reg_id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:227: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:228: parse error before "operation"
/usr/ps2dev/ps2lib/ee/include/kernel.h:229: parse error before "iCpuConfig"
/usr/ps2dev/ps2lib/ee/include/kernel.h:229: parse error before "config"
/usr/ps2dev/ps2lib/ee/include/kernel.h:229: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:231: parse error before "compval"
/usr/ps2dev/ps2lib/ee/include/kernel.h:232: parse error before "s32"
/usr/ps2dev/ps2lib/ee/include/kernel.h:233: parse error before "s32"
/usr/ps2dev/ps2lib/ee/include/kernel.h:234: parse error before "GsGetIMR"
/usr/ps2dev/ps2lib/ee/include/kernel.h:234: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:235: parse error before "iGsGetIMR"
/usr/ps2dev/ps2lib/ee/include/kernel.h:235: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:236: parse error before "GsPutIMR"
/usr/ps2dev/ps2lib/ee/include/kernel.h:236: parse error before "imr"
/usr/ps2dev/ps2lib/ee/include/kernel.h:236: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:237: parse error before "iGsPutIMR"
/usr/ps2dev/ps2lib/ee/include/kernel.h:237: parse error before "imr"
/usr/ps2dev/ps2lib/ee/include/kernel.h:237: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:239: parse error before "arg1"
/usr/ps2dev/ps2lib/ee/include/kernel.h:240: parse error before "syscall_num"
/usr/ps2dev/ps2lib/ee/include/kernel.h:244: parse error before "SifDmaStat"
/usr/ps2dev/ps2lib/ee/include/kernel.h:244: parse error before "id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:244: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:245: parse error before "iSifDmaStat"
/usr/ps2dev/ps2lib/ee/include/kernel.h:245: parse error before "id"
/usr/ps2dev/ps2lib/ee/include/kernel.h:245: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:246: parse error before "SifSetDma"
/usr/ps2dev/ps2lib/ee/include/kernel.h:246: parse error before '*' token
/usr/ps2dev/ps2lib/ee/include/kernel.h:246: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:247: parse error before "iSifSetDma"
/usr/ps2dev/ps2lib/ee/include/kernel.h:247: parse error before '*' token
/usr/ps2dev/ps2lib/ee/include/kernel.h:247: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:250: parse error before "register_num"
/usr/ps2dev/ps2lib/ee/include/kernel.h:251: parse error before "register_num"
/usr/ps2dev/ps2lib/ee/include/kernel.h:254: parse error before "Deci2Call"
/usr/ps2dev/ps2lib/ee/include/kernel.h:254: parse error before '*' token
/usr/ps2dev/ps2lib/ee/include/kernel.h:254: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:256: parse error before "MachineType"
/usr/ps2dev/ps2lib/ee/include/kernel.h:256: warning: data definition has no type
or storage class
/usr/ps2dev/ps2lib/ee/include/kernel.h:257: parse error before "GetMemorySize"
/usr/ps2dev/ps2lib/ee/include/kernel.h:257: warning: data definition has no type
or storage class
hello.c:4:20: sifrpc.h: No such file or directory
In file included from hello.c:5:
/usr/ps2dev/ps2lib/ee/include/sio.h:13:22: tamtypes.h: No such file or directory
In file included from hello.c:5:
/usr/ps2dev/ps2lib/ee/include/sio.h:56: parse error before "baudrate"
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
In the samples dir of ps2sdk you have a hello world program, running make there shows this.
ee-gcc -D_EE -O2 -G0 -Wall -I/usr/local/ps2dev/ps2sdk_r/ee/include -I/usr/local/ps2dev/ps2sdk_r/common/include -I. -c hello.c -o hello.o
ee-gcc -nostartfiles -T/usr/local/ps2dev/ps2sdk_r/ee/startup/linkfile -L/usr/local/ps2dev/ps2sdk_r/ee/lib -o hello.elf /usr/local/ps2dev/ps2sdk_r/ee/startup/crt0.o hello.o -lc -lkernel -lsyscall -lc
Now this is sort of the minimum for compiling something that needs ps2sdk functions.
First line creates and object file of hello, so gcc only need to know where all the includes are wich are all those -I arguments, second line we want to link the program in order to make an executable out of our object file, there we need the libraries, notice the -L in order to tell gcc where to look for the libraries that we want ( all those -l arguments tells gcc to look for functions needed in those libraries ).
now your problem is of the first one, not enough -I statements telling gcc where to find all headers that you need.
ee-gcc -D_EE -O2 -G0 -Wall -I/usr/local/ps2dev/ps2sdk_r/ee/include -I/usr/local/ps2dev/ps2sdk_r/common/include -I. -c hello.c -o hello.o
ee-gcc -nostartfiles -T/usr/local/ps2dev/ps2sdk_r/ee/startup/linkfile -L/usr/local/ps2dev/ps2sdk_r/ee/lib -o hello.elf /usr/local/ps2dev/ps2sdk_r/ee/startup/crt0.o hello.o -lc -lkernel -lsyscall -lc
Now this is sort of the minimum for compiling something that needs ps2sdk functions.
First line creates and object file of hello, so gcc only need to know where all the includes are wich are all those -I arguments, second line we want to link the program in order to make an executable out of our object file, there we need the libraries, notice the -L in order to tell gcc where to look for the libraries that we want ( all those -l arguments tells gcc to look for functions needed in those libraries ).
now your problem is of the first one, not enough -I statements telling gcc where to find all headers that you need.
Kung VU
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
I have some problems again , and I can't solve it by myself.
This time I try to build ftpd,When I use "make" to build,it gave me some messages.
This time I try to build ftpd,When I use "make" to build,it gave me some messages.
I have seen the stddef.h ,but I don't know what is the "unrecognized text" he mean.iop-gcc -O2 -G0 -c -I/usr/ps2dev/ps2lib/iop/include -I/usr/ps2dev/ps2lib/common
/include -Iinclude -Wall -fno-builtin src/main.c -o obj/main.o
cpp: -lang-c: linker input file unused because linking not done
In file included from /usr/ps2dev/ps2lib/iop/include/types.h:13,
from /usr/ps2dev/ps2lib/iop/include/iomanX.h:16,
from src/FileSystem.h:22,
from src/FtpClient.h:14,
from src/FtpServer.h:14,
from src/main.c:12:
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:0: warning: unrecognized
text at end of #line
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:150: warning: unrecognize
d text at end of #line
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:212: warning: unrecognize
d text at end of #line
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:324: warning: unrecognize
d text at end of #line
as: unrecognized option `-G0'
make: *** [obj/main.o] Error 1
Are you sure your iop-gcc is properly built? Because it accesses the includes for your standard gcc (i686-pc-cygwin) and it executes the normal 'as' instead of 'iop-as', which will not end well .. If you want to build it for usage in linux (other systems untested), use Makefile.linux inside the src/ directory.Chocoboboy wrote:I have some problems again , and I can't solve it by myself.
This time I try to build ftpd,When I use "make" to build,it gave me some messages.I have seen the stddef.h ,but I don't know what is the "unrecognized text" he mean./usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:0: warning: unrecognized
text at end of #line
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:150: warning: unrecognize
d text at end of #line
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:212: warning: unrecognize
d text at end of #line
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h:324: warning: unrecognize
d text at end of #line
as: unrecognized option `-G0'
make: *** [obj/main.o] Error 1
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
Yes, I am using lukasz win32 build.
I changed it with another one which download from http://www.internalreality.com/
and it's ok now.
I got a ftpd.irx ,so can I execute it on my PS2,and what 's different between .irx and .elf?
And I want to know how to use wincvs.I download and install it with Python 2.2,and
setting cvsroot with ":pserver:anonymous@ps2dev.org:/home/ps2cvs"
and I click login,then type password "anonymous",but after a doxbox show,it back to wincvs and says "***** CVS exited normally with code 0 *****",how can I browser projects with it?
I changed it with another one which download from http://www.internalreality.com/
and it's ok now.
I got a ftpd.irx ,so can I execute it on my PS2,and what 's different between .irx and .elf?
And I want to know how to use wincvs.I download and install it with Python 2.2,and
setting cvsroot with ":pserver:anonymous@ps2dev.org:/home/ps2cvs"
and I click login,then type password "anonymous",but after a doxbox show,it back to wincvs and says "***** CVS exited normally with code 0 *****",how can I browser projects with it?
ELFs are what you run on the EE (the main cpu), while IRXes are executing on the IOP (the I/O processor). The ftpd runs on the IOP to provide it as a service, which means you can have it running while executing your own homebrew code on the EE.Chocoboboy wrote: I got a ftpd.irx ,so can I execute it on my PS2,and what 's different between .irx and .elf?
-
- Posts: 30
- Joined: Thu Jul 22, 2004 12:42 pm
- Location: China
I have run the ftpd,but I can't list any files in mem card.In the readme of ftpd,it says
Do I execute ps2ip.irx,ioman.irx,iomanx.irx before I start ftpd?ps2ftpd.irx requires that ps2ip.irx is already present. It accesses ioman.irx
and iomanx.irx, but does not absolutely require that they are present when
started. It hampers functionality greatly if they are not present or at least
loaded at a later time.