[MPlayer-users] source fails to build: libvo/vo_dfbmga.c:1412:11: error: 'VOCTRL_GUI_NOWINDOW' undeclared

Erik Auerswald auerswal at unix-ag.uni-kl.de
Sun Mar 2 14:46:51 CET 2014


Hello Arthur,

On 03/02/2014 02:24 PM, Arthur Marsh wrote:
> Having this problem:
>
> At revision 36962.
>
> gcc-4.9 -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses
> -Wpointer-arith -Wredundant-decls -Wstrict-prototypes
> -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
> -Wdeclaration-after-statement -std=gnu99
> -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112
> -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native
> -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
> -Ilibdvdread4  -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
> -I/usr/include/directfb -I/usr/include/     -D_REENTRANT
> -I/usr/include/freetype2 -I/usr/include/bs2b   -I/usr/include/dirac
> -I/usr/include/schroedinger-1.0 -I/usr/include/orc-0.4   -c -o
> libvo/vo_dfbmga.o libvo/vo_dfbmga.c
> libvo/vo_dfbmga.c: In function 'control':
> libvo/vo_dfbmga.c:1412:11: error: 'VOCTRL_GUI_NOWINDOW' undeclared
> (first use in this function)
>        case VOCTRL_GUI_NOWINDOW:
>             ^
> libvo/vo_dfbmga.c:1412:11: note: each undeclared identifier is reported
> only once for each function it appears in
> make: *** [libvo/vo_dfbmga.o] Error 1
>
> I use a radeon graphics card, so is there any way to prevent this
> mga-specific code from being attempted to be built?

You can use the attached one-line patch to fix the build.

HTH,
Erik

-------------- next part --------------
Index: libvo/vo_dfbmga.c
===================================================================
--- libvo/vo_dfbmga.c	(revision 36962)
+++ libvo/vo_dfbmga.c	(working copy)
@@ -1409,7 +1409,6 @@
 {
      switch (request) {
      case VOCTRL_GUISUPPORT:
-     case VOCTRL_GUI_NOWINDOW:
           return VO_TRUE;
 
      case VOCTRL_QUERY_FORMAT:


More information about the MPlayer-users mailing list