Re: ffmpeg failed (Sonoma14.4.1, Xcode & CLT 15.3))

Hanspeter Niederstrasser <[email protected]> Mon, 15 Apr 2024 19:44:43 -0500
Newsgroups gmane.os.apple.fink.beginners
Organization Snaggled Works
Message-ID <[email protected]>
On 4/15/24 10:34 AM, a_sk--- via Fink-beginners wrote:
> (One of ffmpeg package)
> $fink install libavcodec60-6.0-shlibs
> following 2 additional packages will be installed:
>   libavutil58-6.0-shlibs libswresample4-6.0-shlibs
> . . .
> src/libavdevice/opengl_enc.c:285:5: warning: 'glDeleteTextures' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
>      glDeleteTextures(4, opengl->texture_name);
> 
> src/libavdevice/opengl_enc.c:462:30: warning: 'glActiveTexture' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
>      procs->glActiveTexture = glActiveTexture;
> . . . .
> src/libavdevice/opengl_enc.c:856:9: warning: 'glGetError' is deprecated:
> . . . .
> src/libavdevice/opengl_enc.c:1246:5: warning: 'glGetError' is deprecated:
> . . . .
> src/libavdevice/opengl_enc.c:154:21: note: expanded from macro 'OPENGL_ERROR_CHECK'
>      if ((err_code = glGetError()) != GL_NO_ERROR) { \
>                      ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:1653:23: note: 'glGetError' has been explicitly marked deprecated here
> GLAPI GLenum APIENTRY glGetError (void) OPENGL_DEPRECATED(10.5, 10.14);
>                        ^
> 80 warnings and 1 error generated.
> make: *** [/opt/sw/src/fink.build/libavcodec60-6.0-shlibs-6.1.1-1/ffmpeg-6.1.1/ffbuild/common.mak:81: libavdevice/opengl_enc.o] error 1
> . . .
> Failed: phase compiling: libavcodec60-6.0-shlibs-6.1.1-1 failed
> . . .
> 
> Regards
> 
>> 2024/04/15 18:33、Hanspeter Niederstrasser <[email protected]>:
>>
>> On 4/14/24 10:11 AM, a_sk--- via Fink-beginners wrote:
>>> Hi Hanspeter Niederstrasser  — The maintainer of ffmpeg
>>> fink install ffmpeg
>>> following 8 additional packages will be installed:
>>>   libavcodec60-6.0-shlibs libavdevice60-6.0-shlibs libavfilter9-6.0-shlibs
>>>   libavformat60-6.0-shlibs libavutil58-6.0-shlibs libpostproc57-6.0-shlibs
>>>   libswresample4-6.0-shlibs libswscale7-6.0-shlibs
>>> . . .
>>> src/libavdevice/opengl_enc.c:1246:5: warning: 'glGetError' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
>>>      OPENGL_ERROR_CHECK(opengl);
>>> . . .
>>> src/libavdevice/opengl_enc.c:154:21: note: expanded from macro 'OPENGL_ERROR_CHECK'
>>>      if ((err_code = glGetError()) != GL_NO_ERROR) { \
>>>                      ^
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:1653:23: note: 'glGetError' has been explicitly marked deprecated here
>>> GLAPI GLenum APIENTRY glGetError (void) OPENGL_DEPRECATED(10.5, 10.14);
>>>                        ^
>>> 80 warnings and 1 error generated.
>>> Failed: phase compiling: libavcodec60-6.0-shlibs-6.1.1-1
>>> ## Almost the same "80 warnings and 1 error" generated for each of other 7 packages
>>> 0.45.99.git
>>> selfupdate-git Sun Apr 14 00:31:02 2024, 14.0, x86_64
>>> Max. Fink build jobs:  1
>>
>> That's a just a warning about the deprecated function glGetError(). What's the actual error ? Include the compiler command that failed and please don't send me the entire build log.

That longer snippet still doesn't contain an actual error message.  Look 
for the string "error: " (similar to how the warnings include the file 
name 'src/libavdevice/opengl_enc.c', some line numbers, then the error 
and error text.

Hanspeter

-- 
"...everything that living things do can be understood in terms of the
jigglings and wigglings of atoms."
   --Richard Feynman



_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners