[MPlayer-users] fixes for compiling CVS on an Alpha (lx164 21164)
Gregory P. Smith
greg at electricrain.com
Fri Jul 4 09:10:55 CEST 2003
In order to get the current CVS version of mplayer to compile on my
Alpha I had to do the following three things:
1) libmpeg2/idct_alpha.c will fail to compile on 21164 systems with
gcc complaining that various instructions are not supported on
the ev56 architecture. Execute the failing gcc command by hand
and change -mcpu=ev56 to -mcpu=ev6; it seems to work anyways on
my system (does playback not use that code or is the gcc asm error
wrong? [both gcc 3.2.2 and 2.95.4 give the error]).
2) After running configure, edit config.mak and add -fPIC to the
OPTFLAGS setting. Otherwise you'll get gp-register errors
during the final link. Objects destined for a shared library
should *always* be compiled with -fPIC. (it doesn't matter on
some platforms; the Alpha is one where it does)
Both of the above could be fixed with configure.in or Makefile edits
i'm sure; i didn't investigate how to do that.
3) The following patch fixes the bitstream.h compile problem:
diff -u -r1.7 bitstream.h
--- liba52/bitstream.h 20 Jun 2003 13:10:42 -0000 1.7
+++ liba52/bitstream.h 4 Jul 2003 06:53:04 -0000
@@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*/
-#if defined(__sparc__) || defined(hpux)
+#if defined(__sparc__) || defined(__alpha__) || defined(hpux)
/*
* the alt bitstream reader performs unaligned memory accesses; that
* doesn't work
* on sparc/hpux. For now, disable ALT_BITSTREAM_READER.
More information about the MPlayer-users
mailing list