After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 777933 - opencv plugin build error using mingw
opencv plugin build error using mingw
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-30 11:52 UTC by Nicola
Modified: 2018-11-03 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (781 bytes, patch)
2017-01-30 11:52 UTC, Nicola
needs-work Details | Review

Description Nicola 2017-01-30 11:52:07 UTC
Created attachment 344530 [details] [review]
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
Comment 1 Nicola 2017-01-30 12:07:41 UTC
please note that this does not fix the compilation error that is caused by mingw/opencv headers
Comment 2 Sebastian Dröge (slomo) 2017-01-30 12:12:10 UTC
Review of attachment 344530 [details] [review]:

::: gst-libs/gst/opencv/gstopencvutils.cpp
@@ +26,2 @@
 #include "gstopencvutils.h"
+#include <opencv2/core/core.hpp>

You probably want to do the same elsewhere, e.g. ext/opencv/gstcvdilateerode.cpp and ext/opencv/gstmotioncells.h

Also in meson.build and configure.ac
Comment 3 GStreamer system administrator 2018-11-03 14:04:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/512.