[MPlayer-cvslog] r35982 - in trunk/libvo: gl_common.c gl_common.h gl_compat.h matrixview.c vo_gl.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Mar 16 20:21:28 CET 2013


On Sat, Mar 16, 2013 at 02:56:57PM -0400, Josh wrote:
> On 3/16/2013 14:51, Josh wrote:
> >ClearDepthf doesn't seem to be part of gl.h at least on mingw
> >(mingw-w64) but it's in glext.h which isn't included in the toolchain by
> >default. I used the following workaround in gl_common.h:
> >
> >#define GL_GLEXT_PROTOTYPES
> >#include "gl/glext.h"
> >
> >
> >/mingw/bin/i686-w64-mingw32-gcc.exe -MD -MP -Wall -Wno-switch
> >-Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes
> >-Wmissing-prototypes -Wdisa
> >bled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
> >-std=gnu99 -Werror-implicit-function-declaration -O4 -march=i486
> >-mtune=generic -pipe -ffast-m
> >ath -fomit-frame-pointer -fno-tree-vectorize -D_LARGEFILE_SOURCE
> >-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4
> >-D__USE_MINGW_ANSI_STDIO=1 -I. -Iffm
> >peg -I/mingw/src/live -fno-common  -I/mingw/include/
> >-I/mingw/include/freetype2 -I/mingw/include
> >-IE:/Buildsys/MinGW/include/opus   -IE:/Buildsys/MinGW/include
> >    -c -o libvo/gl_common.o libvo/gl_common.c
> >libvo/gl_common.c:434:1: error: 'glClearDepthf' undeclared here (not in
> >a function)
> >make: *** [libvo/gl_common.o] Error 1
> >_______________________________________________
> >MPlayer-cvslog mailing list
> >MPlayer-cvslog at mplayerhq.hu
> >https://lists.mplayerhq.hu/mailman/listinfo/mplayer-cvslog
> >
> >
> 
> Well it made that part happy but not at the very end:
> 
> libvo/gl_common.o:gl_common.c:(.rdata+0x339c): undefined reference
> to `glClearDepthf at 4'

Not surprising.
I "fixed" it by changing it back and assuming the GLdouble == double.
It's only used for matrixview anyway, doubt people will be particularly
mad if it doesn't work on some strange OpenGL implementations.


More information about the MPlayer-cvslog mailing list