[Bug 784943] Decklink from gst-plugins-bad cannot be built on windows using Cerbero
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jul 19 12:37:24 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=784943
--- Comment #12 from Philippe Renon <philippe_renon at yahoo.fr> ---
Warnings are gone but I still see the error (both with mingw32 and mingw64).
libtool: compile: x86_64-w64-mingw32-g++ -DHAVE_CONFIG_H -I.
-I../../../gst-plugins-bad/sys/decklink -I../..
-I../../../gst-plugins-bad/gst-libs -I../../gst-libs -pthread -mms-bitfields
-ID:/msys64/mingw64/include/gstreamer-1.0 -ID:/msys64/mingw64/include/glib-2.0
-ID:/msys64/mingw64/lib/glib-2.0/include -ID:/msys64/mingw64/include -pthread
-mms-bitfields -ID:/msys64/mingw64/include/gstreamer-1.0
-ID:/msys64/mingw64/include/glib-2.0 -ID:/msys64/mingw64/lib/glib-2.0/include
-ID:/msys64/mingw64/include -pthread -mms-bitfields
-ID:/msys64/mingw64/include/gstreamer-1.0 -ID:/msys64/mingw64/include/glib-2.0
-ID:/msys64/mingw64/lib/glib-2.0/include -ID:/msys64/mingw64/include
-DGST_USE_UNSTABLE_API -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED -Wall
-Wmissing-declarations -Wredundant-decls -Wwrite-strings -Wformat-nonliteral
-Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar
-g -DGST_DISABLE_DEPRECATED -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1
-I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -MT
libgstdecklink_la-gstdecklink.lo -MD -MP -MF
.deps/libgstdecklink_la-gstdecklink.Tpo -c
../../../gst-plugins-bad/sys/decklink/gstdecklink.cpp -DDLL_EXPORT -DPIC -o
.libs/libgstdecklink_la-gstdecklink.o
In file included from ../../../gst-plugins-bad/sys/decklink/gstdecklink.h:35:0,
from ../../../gst-plugins-bad/sys/decklink/gstdecklink.cpp:27:
../../../gst-plugins-bad/sys/decklink/win/DeckLinkAPI.h:19:0: warning: ignoring
#pragma warning [-Wunknown-pragmas]
#pragma warning( disable: 4049 ) /* more than 64k source lines */
In file included from ../../../gst-plugins-bad/sys/decklink/gstdecklink.h:37:0,
from ../../../gst-plugins-bad/sys/decklink/gstdecklink.cpp:27:
D:/msys64/mingw64/x86_64-w64-mingw32/include/comdef.h: In member function
'const TCHAR* _com_error::ErrorMessage() const':
D:/msys64/mingw64/x86_64-w64-mingw32/include/comdef.h:143:4: error: 'sprintf_s'
was not declared in this scope
_COM_PRINTF_S_1(m_pszMsg,32,TEXT("IDispatch error #%d"),wCode);
^
D:/msys64/mingw64/x86_64-w64-mingw32/include/comdef.h:143:4: note: suggested
alternative: 'wsprintfW'
D:/msys64/mingw64/x86_64-w64-mingw32/include/comdef.h:145:4: error: 'sprintf_s'
was not declared in this scope
_COM_PRINTF_S_1(m_pszMsg,32,TEXT("Unknown error 0x%0lX"),m_hresult);
^
D:/msys64/mingw64/x86_64-w64-mingw32/include/comdef.h:145:4: note: suggested
alternative: 'wsprintfW'
But note that this is an msys2 build so comes, I believe, with its own set of
windows headers. I am not yet familiar on how msys2 and mingw articulate.
Will try to look into it. I have searched all good/bad/ugly plugins to see if
another plugin was also including comutil.h, but none do : so no working
example of using that header.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list