[MPlayer-users] compilation failure on Ubuntu 11.04
mpatey at gmail.com
mpatey at gmail.com
Wed May 25 15:33:02 CEST 2011
Hi,
I get compile errors when I run:
./configure --enable-menu --codecsdir=/usr/local/lib/codecs
make
Here are the last few lines of the output from make:
cc -MD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
-Wredundant-decls -Werror-implicit-function-declaration
-Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization
-Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -O4
-march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-Ilibdvdread4 -I. -Iffmpeg -D_REENTRANT -I/usr/include/directfb
-I/usr/include/ -D_REENTRANT -I/usr/include/freetype2
-DFF_API_MAX_STREAMS=0 -I/usr/include/schroedinger-1.0
-I/usr/include/orc-0.4 -c -o libmpcodecs/vf_scale.o
libmpcodecs/vf_scale.c
libmpcodecs/vf_scale.c: In function 'scale':
libmpcodecs/vf_scale.c:401:9: warning: passing argument 2 of
'sws_scale' from incompatible pointer type
ffmpeg/libswscale/swscale.h:217:5: note: expected 'const uint8_t *
const*' but argument is of type 'uint8_t **'
libmpcodecs/vf_scale.c:406:9: warning: passing argument 2 of
'sws_scale' from incompatible pointer type
ffmpeg/libswscale/swscale.h:217:5: note: expected 'const uint8_t *
const*' but argument is of type 'uint8_t **'
libmpcodecs/vf_scale.c:408:9: warning: passing argument 2 of
'sws_scale' from incompatible pointer type
ffmpeg/libswscale/swscale.h:217:5: note: expected 'const uint8_t *
const*' but argument is of type 'uint8_t **'
libmpcodecs/vf_scale.c: In function 'get_sws_cpuflags':
libmpcodecs/vf_scale.c:565:32: error: 'SWS_CPU_CAPS_MMX' undeclared
(first use in this function)
libmpcodecs/vf_scale.c:565:32: note: each undeclared identifier is
reported only once for each function it appears in
libmpcodecs/vf_scale.c:566:32: error: 'SWS_CPU_CAPS_MMX2' undeclared
(first use in this function)
libmpcodecs/vf_scale.c:567:32: error: 'SWS_CPU_CAPS_3DNOW' undeclared
(first use in this function)
libmpcodecs/vf_scale.c:568:34: error: 'SWS_CPU_CAPS_ALTIVEC'
undeclared (first use in this function)
libmpcodecs/vf_scale.c: At top level:
libmpcodecs/vf_scale.c:660:3: warning: initialization discards
qualifiers from pointer target type
libmpcodecs/vf_scale.c:661:3: warning: initialization discards
qualifiers from pointer target type
libmpcodecs/vf_scale.c:662:3: warning: initialization discards
qualifiers from pointer target type
libmpcodecs/vf_scale.c:678:3: warning: initialization discards
qualifiers from pointer target type
libmpcodecs/vf_scale.c: In function 'get_sws_cpuflags':
libmpcodecs/vf_scale.c:569:1: warning: control reaches end of non-void function
make: *** [libmpcodecs/vf_scale.o] Error 1
I have tried running "make distclean" followed by "svn up" and then
"./configure.." and make as before, but I get the same error.
Also I have tried recompiling the latest source for ffmpeg and x264
without any luck.
Some selected version numbers from my system:
Ubuntu 11.04
2.6.38-8-generic-pae #42-Ubuntu SMP Mon Apr 11 05:17:09 UTC 2011 i686
i686 i386 GNU/Linux
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
GNU ld (GNU Binutils for Ubuntu) 2.21.0.20110327
GNU assembler (GNU Binutils for Ubuntu) 2.21.0.20110327
ffmpeg version git-N-30214-g39d9834, Copyright (c) 2000-2011 the
FFmpeg developers built on May 25 2011 10:40:50 with gcc 4.5.2
If anyone can help me or point me in the right direction it would be
much appreciated.
Matt
More information about the MPlayer-users
mailing list