[Bug 777933] New: opencv plugin build error using mingw

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jan 30 11:52:07 UTC 2017


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

            Bug ID: 777933
           Summary: opencv plugin build error using mingw
    Classification: Platform
           Product: GStreamer
           Version: 1.x
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: lists at svrinformatica.it
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 344530
  --> https://bugzilla.gnome.org/attachment.cgi?id=344530&action=edit
patch

building with mingw for 64 bit windows produces these errors (works for 32 bit)

CXX      libgstopencv_1.0_la-gstopencvutils.lo
<built-in>: error: redundant redeclaration of ‘unsigned int
__builtin_ia32_crc32qi(unsigned int, unsigned char)’ in same scope
[-Werror=redundant-decls]
In file included from
/usr/x86_64-w64-mingw32/include/opencv2/core/types_c.h:93:0,
                 from /usr/x86_64-w64-mingw32/include/opencv2/core/core.hpp:46,
                 from ../../../../gst-libs/gst/opencv/gstopencvutils.cpp:27:
/usr/x86_64-w64-mingw32/include/intrin.h:59:23: note: previous declaration of
‘unsigned int __builtin_ia32_crc32qi(unsigned int, unsigned char)’
   extern unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char);
                       ^~~~~~~~~~~~~~~~~~~~~~
<built-in>: error: redundant redeclaration of ‘unsigned int
__builtin_ia32_crc32hi(unsigned int, short unsigned int)’ in same scope
[-Werror=redundant-decls]
/usr/x86_64-w64-mingw32/include/intrin.h:60:23: note: previous declaration of
‘unsigned int __builtin_ia32_crc32hi(unsigned int, short unsigned int)’
   extern unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short);
                       ^~~~~~~~~~~~~~~~~~~~~~
<built-in>: error: redundant redeclaration of ‘unsigned int
__builtin_ia32_crc32si(unsigned int, unsigned int)’ in same scope
[-Werror=redundant-decls]
/usr/x86_64-w64-mingw32/include/intrin.h:61:23: note: previous declaration of
‘unsigned int __builtin_ia32_crc32si(unsigned int, unsigned int)’
   extern unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int);
                       ^~~~~~~~~~~~~~~~~~~~~~


opencv plugins was ported to cpp so use cpp header and not c

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