VS 2017 X64 build issue - 'glib' failed to build
Below is the log:
C:\gstreamer\gst-build>ninja -C build
ninja: Entering directory `build'
[4/6363] Compiling C object subprojects/orc/orc/b32d72c@@orc-0.4@sha/orcemulateopcodes.c.obj
../subprojects/orc/orc/orcemulateopcodes.c(4899): warning C4244: '=': conversion from 'orc_int32' to 'float', possible loss of data
../subprojects/orc/orc/orcemulateopcodes.c(5282): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
[44/6363] Linking target subprojects/orc/orc/orc-0.4-0.dll
Creating library subprojects\\orc\\orc\\orc-0.4.lib and object subprojects\\orc\\orc\\orc-0.4.exp
[55/6363] Compiling C object subprojects/orc/testsuite/099ac2f@@memcpy_speed@exe/memcpy_speed.c.obj
../subprojects/orc/testsuite/memcpy_speed.c(98): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
../subprojects/orc/testsuite/memcpy_speed.c(100): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
../subprojects/orc/testsuite/memcpy_speed.c(107): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
[65/6363] Linking target subprojects/orc/orc-test/orc-test-0.4-0.dll
Creating library subprojects\\orc\\orc-test\\orc-test-0.4.lib and object subprojects\\orc\\orc-test\\orc-test-0.4.exp
[79/6363] Compiling C object subprojects/orc/examples/4b8f1c9@@example2@exe/example2.c.obj
../subprojects/orc/examples/example2.c(24): warning C4244: 'function': conversion from 'double' to 'int', possible loss of data
[127/6363] Compiling C object subprojects/glib/glib/gnulib/8d6acdd@@gnulib@sta/vasnprintf.c.obj
../subprojects/glib/glib/gnulib/vasnprintf.c(2452): warning C4146: unary minus operator applied to unsigned type, result still unsigned
../subprojects/glib/glib/gnulib/vasnprintf.c(2971): warning C4146: unary minus operator applied to unsigned type, result still unsigned
../subprojects/glib/glib/gnulib/vasnprintf.c(3476): warning C4146: unary minus operator applied to unsigned type, result still unsigned
../subprojects/glib/glib/gnulib/vasnprintf.c(4658): warning C4146: unary minus operator applied to unsigned type, result still unsigned
[136/6363] Linking target subprojects/proxy-libintl/intl.dll
Creating library subprojects\\proxy-libintl\\intl.lib and object subprojects\\proxy-libintl\\intl.exp
[184/6363] Compiling C object subprojects/glib/glib/2a3f398@@glib-2.0@sha/gcharset.c.obj
../subprojects/glib/glib/gcharset.c(78): warning C4090: 'function': different 'const' qualifiers
[186/6363] Compiling C object subprojects/glib/glib/2a3f398@@glib-2.0@sha/gatomic.c.obj
../subprojects/glib/glib/gatomic.c(603): warning C4090: 'initializing': different 'volatile' qualifiers
[196/6363] Compiling C object subprojects/glib/glib/2a3f398@@glib-2.0@sha/gstrfuncs.c.obj
../subprojects/glib/glib/gstrfuncs.c(1178): warning C4146: unary minus operator applied to unsigned type, result still unsigned
[201/6363] Compiling C object subprojects/glib/glib/2a3f398@@glib-2.0@sha/gthread-win32.c.obj
../subprojects/glib/glib/gthread-win32.c(310): warning C4311: 'type cast': pointer truncation from 'gpointer' to 'DWORD'
../subprojects/glib/glib/gthread-win32.c(315): warning C4311: 'type cast': pointer truncation from 'gpointer' to 'DWORD'
../subprojects/glib/glib/gthread-win32.c(346): warning C4022: '_InterlockedCompareExchangePointer': pointer mismatch for actual parameter 2
../subprojects/glib/glib/gthread-win32.c(523): warning C4133: 'function': incompatible types - from 'DWORD *' to 'const ULONG_PTR *'
[212/6363] Compiling C object subprojects/glib/glib/2a3f398@@glib-2.0@sha/goption.c.obj
../subprojects/glib/glib/goption.c(920): warning C4090: 'function': different 'const' qualifiers
[228/6363] Compiling C object subprojects/glib/glib/2a3f398@@glib-2.0@sha/gthreadpool.c.obj
../subprojects/glib/glib/gthreadpool.c(343): warning C4146: unary minus operator applied to unsigned type, result still unsigned
../subprojects/glib/glib/gthreadpool.c(780): warning C4146: unary minus operator applied to unsigned type, result still unsigned
../subprojects/glib/glib/gthreadpool.c(785): warning C4146: unary minus operator applied to unsigned type, result still unsigned
[238/6363] Compiling C object subprojects/glib/glib/2a3f398@@glib-2.0@sha/gvariant.c.obj
../subprojects/glib/glib/gvariant.c(836): warning C4090: 'function': different 'const' qualifiers
[240/6363] Compiling C object subprojects/glib/glib/2a3f398@@glib-2.0@sha/gvariant-serialiser.c.obj
../subprojects/glib/glib/gvariant-serialiser.c(690): warning C4146: unary minus operator applied to unsigned type, result still unsigned
../subprojects/glib/glib/gvariant-serialiser.c(725): warning C4146: unary minus operator applied to unsigned type, result still unsigned
../subprojects/glib/glib/gvariant-serialiser.c(991): warning C4146: unary minus operator applied to unsigned type, result still unsigned
[245/6363] Compiling C object subprojects/glib/glib/2a3f398@@glib-2.0@sha/gvarianttypeinfo.c.obj
../subprojects/glib/glib/gvarianttypeinfo.c(541): warning C4146: unary minus operator applied to unsigned type, result still unsigned
[248/6363] Compiling C object subprojects/glib/glib/tests/3a8b171@@gvariant@exe/gvariant.c.obj
../subprojects/glib/glib/tests/gvariant.c(1196): warning C4146: unary minus operator applied to unsigned type, result still unsigned
../subprojects/glib/glib/tests/gvariant.c(1683): warning C4146: unary minus operator applied to unsigned type, result still unsigned
../subprojects/glib/glib/tests/gvariant.c(3165): warning C4090: 'function': different 'const' qualifiers
[256/6363] Compiling C object subprojects/glib/glib/tests/3a8b171@@list@exe/list.c.obj
../subprojects/glib/glib/tests/list.c(528): warning C4312: 'type cast': conversion from 'unsigned int' to 'gpointer' of greater size
[266/6363] Linking target subprojects/glib/glib/glib-2.0-0.dll
Creating library subprojects\\glib\\glib\\glib-2.0.lib and object subprojects\\glib\\glib\\glib-2.0.exp
[326/6363] Compiling C object subprojects/glib/glib/tests/3a8b171@@strfuncs@exe/strfuncs.c.obj
../subprojects/glib/glib/tests/strfuncs.c(1647): warning C4146: unary minus operator applied to unsigned type, result still unsigned
[332/6363] Compiling C object subprojects/glib/glib/tests/3a8b171@@testing@exe/testing.c.obj
../subprojects/glib/glib/tests/testing.c(303): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
../subprojects/glib/glib/tests/testing.c(316): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
../subprojects/glib/glib/tests/testing.c(322): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
../subprojects/glib/glib/tests/testing.c(365): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
../subprojects/glib/glib/tests/testing.c(1270): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
../subprojects/glib/glib/tests/testing.c(1271): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
[352/6363] Compiling C object subprojects/glib/glib/tests/3a8b171@@once@exe/once.c.obj
../subprojects/glib/glib/tests/once.c(120): warning C4090: 'function': different 'const' qualifiers
[354/6363] Compiling C object subprojects/glib/glib/tests/3a8b171@@node@exe/node.c.obj
../subprojects/glib/glib/tests/node.c(48): warning C4311: 'type cast': pointer truncation from 'gpointer' to 'long'
../subprojects/glib/glib/tests/node.c(306): warning C4311: 'type cast': pointer truncation from 'gpointer' to 'long'
[410/6363] Compiling C object subprojects/glib/glib/tests/3a8b171@@utf8-pointer@exe/utf8-pointer.c.obj
../subprojects/glib/glib/tests/utf8-pointer.c(54): warning C4090: 'function': different 'const' qualifiers
[416/6363] Linking target subprojects/glib/glib/tests/regex.exe
Creating library subprojects/glib/glib/tests/regex.lib and object subprojects/glib/glib/tests/regex.exp
[441/6363] Linking target subprojects/glib/gthread/gthread-2.0-0.dll
Creating library subprojects\\glib\\gthread\\gthread-2.0.lib and object subprojects\\glib\\gthread\\gthread-2.0.exp
[446/6363] Compiling C object subprojects/glib/gobject/1c9d8d1@@gobject-2.0@sha/gclosure.c.obj
FAILED: subprojects/glib/gobject/1c9d8d1@@gobject-2.0@sha/gclosure.c.obj
cl @subprojects/glib/gobject/1c9d8d1@@gobject-2.0@sha/gclosure.c.obj.rsp
../subprojects/glib/gobject/gclosure.c(28): fatal error C1083: Cannot open include file: 'ffi.h': No such file or directory
[450/6363] Generating glib_enumtypes_c with a meson_exe.py custom command
ninja: build stopped: subcommand failed.
Edited by Tim-Philipp Müller