Page 1 of 1

question regarding libmp3 & ps2sdk

Posted: Mon Feb 07, 2005 8:12 am
by drorshalev
hola ,

i got libmp3 & ps2sdk from cve and got this compile error :

In file included from libmp3.cpp:55:
C:/PS2Dev/ps2sdk/ee/include/fileXio_rpc.h:53: type specifier omitted for
parameter `iox_stat_t'
C:/PS2Dev/ps2sdk/ee/include/fileXio_rpc.h:53: parse error before `*' token
C:/PS2Dev/ps2sdk/ee/include/fileXio_rpc.h:54: type specifier omitted for
parameter `iox_stat_t'
C:/PS2Dev/ps2sdk/ee/include/fileXio_rpc.h:54: parse error before `*' token
C:/PS2Dev/ps2sdk/ee/include/fileXio_rpc.h:59: type specifier omitted for
parameter `iox_dirent_t'
C:/PS2Dev/ps2sdk/ee/include/fileXio_rpc.h:59: parse error before `*' token
libmp3.cpp:1752:1: operator '||' has no right operand
make: *** [libmp3.o] Error 1


does someone have idea how to solve this Error ?

take care

dror

Posted: Mon Feb 07, 2005 8:44 am
by rinco
look at line 53 of fileXio_rpc.h:

Code: Select all

int fileXioChStat(const char *name, iox_stat_t *stat, int mask);
Your error:
C:/PS2Dev/ps2sdk/ee/include/fileXio_rpc.h:53: type specifier omitted for
parameter `iox_stat_t'
C:/PS2Dev/ps2sdk/ee/include/fileXio_rpc.h:53: parse error before `*' token
So... iox_stat_t is broken for you.
It's declared in my sys/stat.h.
Is it declared in your sys/stat.h?

... And you are using the right sys/stat.h?

Hola rinco ,

Posted: Mon Feb 07, 2005 9:11 am
by drorshalev
Hola rinco ,


thank you for your fast replay.

i was able to remove the stat.h error by change the sys/stat.h file .


thanks a lot ,

great job
take care

dror

problem complie the libmp3 sample

Posted: Mon Feb 07, 2005 9:18 am
by drorshalev
hola again.

i am tring to compile the libmp3 under windows , but i having problems with libmp3/contrib/lib/libsample.a

ee-gcc -mno-crt0 -TC:\PS2Dev\ps2sdk/ee/startup/linkfile -LC:\PS2Dev\ps2sdk/ee/lib -L./LIB -LC:\PS2De
v\libmp3/ee/lib/ -LC:\PS2Dev\libmp3/libmad/ -LC:\PS2Dev\libmp3/contrib/lib \
-o ../bin/mp3play.elf C:\PS2Dev\ps2sdk/ee/startup/crt0.o mp3play.o -lmp3 -lfileXio -
ldebug -lsample -lmad -lm -lcdvdfs -lkernel -lc -lkernel -lsyscall -lc
C:\PS2Dev\libmp3/contrib/lib/libsample.a: file not recognized: File format not recognized
collect2: ld returned 1 exit status

make: *** [../bin/mp3play.elf] Error 1

Posted: Mon Feb 07, 2005 9:37 am
by rinco
hold off until tomorrow then update your cvs...

I've dropped libsample in favour of the madplayer resample code.