question regarding libmp3 & ps2sdk

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

Moderators: cheriff, Herben

Post Reply
drorshalev
Posts: 5
Joined: Tue Jan 04, 2005 2:22 am
Location: Israel
Contact:

question regarding libmp3 & ps2sdk

Post 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
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post 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?
Last edited by rinco on Mon Feb 07, 2005 9:33 am, edited 1 time in total.
drorshalev
Posts: 5
Joined: Tue Jan 04, 2005 2:22 am
Location: Israel
Contact:

Hola rinco ,

Post 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
drorshalev
Posts: 5
Joined: Tue Jan 04, 2005 2:22 am
Location: Israel
Contact:

problem complie the libmp3 sample

Post 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
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post by rinco »

hold off until tomorrow then update your cvs...

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