[MPlayer-users] Bug report on cross compiling Mplayer with Tremor codec for sharp zaurus 5600

cmisip cmisip at insightbb.com
Mon Jan 12 03:33:20 CET 2004


Build System :

Redhat 9
kernel 2.4.20-20.9
libc-2.3.2.so
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
GNU ld version 2.13.90.0.18 20030206
GNU assembler 2.13.90.0.18 20030206

Cross compile environment:
kernel 2.4.18-rmk7-pxa3-embedix
libc-2.2.4.so
gcc version 2.95.3 20010315 (release)
GNU ld version 2.11.2 (with BFD 2.11.2)
GNU assembler 2.11.2

Trying to compile MPlayer cvs Jan 11, 2004

I had to change Makefile to allow codec-cfg to compile using the build
gcc and let everything else compile using the arm-linux-gcc.

Without the --enable-tremor option, everything compiles fine and a
mplayer binary works on the zaurus 5600. It even compiles with
--enable-mad or --enable-vorbis.

With the --enable-tremor option, I get the following error :

Project/binaries/usr/local/include  -I../loader 
-I/home/cmisip/kernelzaurus/MPlayerProject/binaries/usr/local/include     -o demux_ogg.o demux_ogg.c
demux_ogg.c: In function `demux_ogg_add_sub':
demux_ogg.c:217: warning: initialization from incompatible pointer type
demux_ogg.c: In function `demux_ogg_read_packet':
demux_ogg.c:320: warning: assignment from incompatible pointer type
demux_ogg.c:321: invalid operands to binary &
demux_ogg.c:370: warning: assignment from incompatible pointer type
demux_ogg.c:374: invalid operands to binary &
demux_ogg.c:375: invalid operands to binary &
demux_ogg.c:376: warning: assignment from incompatible pointer type
demux_ogg.c:381: invalid operands to binary &
demux_ogg.c:388: invalid operands to binary |
demux_ogg.c: In function `demux_ogg_add_packet':
demux_ogg.c:414: invalid operands to binary &
demux_ogg.c:437: invalid operands to binary -
demux_ogg.c:438: invalid operands to binary -
demux_ogg.c: In function `demux_ogg_scan_stream':
demux_ogg.c:494: warning: initialization makes pointer from integer
without a cast
demux_ogg.c:551: warning: initialization makes pointer from integer
without a cast
demux_ogg.c: In function `demux_ogg_open':
demux_ogg.c:609: warning: assignment makes pointer from integer without
a cast
demux_ogg.c:648: warning: passing arg 1 of `strlen' from incompatible
pointer type
demux_ogg.c:648: warning: passing arg 1 of `strlen' from incompatible
pointer type
demux_ogg.c:648: warning: passing arg 1 of `strlen' from incompatible
pointer type
demux_ogg.c:648: warning: passing arg 1 of `strcmp' from incompatible
pointer type
demux_ogg.c:648: warning: passing arg 1 of `strncmp' from incompatible
pointer type
demux_ogg.c:703: warning: passing arg 1 of `strlen' from incompatible
pointer type
demux_ogg.c:703: warning: passing arg 1 of `strlen' from incompatible
pointer type
demux_ogg.c:703: warning: passing arg 1 of `strlen' from incompatible
pointer type
demux_ogg.c:703: warning: passing arg 1 of `strcmp' from incompatible
pointer type
demux_ogg.c:703: warning: passing arg 1 of `strncmp' from incompatible
pointer type
demux_ogg.c:713: warning: passing arg 1 of `strlen' from incompatible
pointer type
demux_ogg.c:713: warning: passing arg 1 of `strlen' from incompatible
pointer type
demux_ogg.c:713: warning: passing arg 1 of `strlen' from incompatible
pointer type
demux_ogg.c:713: warning: passing arg 1 of `strcmp' from incompatible
pointer type
demux_ogg.c:713: warning: passing arg 1 of `strncmp' from incompatible
pointer type
demux_ogg.c:721: aggregate value used where an integer was expected
demux_ogg.c:721: aggregate value used where an integer was expected
demux_ogg.c:722: aggregate value used where an integer was expected
demux_ogg.c:722: aggregate value used where an integer was expected
demux_ogg.c:761: invalid operands to binary &
demux_ogg.c: In function `demux_ogg_fill_buffer':
demux_ogg.c:927: warning: assignment makes pointer from integer without
a cast
demux_ogg.c: In function `init_avi_with_ogg':
demux_ogg.c:1017: warning: assignment makes pointer from integer without
a cast
demux_ogg.c: In function `demux_ogg_seek':
demux_ogg.c:1144: warning: initialization makes pointer from integer
without a cast
demux_ogg.c:1178: invalid operands to binary &
make[1]: *** [demux_ogg.o] Error 1
make[1]: Leaving directory
`/home/cmisip/kernelzaurus/MPlayerProject/Mplayercvs/main/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Error 2


Any ideas ?

Thanks,

cmisip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h
Type: text/x-c-header
Size: 12844 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20040111/6f5422d6/attachment.bin>
-------------- next part --------------
# -------- Generated by configure -----------

LANG = C
LANGUAGES = en
TARGET_OS = Linux
DESTDIR =
prefix = $(DESTDIR)/usr/local
BINDIR = $(DESTDIR)/usr/local/bin
DATADIR = $(DESTDIR)/usr/local/share/mplayer
MANDIR = $(DESTDIR)/usr/local/man
CONFDIR = $(DESTDIR)/usr/local/etc/mplayer
LIBDIR = $(DESTDIR)/usr/local/lib
#AR = ar
CC = /usr/local/bin/arm-linux-gcc
AWK = 
RANLIB = ranlib
INSTALL = install
# OPTFLAGS = -O4     -pipe -fomit-frame-pointer -ffast-math
EXTRA_INC = -I/home/cmisip/kernelzaurus/MPlayerProject/binaries/usr/local/include 
OPTFLAGS = -O4   -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT $(EXTRA_INC)
STRIPBINARIES = yes



MPLAYER_NETWORK = yes
STREAMING_LIVE_DOT_COM = no
MPLAYER_NETWORK_LIB = -lnsl 
DVBIN = no
VIDIX = no
SHARED_PP = no
CONFIG_PP = yes
CONFIG_RISKY = yes
CONFIG_MP3LAME = 
LIBMENU = no
I18NLIBS = 
MATROSKA = no
MATROSKA_LIB = 

OPENDIVX = no

UNRARLIB = yes
HAVE_FFPOSTPROCESS = yes
PNG = no
JPEG = no
GIF = no

EXTRA_LIB = -L/home/cmisip/kernelzaurus/MPlayerProject/binaries/usr/local/lib
Z_LIB =  -static 
HAVE_MLIB = no
WIN32_LIB = 
STATIC_LIB = -static

X11_INC = 
X11DIR = 

HAVE_XVMC_ACCEL = no

# for libavcodec:
SRC_PATH=.
LIBPREF=lib
LIBSUF=.a
SLIBPREF=lib
SLIBSUF=.so

# video output
X_LIB =        -lmad -lnsl
GGI_LIB = 
MLIB_LIB =  
MLIB_INC = 
DXR2_INC = 
DVB_INC = 
PNG_LIB = 
JPEG_LIB = 
GIF_LIB = 
SDL_LIB = 
SVGA_LIB = 
AA_LIB = 

# audio output
ALSA_LIB = 
NAS_LIB = 
ARTS_LIB = 
ARTS_INC = 
ESD_LIB = 
ESD_INC = 
SGIAUDIO_LIB = 

# input/demuxer/codecs
TERMCAP_LIB = 
LIRC_LIB = 
LIRCC_LIB = 
DVDREAD_LIB = 
DVDKIT = no
DVDKIT2 = 
DVDKIT_SHARED = no
SDL_INC = 
W32_DEP = 
W32_LIB = 
DS_DEP = 
DS_LIB = 
AV_DEP = libavcodec/libavcodec.a
AV_LIB = libavcodec/libavcodec.a
ZORAN = no
FAME = no
FAME_LIB = 
MP1E_DEP = 
MP1E_LIB = 
ARCH_LIB =   -Lpthread -ldl -rdynamic 
XVID = no
XVID_INC = 
XVID_LIB = 
DECORE_LIB =  
MENCODER = no
ENCORE_LIB =   
DIRECTFB_INC = 
DIRECTFB_LIB = 
CDPARANOIA_INC = 
CDPARANOIA_LIB = 
FREETYPE_INC = 
FREETYPE_LIB = 
FONTCONFIG_INC = 
FONTCONFIG_LIB = 
FRIBIDI_INC = 
FRIBIDI_LIB = 
LIBLZO_LIB= 
MAD_LIB = -lmad
VORBIS_LIB = -lvorbisidec 
THEORA_LIB = 
FAAD_LIB = 
INTERNAL_FAAD = no
SMBSUPPORT_LIB = 
XMMS_PLUGINS = no
XMMS_LIB = 
MACOSX = no
MACOSX_FRAMEWORKS = 
FLAC_LIB = -Llibmpflac -lmpflac
MPFLAC = full

# --- Some stuff for autoconfigure ----
TARGET_ARCH_ARMV4L = yes
TARGET_CYGWIN = no
TARGET_MINGW32 = no
TARGET_CPU=arm
TARGET_MMX = 
TARGET_MMX2 = 
TARGET_3DNOW = 
TARGET_3DNOWEX = 
TARGET_SSE = 
TARGET_ALTIVEC = 

# --- GUI stuff ---
GTKLIB = -static 
GLIBLIB = -static  
GTK_LIBS =  -static 
GUI = no
DEBUG = -DDEBUG



More information about the MPlayer-users mailing list