[MPlayer-dev-eng] [PATCH] Fix build error on OSX 10.9

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Oct 30 18:51:58 CET 2013


On Wed, Oct 30, 2013 at 02:06:16PM +0100, Johan Andersson wrote:
> On Wed, Oct 30, 2013 at 01:45:26PM +0100, Reimar Döffinger wrote:
> > Johan Andersson <j at i19.se> wrote:
> > >Hello
> > >
> > >With latest OSX 10.9 Mavericks mplayer fail to compile becuase of:
> > >libvo/vo_corevideo.m:472:11: error: use of undeclared identifier
> > >'GL_BLEND'
> > >        glEnable(GL_BLEND);
> > >                 ^
> > >libvo/vo_corevideo.m:473:2: warning: implicit declaration of function
> > >'glDisable' is invalid in C99 [-Wimplicit-function-declaration]
> > >        glDisable(GL_DEPTH_TEST);
> > >        ^
> > >libvo/vo_corevideo.m:473:12: error: use of undeclared identifier
> > >'GL_DEPTH_TEST'
> > >        glDisable(GL_DEPTH_TEST);
> > >
> > >Here is a patch to fix it
> > 
> > Thanks, but glut is not the right header to include for this.
> > Assuming vo_gl.c compiles, the right solution should be including one of the headers it or gl_common.c use.
> > 
> 
> Yes, you are right. vo_gl.c compiles. Replaced glut with OpenGL/gl.h and changed include to import.

Applied in r36500, thanks.


More information about the MPlayer-dev-eng mailing list