Hello,
sorry for my english, i'm chinese,
i installed PS2SDK(ps2sdk-v1.0alpha-bin.zip) and set $PS2SDKSRC on redhat 9 .
when i make (under src/) i had this error:
[root@localhost src]# make
cc -Wall -DLINUX -c -o FileSystem.o FileSystem.c
In file included from FileSystem.c:13:
FileSystem.h:112: parse error before '*' token
FileSystem.h:112: warning: type defaults to `int' in declaration of `FileSystem_ScanDevice'
FileSystem.h:112: warning: data definition has no type or storage class
FileSystem.c: In function `FileSystem_OpenDir':
FileSystem.c:125: structure has no member named `m_List'
FileSystem.c:128: structure has no member named `m_List'
FileSystem.c: In function `FileSystem_ReadDir':
FileSystem.c:230: structure has no member named `m_List'
FileSystem.c: In function `FileSystem_ClassifyPath':
FileSystem.c:454: structure has no member named `m_eType'
FileSystem.c:454: `FS_DEVLIST' undeclared (first use in this function)
FileSystem.c:454: (Each undeclared identifier is reported only once
FileSystem.c:454: for each function it appears in.)
FileSystem.c:463: warning: implicit declaration of function `isnum'
FileSystem.c:467: structure has no member named `m_kFile'
FileSystem.c:472: structure has no member named `m_kFile'
FileSystem.c:472: `IOPMGR_IOMAN_IDENT' undeclared (first use in this function)
FileSystem.c:474: structure has no member named `m_eType'
FileSystem.c:474: `FS_IODEVICE' undeclared (first use in this function)
FileSystem.c:485: structure has no member named `m_kFile'
FileSystem.c:485: `IOPMGR_IOMANX_IDENT' undeclared (first use in this function)
FileSystem.c:487: structure has no member named `m_eType'
FileSystem.c: At top level:
FileSystem.c:584: parse error before '*' token
FileSystem.c:585: warning: return type defaults to `int'
FileSystem.c: In function `FileSystem_ScanDevice':
FileSystem.c:586: `smod_mod_info_t' undeclared (first use in this function)
FileSystem.c:586: `pkModule' undeclared (first use in this function)
FileSystem.c:587: `iop_device_t' undeclared (first use in this function)
FileSystem.c:587: `pkDevInfoTable' undeclared (first use in this function)
FileSystem.c:592: parse error before ')' token
FileSystem.c:604: parse error before ')' token
FileSystem.c:611: `IOP_DT_FS' undeclared (first use in this function)
make: *** [FileSystem.o] Error 1
[root@localhost src]#
why?
please help me~
thank :x
How can i build ps2ftpd?
You have a lot of environment variables missing.
I suggest you use ooPo's script to compile the whole toolchain (which includes ps2sdk). Just download and run this file: http://www.oopo.net/consoledev/files/toolchain-beta.sh
Afterward, you need to change your environment variables:
export PS2DEV=/usr/local/ps2dev
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin
I suggest you use ooPo's script to compile the whole toolchain (which includes ps2sdk). Just download and run this file: http://www.oopo.net/consoledev/files/toolchain-beta.sh
Afterward, you need to change your environment variables:
export PS2DEV=/usr/local/ps2dev
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin
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.
I am not sure this works under cygwin. But it should.
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.
i have done above~pixel wrote:You have a lot of environment variables missing.
I suggest you use ooPo's script to compile the whole toolchain (which includes ps2sdk). Just download and run this file: http://www.oopo.net/consoledev/files/toolchain-beta.sh
Afterward, you need to change your environment variables:
export PS2DEV=/usr/local/ps2dev
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin
when i build ps2ftpd ,i have this error
pixel wrote: [root@secview ps2ftpd]# export PS2SDKSRC=$PS2SDK
[root@secview ps2ftpd]# make
Makefile:28: /usr/local/ps2dev/ps2sdk/iop/Rules.make: No such file or directory
Makefile:29: /usr/local/ps2dev/ps2sdk/iop/Rules.release: No such file or directory
make: *** No rule to make target `/usr/local/ps2dev/ps2sdk/iop/Rules.release'. Stop.
You have new mail in /var/spool/mail/root
[root@secview ps2ftpd]#
[root@secview ps2ftpd]# cd src
[root@secview src]# make
cc -Wall -DLINUX -c -o FtpClient.o FtpClient.c
FtpClient.c: In function `FtpClient_OnConnect':
FtpClient.c:165: warning: implicit declaration of function `FileSystem_ClassifyPath'
FtpClient.c:165: warning: comparison between pointer and integer
FtpClient.c:167: structure has no member named `m_eType'
FtpClient.c:169: `FS_IODEVICE' undeclared (first use in this function)
FtpClient.c:169: (Each undeclared identifier is reported only once
FtpClient.c:169: for each function it appears in.)
FtpClient.c:171: `iox_dirent_t' undeclared (first use in this function)
FtpClient.c:171: parse error before "bad_block_list"
FtpClient.c:173: structure has no member named `m_kFile'
FtpClient.c:176: structure has no member named `m_kFile'
FtpClient.c:176: `O_DIROPEN' undeclared (first use in this function)
FtpClient.c:177: structure has no member named `m_kFile'
FtpClient.c:177: structure has no member named `m_kFile'
FtpClient.c:180: structure has no member named `m_kFile'
FtpClient.c:180: structure has no member named `m_kFile'
FtpClient.c:180: `bad_block_list' undeclared (first use in this function)
FtpClient.c:193: structure has no member named `m_kFile'
FtpClient.c:193: structure has no member named `m_kFile'
FtpClient.c:199: structure has no member named `m_eType'
FtpClient.c:199: `FS_INVALID' undeclared (first use in this function)
FtpClient.c: In function `FtpClient_OnDataConnected':
FtpClient.c:833: warning: implicit declaration of function `process_buffer'
make: *** [FtpClient.o] Error 1
[root@secview src]#