Building of libavcodec58 fails
Scott Hannahs via Fink-users <[email protected]>
| Newsgroups | gmane.os.apple.fink.general |
|---|---|
| Message-ID | <[email protected]> |
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;
^
1 error generated.
make: *** [/sw/src/fink.build/libavcodec58-4.0-shlibs-4.4-1/ffmpeg-4.4/ffbuild/common.mak:67: libavcodec/videotoolboxenc.o] Error 1
make: Leaving directory '/sw/src/fink.build/libavcodec58-4.0-shlibs-4.4-1/ffmpeg-4.4/finkbuild'
### execution of /tmp/fink.7asWP failed, exit code 2
### execution of /tmp/fink.dWhP1 failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-libavcodec58-4.0-shlibs-4.4-1
(Reading database ... 255886 files and directories currently installed.)
Removing fink-buildlock-libavcodec58-4.0-shlibs-4.4-1 ...
Failed: phase compiling: libavcodec58-4.0-shlibs-4.4-1 failed
…
Also include the following system information:
Package manager version: 0.45.3
Distribution version: selfupdate-git Sat Jul 10 11:49:33 2021, 10.11, x86_64
Trees: local/main stable/main local/injected
Xcode.app: 8.2.1
Xcode command-line tools: 8.2.0.0.1.1480973914
Max. Fink build jobs: 1
f
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.
-Scott
_______________________________________________
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