[MPlayer-dev-eng] Altivec (again..),G3 and runtime detection..

Gustav Axelsson gustav.axelsson at swipnet.se
Sun May 8 18:28:01 CEST 2005


I can try it on my iBook G3 but how do I compile it? I think I have  
downloaded the files properly using
I tried ./configure and then make but make fails and the compile is  
aborted on line 150 of swscale_internal.c

In file included from swscale.c:72:
swscale_internal.h:150: error: parse error before "vector"
swscale_internal.h:150: warning: no semicolon at end of struct or union
swscale_internal.h:151: error: syntax error before "signed"
swscale_internal.h:152: error: syntax error before "signed"
swscale_internal.h:153: error: syntax error before "signed"
swscale_internal.h:154: error: syntax error before "signed"
swscale_internal.h:155: error: syntax error before "signed"
swscale_internal.h:156: error: syntax error before "unsigned"
swscale_internal.h:160: error: parse error before '}' token
swscale_internal.h:160: warning: data definition has no type or  
storage class
swscale_internal.h:163: error: parse error before '*' token
swscale_internal.h:164: error: parse error before '*' token
swscale.c:576: error: parse error before '*' token
swscale.c: In function `yuv2packedXinC':

and it goes on and on for like 100 more rows with errors and warnings  
in swscale.c, swscale_template.c and swscale_altivec_template.c

Is this because I have the wrong compiler (3.3) or is it something  
else that's missing?
I've tried the MPlayer v1.0pre7 source and the daily CVS snapshot  
source from the homepage but I cannot compile any of them :-(

I'm on Tiger, 10.4 with xcode installed.

Sorry if my questions are a bit stupid, I have only used fink before.

Gustav


8 maj 2005 kl. 18.06 skrev Jindrich Makovicka:

> Andrea Palmatè wrote:
>
>> Hi all,
>>
>> many G3 users are reporting to me strange crashes with mplayer and
>> altivec with runtime detection.
>> The altivec is not present on G3 and cannot not be used, but the Grim
>> Reaper (the program that intercept crashes on amiga os4) log tell us
>> that there is a crash on yuv2rgb_altivec_init_tables.
>>
>
> you can try this trivial patch, but i don't have anything resembling
> PPC, so i cannot even test the compilation :)
>
> -- 
> Jindrich Makovicka
> Index: swscale.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
> retrieving revision 1.156
> diff -u -r1.156 swscale.c
> --- swscale.c    24 Apr 2005 07:50:18 -0000    1.156
> +++ swscale.c    8 May 2005 16:00:31 -0000
> @@ -733,7 +733,7 @@
>  #endif
>
>  #ifdef ARCH_POWERPC
> -#ifdef HAVE_ALTIVEC
> +#if defined (HAVE_ALTIVEC) || defined (RUNTIME_CPUDETECT)
>  #define COMPILE_ALTIVEC
>  #endif //HAVE_ALTIVEC
>  #endif //ARCH_POWERPC
> @@ -1796,8 +1796,9 @@
>      yuv2rgb_c_init_tables(c, inv_table, srcRange, brightness,  
> contrast, saturation);
>      //FIXME factorize
>
> -#ifdef HAVE_ALTIVEC
> -    yuv2rgb_altivec_init_tables (c, inv_table, brightness,  
> contrast, saturation);
> +#ifdef COMPILE_ALTIVEC
> +    if (c->flags & SWS_CPU_CAPS_ALTIVEC)
> +        yuv2rgb_altivec_init_tables (c, inv_table, brightness,  
> contrast, saturation);
>  #endif
>      return 0;
>  }
> @@ -1986,7 +1987,7 @@
>              }
>          }
>
> -#ifdef HAVE_ALTIVEC
> +#ifdef COMPILE_ALTIVEC
>          if ((c->flags & SWS_CPU_CAPS_ALTIVEC) &&
>              ((srcFormat == IMGFMT_YV12 &&
>                (dstFormat == IMGFMT_YUY2 || dstFormat ==  
> IMGFMT_UYVY)))) {
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>




More information about the MPlayer-dev-eng mailing list