fzwoch / obs-gstreamer

GStreamer OBS Studio plugin
GNU General Public License v2.0
349 stars 34 forks source link

Compilation failed on aarch64 #98

Closed AngryPenguinPL closed 1 year ago

AngryPenguinPL commented 1 year ago

Hi.

I'm having trouble compiling both this obs-gstreamer 0.4.0 and obs-vaapi on aarch64 using the Clang and GCC compiler. No idea if this issue is system related, compiler or package.

FAILED: obs-gstreamer.so.p/gstreamer.c.o 
DEBUG util.py:445:  /usr/bin/clang -Iobs-gstreamer.so.p -I. -I.. -I/usr/include/obs -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libunwind -I/usr/include/orc-0.4 -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Os -fomit-frame-pointer -g3 -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-all --param=ssp-buffer-size=4 -flto -fPIC -pthread -DHAVE_OBSCONFIG_H -DSIMDE_ENABLE_OPENMP '$<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:C_COMPILER_SUPPORTS_OPENMP_SIMD>>:-fopenmp-simd>' '$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:CXX_COMPILER_SUPPORTS_OPENMP_SIMD>>:-fopenmp-simd>' -MD -MQ obs-gstreamer.so.p/gstreamer.c.o -MF obs-gstreamer.so.p/gstreamer.c.o.d -o obs-gstreamer.so.p/gstreamer.c.o -c ../gstreamer.c
DEBUG util.py:445:  clang-15: error: no such file or directory: '$<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:C_COMPILER_SUPPORTS_OPENMP_SIMD>>:-fopenmp-simd>'
DEBUG util.py:445:  clang-15: error: no such file or directory: '$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:CXX_COMPILER_SUPPORTS_OPENMP_SIMD>>:-fopenmp-simd>'

Here is full build log: http://file-store.openmandriva.org/api/v1/file_stores/665f180fae9c79e6497ae4c6512b96395a7abef6.log?show=true

and here is similar error using GCC compiler: https://file-store.openmandriva.org/api/v1/file_stores/b128cd1d69582811c575ff9f7c7025ecf8221feb.log?show=true

Details OS: OpenMandriva Cooker/ROME Compiler: Clang 15.0.6, GCC 12.2.0 Linker: LLD architecture: aarch64

fzwoch commented 1 year ago

That sounds like a toolchain issue to me than anything else.

fzwoch commented 1 year ago

See https://github.com/obsproject/obs-studio/issues/7972