Re: Building of libavcodec58 fails

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.general
Organization Snaggled Works
Message-ID <[email protected]>
On 7/17/21 7:00 PM, Scott Hannahs via Fink-users wrote:
> Trying to build ffmpeg on Mac OS 10.11
> 
> gcc -I. -Isrc/ -I/sw/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/sw/src/fink.build/libavcodec58-4.0-shlibs-4.4-1/ffmpeg-4.4/compat/dispatch
> _semaphore -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_avcodec -fno-stack-check -I/sw/lib/libspeex1/include -I/sw/include -I/opt/X11/include -std=c11 -Werror=par
> tial-availability -fomit-frame-pointer -fPIC -pthread -I/sw/include -I/sw/include -I/sw/include/bs2b -I/sw/include -I/sw/include -I/sw/include/freetype2 -I/sw/include
> /fribidi -I/sw/include -I/sw/include -I/sw/include -I/sw/include/openjpeg-2.1 -I/sw/include -I/sw/include/opus -I/sw/include/opus -I/sw/include -I/sw/include -I/sw/in
> clude -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/
> include -I/sw/include -I/sw/include -I/sw/include -I/sw/lib/libcdio-2.1/include -I/opt/X11/include -I/opt/X11/include -I/opt/X11/include -I/opt/X11/include -g -Wdecla
> ration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-
> cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-char-subscripts -O3 -fno-
> math-errno -fno-signed-zeros -mstack-alignment=16 -Qunused-arguments -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -I/sw/includ
> e/SDL2 -D_THREAD_SAFE   -MMD -MF libavcodec/videotoolboxenc.d -MT libavcodec/videotoolboxenc.o -c -o libavcodec/videotoolboxenc.o src/libavcodec/videotoolboxenc.c
> src/libavcodec/videotoolboxenc.c:1036:12: error: use of undeclared identifier 'TARGET_OS_OSX'
>      return TARGET_OS_OSX && TARGET_CPU_ARM64;
>             ^


> In trying to follow it back through the various header files, It looks to me like TARGET_OS_OSX should be defined, but I obviously missed something.  This is certainly trying to build for an Intel CPU, not ARM on such an old system.

I pushed upstream's fix for this issue. I only have 10.14 and up to 
test, so I never see the failure, but hopefully their fix is correct.

Hanspeter



_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.