How exactly are you building gstreamer?
Sorry for the delay in this reply.
Ok, I found meson added a #define GST_API_EXPORT __declspec(dllexport) extern
to the
generated config.h
file.
That was the issue confusing for me since I used a home-brewed GNU-makefile (since meson fails to do it).
While trying to build gstreamer with MSVC or clang-cl
, I get this well error:
clang-cl ... gst.c
...
In file included from gst/gstplugin.h:29:
gst/gstobject.h(214,1): error: unknown type name 'GST_API_EXPORT'
GST_API
^
I see no GST_API_EXPORT
in gstconfig.h.in
. There is a GST_EXPORT
but it's not for MSVC/clang-cl (gcc + SunPro).
So shouldn't these be renamed:
GST_EXPORT
to GST_API_EXPORT
.GST_IMPORT
to GST_API_IMPORT
.Since I fail to see how GST_API
should be set prior to compiling e.g. gst.c
.
I'd say issues like this is typical for GNU/MinGW centric projects. Blame this on
ld
's auto-export feature.
While trying to build gstreamer with MSVC or clang-cl
, I get this well error:
clang-cl ... gst.c
...
In file included from gst/gstplugin.h:29:
gst/gstobject.h(214,1): error: unknown type name 'GST_API_EXPORT'
GST_API
^
I see no GST_API_EXPORT
in gstconfig.h.in
. There is a GST_EXPORT
but it's not for MSVC/clang-cl (gcc + SunPro).
So shouldn't these be renamed:
GST_EXPORT
to GST_API_EXPORT
.GST_IMPORT
to GST_API_IMPORT
.Since I fail to see how GST_API
should be set prior to compiling e.g. gst.c
.
I'd say issues like this is typical for GNU/MinGW centric projects. Blame this on
ld
's auto-export feature.