[MPlayer-users] Compile error on ARM

Erik Auerswald auerswal at unix-ag.uni-kl.de
Thu Dec 20 20:24:17 CET 2012


Hi,

On 12/20/2012 06:20 PM, Oliver Seitz wrote:
> I just got a raspberry pi and tried to compile mplayer on it. Yes, I
> know the h264 hardware decoding will not work... anyway, I think it
> should compile, but:
>
> make -C ffmpeg libavcodec/libavcodec.a
> make[1]: Entering directory `/home/pi/mplayer/ffmpeg'
> CC libavcodec/arm/dsputil_init_arm.o
> libavcodec/arm/dsputil_init_arm.c: In function 'ff_dsputil_init_arm':
> libavcodec/arm/dsputil_init_arm.c:124:9: error: 'HAVE_VFP' undeclared
                                                   ^^^^^^^^^^
You probably need to define this to 0 or 1 somewhere (config.h)...
If you know if the Raspberry Pi has this feature or not, you can add the 
respective define ('#define HAVE_VFP 0' if not supported, '#define 
HAVE_VFP 1' otherwise) to config.h after running configure as a workaround.

> (first use in this function)
> libavcodec/arm/dsputil_init_arm.c:124:9: note: each undeclared
> identifier is reported only once for each function it appears in
> make[1]: *** [libavcodec/arm/dsputil_init_arm.o] Error 1
> make[1]: Leaving directory `/home/pi/mplayer/ffmpeg'
> make: *** [ffmpeg/libavcodec/libavcodec.a] Fehler 2
>
>
> It is a fresh svn checkout, ./configure without parameters.
>
> System is Raspbian wheezy, dist-upgraded today.
> I also did "apt-get build-dep mplayer"
>
> Is there a bug, or have I done something wrong? Never used an ARM-based
> system before...

FFmpeg's configure checks this feature, seems to be starting at line 
3487 of ffmpeg/configure (checkout from today). Something appropriate 
needs to be added to MPlayer's configure script to check the feature and 
#define HAVE_VFP accordingly.

I don't have an ARM system to test or even implement this.

HTH,
Erik


More information about the MPlayer-users mailing list