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

Johan Andersson j at i19.se
Wed Oct 30 14:06:16 CET 2013


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.

cheers
-- 
Johan Andersson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 00-fix-complication-osx-10.9v2.patch
Type: text/x-diff
Size: 365 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20131030/da63c5b0/attachment.bin>


More information about the MPlayer-dev-eng mailing list