meta-gtk-osx-gstreamer package not building on non-x86 processor because of ffmpeg
Hi all,
I failed to build the meta-gtk-osx-gstreamer package (my machine is an M2 running Ventura 13.4). There is a problem on nasm that ffmpeg depends on. A file (asm/warnings.c) is missing...
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -c -I/Users/gtk/gtk/inst/include -arch arm64 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch arm64 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=13 -std=c17 -Werror=unknown-warning-option -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -ffunction-sections -fdata-sections -fvisibility=hidden -Wall -W -pedantic -Wc99-compat -Wc99-extensions -Wno-long-long -Wno-shift-negative-value -Werror=implicit -Werror=missing-braces -Werror=return-type -Werror=trigraphs -Werror=pointer-arith -Werror=strict-prototypes -Werror=missing-prototypes -Werror=missing-declarations -Werror=comment -Werror=vla -DHAVE_CONFIG_H -I/Users/gtk/gtk/source/nasm-2.16.01 -I. -I/Users/gtk/gtk/source/nasm-2.16.01/include -I./include -I/Users/gtk/gtk/source/nasm-2.16.01/x86 -I./x86 -I/Users/gtk/gtk/source/nasm-2.16.01/asm -I./asm -I/Users/gtk/gtk/source/nasm-2.16.01/disasm -I./disasm -I/Users/gtk/gtk/source/nasm-2.16.01/output -I./output -o asm/warnings.o asm/warnings.c
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -c -I/Users/gtk/gtk/inst/include -arch arm64 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch arm64 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=13 -std=c17 -Werror=unknown-warning-option -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -ffunction-sections -fdata-sections -fvisibility=hidden -Wall -W -pedantic -Wc99-compat -Wc99-extensions -Wno-long-long -Wno-shift-negative-value -Werror=implicit -Werror=missing-braces -Werror=return-type -Werror=trigraphs -Werror=pointer-arith -Werror=strict-prototypes -Werror=missing-prototypes -Werror=missing-declarations -Werror=comment -Werror=vla -DHAVE_CONFIG_H -I/Users/gtk/gtk/source/nasm-2.16.01 -I. -I/Users/gtk/gtk/source/nasm-2.16.01/include -I./include -I/Users/gtk/gtk/source/nasm-2.16.01/x86 -I./x86 -I/Users/gtk/gtk/source/nasm-2.16.01/asm -I./asm -I/Users/gtk/gtk/source/nasm-2.16.01/disasm -I./disasm -I/Users/gtk/gtk/source/nasm-2.16.01/output -I./output -o disasm/ndisasm.o /Users/gtk/gtk/source/nasm-2.16.01/disasm/ndisasm.c
clang: error: no such file or directory: 'asm/warnings.c'
clang: error: no input files
make[1]: *** [Makefile:85: asm/warnings.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/Users/gtk/.cache/jhbuild/build/nasm-2.16.01'
make: *** [Makefile:165: all] Error 2
*** Error during phase build of nasm: ########## Error running make -j 13 *** [9/12]
- nasm being an x86 assembler, it will not be useful on an Apple non-x86 processor anyway right ?
- can the ffmpeg library be built for a non-x86 system ?
- if I want to build Gstreamer without ffmpeg, I should modify the gtk-osx-gstreamer.modules file and have jhbuild somehow point to my local copy right ?
- would it be possible to have Gstreamer built automatically without ffmpeg when on a non-x86 platform ?
Thanks for your kind help.
David.