[Bug 784943] Decklink from gst-plugins-bad cannot be built on windows using Cerbero

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jul 18 17:01:45 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=784943

Philippe Renon <philippe_renon at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philippe_renon at yahoo.fr

--- Comment #8 from Philippe Renon <philippe_renon at yahoo.fr> ---
Seems like this change breaks the msys2/mingw build.


libtool: compile:  i686-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/mingw32/include/gstreamer-1.0 -ID:/msys64/mingw32/include/glib-2.0
-ID:/msys64/mingw32/lib/glib-2.0/include -ID:/msys64/mingw32/include -pthread
-mms-bitfields -ID:/msys64/mingw32/include/gstreamer-1.0
-ID:/msys64/mingw32/include/glib-2.0 -ID:/msys64/mingw32/lib/glib-2.0/include
-ID:/msys64/mingw32/include -pthread -mms-bitfields
-ID:/msys64/mingw32/include/gstreamer-1.0 -ID:/msys64/mingw32/include/glib-2.0
-ID:/msys64/mingw32/lib/glib-2.0/include -ID:/msys64/mingw32/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/mingw32/include -march=i686 -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/mingw32/i686-w64-mingw32/include/comdef.h: In member function 'const
TCHAR* _com_error::ErrorMessage() const':
D:/msys64/mingw32/i686-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/mingw32/i686-w64-mingw32/include/comdef.h:143:4: note: suggested
alternative: 'wsprintfW'
D:/msys64/mingw32/i686-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);
    ^
...



Workaround is to configure with --disable-decklink.

-- 
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