"A collection of spu programs to accelerate media related applications for the CellBE ( PS3 ) platform" - unsolo
Moderator: unsolo
zzima
Posts: 10 Joined: Thu Mar 13, 2008 11:57 pm
Post
by zzima » Fri Mar 14, 2008 12:02 am
Tried to compile spu-medialib (svn 214) and failed on spu compilation (not talking about changing "spur" in config file).
I'm on YDL 6 on PS3.
The problem is when trying to make spu/src:
Code: Select all
spu_blit_yuv420_scale.c: In function 'main':
spu_blit_yuv420_scale.c:133: warning: initialization from incompatible pointer type
spu_blit_yuv420_scale.c:134: warning: initialization from incompatible pointer type
/bin/sh ../libtool --tag=CC --mode=link spu-elf-gcc -g -O2 -o spu_blit_yuv420_scale spu_blit_yuv420_scale.o
spu-elf-gcc -g -O2 -o spu_blit_yuv420_scale spu_blit_yuv420_scale.o
if spu-elf-gcc -DPACKAGE_NAME=\"spu-medialib/spe\" -DPACKAGE_TARNAME=\"spu-medialib-spe\" -DPACKAGE_VERSION=\"VERSION\" -DPACKAGE_STRING=\"spu-medialib/spe\ VERSION\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DPACKAGE=\"spu-medialib-spe\" -DVERSION=\"VERSION\" -I. -I. -I../../include -I../include -g -O2 -MT spu_draw_rect.o -MD -MP -MF ".deps/spu_draw_rect.Tpo" -c -o spu_draw_rect.o spu_draw_rect.c; \
then mv -f ".deps/spu_draw_rect.Tpo" ".deps/spu_draw_rect.Po"; else rm -f ".deps/spu_draw_rect.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link spu-elf-gcc -g -O2 -o spu_draw_rect spu_draw_rect.o
spu-elf-gcc -g -O2 -o spu_draw_rect spu_draw_rect.o
spu_yuv2argb_scaler_handle spu_yuv2argb_scaler spu_yuv2argb_scaler.eo
make[1]: spu_yuv2argb_scaler_handle: Command not found
make[1]: *** [spu_yuv2argb_scaler.eo] Error 127
make[1]: Leaving directory `/usr/src/spu-medialib/spu/src'
make: *** [all-recursive] Error 1
While looking at Makefile in spu/src:
Any ideas?
ldesnogu
Posts: 94 Joined: Sat Apr 17, 2004 10:37 pm
Post
by ldesnogu » Fri Mar 14, 2008 1:22 am
zzima wrote: Code: Select all
spu_yuv2argb_scaler_handle spu_yuv2argb_scaler spu_yuv2argb_scaler.eo
make[1]: spu_yuv2argb_scaler_handle: Command not found
make[1]: *** [spu_yuv2argb_scaler.eo] Error 127
make[1]: Leaving directory `/usr/src/spu-medialib/spu/src'
make: *** [all-recursive] Error 1
While looking at Makefile in spu/src:
Any ideas?
Hypothesis: is EMBEDSPU variable defined in the makefile?
Laurent
zzima
Posts: 10 Joined: Thu Mar 13, 2008 11:57 pm
Post
by zzima » Fri Mar 14, 2008 2:01 am
ldesnogu wrote: zzima wrote: Code: Select all
spu_yuv2argb_scaler_handle spu_yuv2argb_scaler spu_yuv2argb_scaler.eo
make[1]: spu_yuv2argb_scaler_handle: Command not found
make[1]: *** [spu_yuv2argb_scaler.eo] Error 127
make[1]: Leaving directory `/usr/src/spu-medialib/spu/src'
make: *** [all-recursive] Error 1
While looking at Makefile in spu/src:
Any ideas?
Hypothesis: is EMBEDSPU variable defined in the makefile?
Nope. It's undefined.
master-crown
Posts: 5 Joined: Fri Mar 14, 2008 6:20 am
Post
by master-crown » Fri Mar 14, 2008 10:44 am
i have the same problem....
i changed in the config.sub spu to spu....
then i configured a makefile....
and now iam at the same problem it says :
spu_yuv2argb_scaler_handle spu_yuv2argb_scaler spu_yuv2argb_scaler.eo
make[2]: spu_yuv2argb_scaler_handle: Kommando nicht gefunden
make[2]: *** [spu_yuv2argb_scaler.eo] Fehler 127
make[2]: Leaving directory `/home/user/downloads/spu-medialib/spu/src'
my os is YDL 6.0
master-crown
Posts: 5 Joined: Fri Mar 14, 2008 6:20 am
Post
by master-crown » Sat Mar 15, 2008 7:32 am
i found the problem....
because on ydl 6.0 ....
embedspu.sh is not in /usr/bin/
i installed ps3toolchain...
binutils from ps3toolchain installed in /usr/bin/ppu-embedspu....
you must rename ppu-embedspu to embedspu ... now you can install
unsolo
Posts: 155 Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway
Post
by unsolo » Sat Mar 15, 2008 10:26 pm
Its so great to se the one ppc only distribution not following the rules...
good to se you guys figured it out..
Don't do it alone.
ldesnogu
Posts: 94 Joined: Sat Apr 17, 2004 10:37 pm
Post
by ldesnogu » Sat Mar 15, 2008 10:51 pm
unsolo wrote: Its so great to se the one ppc only distribution not following the rules...
Is it ydl 6 that doesn't follow the rules or your hacked Gentoo distrib? :)
Laurent
unsolo
Posts: 155 Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway
Post
by unsolo » Sun Mar 16, 2008 1:25 am
embedspu was a part of the 2.0 SDK and i belive it is simply a pointer to embedspu.sh
spu-elf- was the naming defined to separate it from spu-lv1- to my knowledge
why change these names again is what i wonder.
Don't do it alone.
zzima
Posts: 10 Joined: Thu Mar 13, 2008 11:57 pm
Post
by zzima » Mon Mar 17, 2008 6:10 pm
master-crown wrote: i found the problem....
because on ydl 6.0 ....
embedspu.sh is not in /usr/bin/
i installed ps3toolchain...
binutils from ps3toolchain installed in /usr/bin/ppu-embedspu....
you must rename ppu-embedspu to embedspu ... now you can install
Yes, that helped. Thanks a lot. Compiling mplayer now.
hick
Posts: 1 Joined: Thu Mar 06, 2008 5:21 pm
Post
by hick » Wed Mar 19, 2008 10:13 am
I actually had the compiling all figured out for YDL 6 but I couldn't post as I didn't have an account on the board - it took a while to get it activated because I didn't get the activation email. Otherwise I could have saved you all alot of time.
Anyways, after compiling I couldn't get the xv driver or mplayer to play. They would fail right off the bat. I wasn't sure how to debug this. What tools do you use to debug xv drivers? What do you attach too? Is there a way to get more information for debugging purposes. The /var/log/Xorg logs don't seem to have anything useful.
YDL seems to be a much cleaner OS for the PS3 as far as working out of the box but not having this is the real holdback. I want to use my ps3 as a mythtv frontend.
Thanks,
HIck