Opened 9 years ago
Last modified 8 years ago
#5530 new defect
compile error with --enable-opengl on osx
Reported by: | ponpon | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | build system |
Version: | unspecified | Keywords: | osx |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
compile error arise with --enable-opengl on osx, where there is glx.h file of macports.
the error doesnt appear, removing glx.h file.
glx.h is included in ffmpeg/libavdevice/opengl_enc.c
glx.h and opengl is installed when installing mesa with macports. mesa is used by xz, pkgconfig, flex, bison, indent, autoconf, automake, libtool, py27-libxml2, xorg-glproto, xorg-dri2proto, xorg-libxcb, xorg-libX11, xorg-libXext, xorg-libXdamage, xorg-libXfixes, xorg-libXi, xorg-libXmu, xorg-libXxf86vm.
probably, many macports users abandon to use --enable-opengl.
./configure --cc=clang-mp-3.7 --cxx=clang++-mp-3.7 --extra-cflags=" -I/opt/local/include " --extra-ldflags=" -L/opt/local/lib " --enable-opengl && make -j 8 . . . CC libavfilter/af_amerge.o libavdevice/opengl_enc.c:494:30: error: use of undeclared identifier 'glCompileShader' procs->glCompileShader = glCompileShader; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 4 warnings and 20 errors generated. make: *** [libavdevice/opengl_enc.o] Error 1 make: *** Waiting for unfinished jobs....
./configure --cc=clang-mp-3.7 --cxx=clang++-mp-3.7 --extra-cflags=" -ferror-limit=0 -I/opt/local/include " --extra-ldflags=" -L/opt/local/lib " --enable-opengl && make -j 8 . . . libavdevice/opengl_enc.c:499:70: error: use of undeclared identifier 'glVertexAttribPointer' procs->glVertexAttribPointer = (FF_PFNGLVERTEXATTRIBPOINTERPROC) glVertexAttribPointer; ^ CC libavfilter/af_afade.o CC libavfilter/af_afftfilt.o 4 warnings and 24 errors generated. make: *** [libavdevice/opengl_enc.o] Error 1 make: *** Waiting for unfinished jobs....
Attachments (2)
Change History (3)
by , 9 years ago
Attachment: | configure_make.log added |
---|
by , 9 years ago
Attachment: | configure_make_cflags_ferror-limit=0.log added |
---|
comment:1 by , 8 years ago
Component: | undetermined → build system |
---|---|
Keywords: | osx added |
Note:
See TracTickets
for help on using tickets.