Missing ssl.h when building on Windows
Similar to #143 (closed) I needed to copy the openssl headers into the build tree (I put them in gst-build\build\subprojects\glib-networking
) in order to get the build to work.
OS: Windows 10 Pro 10.0.19042 x64 Visual Studio 2019 Developer Command Prompt v16.8.6
The meson
output did seem to detect openssl:
|Executing subproject glib-networking method meson
|
|Project name: glib-networking
|Project version: 2.62.4
|C compiler for the host machine: cl (msvc 19.28.29337 "Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29337 for x64")
|C linker for the host machine: link link 14.28.29337.0
|Dependency glib-2.0 found: YES 2.62.6 (cached)
|Dependency gio-2.0 found: YES 2.62.6 (cached)
|Dependency gobject-2.0 found: YES 2.62.6 (cached)
|Dependency gmodule-2.0 found: YES 2.62.6 (cached)
|Run-time dependency libproxy-1.0 found: NO (tried pkgconfig and cmake)
|Run-time dependency gsettings-desktop-schemas found: NO (tried pkgconfig and cmake)
|Run-time dependency gnutls found: NO (tried pkgconfig and cmake)
|Dependency openssl found: YES 1.0.2o (cached)
|Configuring config.h using configuration
|Program gio-querymodules found: NO
|Message:
|
| gnutls support: false
| openssl support: true
| libproxy support: false
| GNOME proxy support: false
|
|Build targets in project: 1735
|Subproject glib-networking finished.
But then when building failed two steps from the end:
LINK : warning LNK4217: symbol 'gst_validate_scenario_deinit' defined in 'gst-validate-scenario.c.obj' is imported by 'validate.c.obj' in function 'gst_validate_deinit'
LINK : warning LNK4217: symbol 'gst_validate_override_registry_preload' defined in 'gst-validate-override-registry.c.obj' is imported by 'validate.c.obj' in function 'gst_validate_init'
[8333/8483] Linking target subprojects/gst-devtools/validate/plugins/ssim/gstvalidatessim.dll
Creating library subprojects\gst-devtools\validate\plugins\ssim\gstvalidatessim.lib and object subprojects\gst-devtools\validate\plugins\ssim\gstvalidatessim.exp
[8377/8483] Compiling C object subprojects/gst-editing-services/ges/ges-1.0-0.dll.p/ges-asset.c.obj
../subprojects/gst-editing-services/ges/ges-asset.c(373): warning C4090: 'function': different 'const' qualifiers
[8389/8483] Compiling C object subprojects/gst-editing-services/ges/ges-1.0-0.dll.p/ges-structured-interface.c.obj
../subprojects/gst-editing-services/ges/ges-structured-interface.c(592): warning C4133: 'function': incompatible types - from 'GESTrackType *' to 'guint *'
[8403/8483] Linking target subprojects/gst-editing-services/ges/ges-1.0-0.dll
Creating library subprojects\gst-editing-services\ges\ges-1.0.lib and object subprojects\gst-editing-services\ges\ges-1.0.exp
[8408/8483] Linking target subprojects/gst-editing-services/plugins/nle/gstnle.dll
Creating library subprojects\gst-editing-services\plugins\nle\gstnle.lib and object subprojects\gst-editing-services\plugins\nle\gstnle.exp [8413/8483] Compiling C object subprojects/gst-editing-services/tools/ges-launch-1.0.exe.p/ges-launcher.c.obj
../subprojects/gst-editing-services/tools/ges-launcher.c(314): warning C4133: 'function': incompatible types - from 'GESTrackType *' to 'guint *'
[8420/8483] Linking target subprojects/gst-editing-services/plugins/ges/gstges.dll
Creating library subprojects\gst-editing-services\plugins\ges\gstges.lib and object subprojects\gst-editing-services\plugins\ges\gstges.exp [8445/8483] Compiling C object subprojects/gst-examples/playback/player/gst-play/gst-play.exe.p/gst-play.c.obj
../subprojects/gst-examples/playback/player/gst-play/gst-play.c(574): warning C4244: '=': conversion from 'gdouble' to 'gint64', possible loss of data
[8446/8483] Compiling C object subprojects/glib-networking/tls/base/libtlsbase.a.p/gtlsconnection-base.c.obj
c:\Dev\github\gst-build\subprojects\glib-networking\tls\base\gtlsconnection-base.c(831) : warning C4715: 'g_tls_connection_base_base_check': not all control paths return a value
[8465/8483] Compiling C object subprojects/gst-examples/webrtc/sendrecv/gst/webrtc-sendrecv.exe.p/webrtc-sendrecv.c.obj
../subprojects/gst-examples/webrtc/sendrecv/gst/webrtc-sendrecv.c(59): warning C4090: 'initializing': different 'const' qualifiers
[8469/8483] Compiling C object subprojects/glib-networking/tls/openssl/gioopenssl.dll.p/gtlsbackend-openssl.c.obj
../subprojects/glib-networking/tls/openssl/gtlsbackend-openssl.c(131): warning C4133: 'function': incompatible types - from 'size_t (__cdecl *)(void)' to 'unsigned long (__cdecl *)(void)'
[8480/8483] Compiling C object subprojects/glib-networking/tls/tests/connection-openssl.exe.p/connection.c.obj
FAILED: subprojects/glib-networking/tls/tests/connection-openssl.exe.p/connection.c.obj
"cl" "-Isubprojects\glib-networking\tls/tests\connection-openssl.exe.p" "-Isubprojects\glib-networking\tls/tests" "-I..\subprojects\glib-networking\tls\tests" "-Isubprojects\glib-networking" "-I..\subprojects\glib-networking" "-Isubprojects\glib-networking\tls" "-I..\subprojects\glib-networking\tls" "-Isubprojects\glib-networking\tls/openssl" "-I..\subprojects\glib-networking\tls\openssl" "-Isubprojects\glib\gio" "-I..\subprojects\glib\gio" "-Isubprojects\glib\gmodule" "-I..\subprojects\glib\gmodule" "-Isubprojects\glib" "-I..\subprojects\glib" "-Isubprojects\glib\glib" "-I..\subprojects\glib\glib" "-Isubprojects\proxy-libintl" "-I..\subprojects\proxy-libintl" "-Isubprojects\glib\gobject" "-I..\subprojects\glib\gobject" "/MD" "/nologo" "/showIncludes" "/W2" "/O2" "/Zi" "-DHAVE_CONFIG_H" "-DG_LOG_DOMAIN=\"GLib-Net\"" "-DLOCALE_DIR=\"c:/share/locale\"" "-DG_DISABLE_DEPRECATED" "-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56" "/utf-8" "-DSRCDIR=\"c:\\Dev\\github\\gst-build\\subprojects\\glib-networking\\tls/tests\"" "-DTOP_BUILDDIR=\"c:\\Dev\\github\\gst-build\\build\"" "-DBACKEND=\"openssl\"" "-DBACKEND_IS_OPENSSL" "/Fdsubprojects\glib-networking\tls/tests\connection-openssl.exe.p\connection.c.pdb" /Fosubprojects/glib-networking/tls/tests/connection-openssl.exe.p/connection.c.obj "/c" ../subprojects/glib-networking/tls/tests/connection.c
c:\Dev\github\gst-build\subprojects\glib-networking\tls\openssl\openssl-include.h(46): fatal error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory
[8481/8483] Compiling C object subprojects/glib-networking/tls/openssl/gioopenssl.dll.p/gtlsbio.c.obj
ninja: build stopped: subcommand failed.