[Bug 797209] gst-plugin-bad: add head file "config.h", and resolve redefine issue

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Sep 27 05:25:28 UTC 2018


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

--- Comment #4 from Matthew Waters (ystreet00) <ystreet00 at gmail.com> ---
(In reply to zj,wang from comment #2)
> hi ystreet
> 
> when I compile gst-bad-plugin with the latest commit
> 8e8eb41ddfd986b2cce574e0edbd8d2be2e444ce, it occurs below issue.
> 
> ../../../gst-libs/gst/mpegts/mpegts-prelude.h:29:26: error: unknown type
> name ‘GST_API_EXPORT’
>  #  define GST_MPEGTS_API GST_API_EXPORT         /* from config.h */

Yea, you need to recompile all of gstreamer with the update patches after
running git clean -xdf on the repositories.  i.e. you should to start a
complete rebuild from scratch with an up to data gstreamer.

(In reply to zj,wang from comment #3)
> why can not add the header file "config.h" in the headers? I have add the
> condition as below.
> #ifdef HAVE_CONFIG_H
> #include "config.h"
> #endif

Because in an installed environment, config.h does not exist or would refer to
a different config.h file from a dependant project.

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