Error building openh264 How to ideally fix or skip over it?
I run meson, then run ninja. Ninja compiles most of the way then fails once it reaches openh264. It prevents me from building the 'bad-plugins' plugins, one of which I do need to use.
Linking static target subprojects/openh264/codec/common/libcommon.a.
FAILED: subprojects/openh264/codec/common/libcommon.a
lib "/NOLOGO" /MACHINE:x64 /OUT:subprojects/openh264/codec/common/libcommon.a @subprojects/openh264/codec/common/libcommon.a.rsp
subprojects\openh264\codec\common\8b33b39@@common@sta\cpuid.o : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'
Compiling C object subprojects/gst-plugins-bad/ext/webrtc/4b7a407@@gstwebrtc@sha/webrtcdatachannel.c.obj.
../subprojects/gst-plugins-bad/ext/webrtc/webrtcdatachannel.c(50): warning C4273: 'gst_webrtc_data_channel_get_type': inconsistent dll linkage
C:\gstreamer\gst-build\subprojects\gst-plugins-bad\ext\webrtc\webrtcdatachannel.h(31): note: see previous definition of 'gst_webrtc_data_channel_get_type'
Compiling C++ object subprojects/openh264/codec/decoder/14b7291@@decoder@sta/core_src_deblocking.cpp.obj.
ninja: build stopped: subcommand failed.
I'm working with h264 and though not currently using openh264.. would be nice to have and it'd be nice to fix for those who do need it. However, I'd be just about as happy to skip it.
Can I get meson to compile this correctly for x64? Meson/ninja works fine when package is pulled directly from: https://github.com/cisco/openh264 However, the Gstreamer version has the above issue. I am compiling it using Visual Studio Developer x64 command prompt. I believe one thing that changed is that I used make (make ARCH=x86_64) myself in that directory, plus meson.build files are significantly different.
I see that I can use 'meson_options.txt' to skip, but looks like I can't skip individuals plugins, like openh264, due to an inability to write options that are meant for meson subprojects. I suppose could fork the code myself and fix and work from that fork.