spu-medialib 214 Makefile error?

"A collection of spu programs to accelerate media related applications for the CellBE ( PS3 ) platform" - unsolo

Moderator: unsolo

Post Reply
zzima
Posts: 10
Joined: Thu Mar 13, 2008 11:57 pm

spu-medialib 214 Makefile error?

Post by zzima »

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:

Code: Select all

%.eo: %
        $&#40;EMBEDSPU&#41; $<_handle $< $@
# ugly workaround to make libtool happy
        cp $@ [email protected]

Any ideas?
ldesnogu
Posts: 94
Joined: Sat Apr 17, 2004 10:37 pm

Re: spu-medialib 214 Makefile error?

Post by ldesnogu »

zzima wrote:

Code: Select all

spu_yuv2argb_scaler_handle spu_yuv2argb_scaler spu_yuv2argb_scaler.eo
make&#91;1&#93;&#58; spu_yuv2argb_scaler_handle&#58; Command not found
make&#91;1&#93;&#58; *** &#91;spu_yuv2argb_scaler.eo&#93; Error 127
make&#91;1&#93;&#58; Leaving directory `/usr/src/spu-medialib/spu/src'
make&#58; *** &#91;all-recursive&#93; Error 1
While looking at Makefile in spu/src:

Code: Select all

%.eo&#58; %
        $&#40;EMBEDSPU&#41; $<_handle $< $@
# ugly workaround to make libtool happy
        cp $@ [email protected]
Any ideas?
Hypothesis: is EMBEDSPU variable defined in the makefile?
Laurent
zzima
Posts: 10
Joined: Thu Mar 13, 2008 11:57 pm

Re: spu-medialib 214 Makefile error?

Post by zzima »

ldesnogu wrote:
zzima wrote:

Code: Select all

spu_yuv2argb_scaler_handle spu_yuv2argb_scaler spu_yuv2argb_scaler.eo
make&#91;1&#93;&#58; spu_yuv2argb_scaler_handle&#58; Command not found
make&#91;1&#93;&#58; *** &#91;spu_yuv2argb_scaler.eo&#93; Error 127
make&#91;1&#93;&#58; Leaving directory `/usr/src/spu-medialib/spu/src'
make&#58; *** &#91;all-recursive&#93; Error 1
While looking at Makefile in spu/src:

Code: Select all

%.eo&#58; %
        $&#40;EMBEDSPU&#41; $<_handle $< $@
# ugly workaround to make libtool happy
        cp $@ [email protected]
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 »

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 »

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 »

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 »

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 »

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 »

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 »

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
Post Reply