Building gst-plugins-bad from sources

Nirbheek Chauhan nirbheek.chauhan at gmail.com
Thu Jan 6 18:07:52 UTC 2022


Hi Ilya,

1.18.5 already ships the mediafoundation plugin, do you want to make
some changes to it or perform development / debugging on it?

In any case, you have misunderstood how to build gstreamer. The
options you are passing:

  -Dauto_features=disabled -Dgstreamer:tools=enabled
-Dgst-plugins-bad:mediafoundation=enabled

Are appropriate for gst-build or the new gstreamer monorepo. If you
want to build the gst-plugins-bad repository against a system
installation of gstreamer, you need to pass:

  -Dauto_features=disabled -Dmediafoundation=enabled

And then just copy gstmediafoundation.dll into the plugins dir:
c:\gstreamer\1.0\msvc_x86_64\lib\gstreamer-1.0 which will overwrite
the existing plugin.

Cheers,
Nirbheek

On Thu, Jan 6, 2022 at 1:49 PM Ilya Aleshkov <ilya.aleshkov at gmail.com> wrote:
>
> Hi Nirbheek,
>
> I've attached my meson-logs/meson-log.txt file.
>
> Thanks,
> Ilya
>
> On Tue, Jan 4, 2022 at 8:57 PM Nirbheek Chauhan <nirbheek.chauhan at gmail.com> wrote:
>>
>> Hi Ilya,
>>
>> Can you attach meson-logs/meson-log.txt?
>>
>> Cheers,
>> Nirbheek
>>
>> On Tue, Jan 4, 2022 at 4:30 PM Ilya Aleshkov via gstreamer-devel
>> <gstreamer-devel at lists.freedesktop.org> wrote:
>> >
>> > Hi,
>> >
>> > I've successfully built the gst-plugins-bad repository [1.18.5, Windows, MSVC 2019]
>> > Now I'm looking for a meson configuration to build the mediafoundation plugin only.
>> >
>> > My current configuration:
>> > meson -Dauto_features=disabled -Dgstreamer:tools=enabled -Dgst-plugins-bad:mediafoundation=enabled C:\gstreamer\gst-plugins-bad
>> >
>> > Output:
>> >
>> > gst-plugins-bad 1.18.5
>> >
>> >     Plugins                        :
>> >
>> >   User defined options
>> >
>> >     auto_features                  : disabled
>> >
>> >     gst-plugins-bad:mediafoundation: enabled
>> >
>> >     gstreamer:tools                : enabled
>> >
>> >
>> > But the ninja output doesn't look as good:
>> >
>> > C:\gstreamer\gst-plugins-bad_build>ninja -C C:\gstreamer\gst-plugins-bad_build
>> >
>> > ninja: Entering directory `C:\gstreamer\gst-plugins-bad_build'
>> >
>> > [10/88] Linking target gst-libs/gst/basecamerabinsrc/gstbasecamerabinsrc-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\basecamerabinsrc\gstbasecamerabinsrc-1.0.lib and object gst-libs\gst\basecamerabinsrc\gstbasecamerabinsrc-1.0.exp
>> >
>> > [12/88] Linking target gst-libs/gst/audio/gstbadaudio-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\audio\gstbadaudio-1.0.lib and object gst-libs\gst\audio\gstbadaudio-1.0.exp
>> >
>> > [20/88] Linking target gst-libs/gst/uridownloader/gsturidownloader-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\uridownloader\gsturidownloader-1.0.lib and object gst-libs\gst\uridownloader\gsturidownloader-1.0.exp
>> >
>> > [38/88] Linking target gst-libs/gst/insertbin/gstinsertbin-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\insertbin\gstinsertbin-1.0.lib and object gst-libs\gst\insertbin\gstinsertbin-1.0.exp
>> >
>> > [41/88] Linking target gst-libs/gst/isoff/gstisoff-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\isoff\gstisoff-1.0.lib and object gst-libs\gst\isoff\gstisoff-1.0.exp
>> >
>> > [47/88] Linking target gst-libs/gst/player/gstplayer-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\player\gstplayer-1.0.lib and object gst-libs\gst\player\gstplayer-1.0.exp
>> >
>> > [48/88] Compiling C object gst-libs/gst/sctp/gstsctp-1.0-0.dll.p/sctpsendmeta.c.obj
>> >
>> > ../gst-plugins-bad/gst-libs/gst/sctp/sctpsendmeta.c(53): warning C4090: 'function': different 'const' qualifiers
>> >
>> > ../gst-plugins-bad/gst-libs/gst/sctp/sctpsendmeta.c(60): warning C4090: 'function': different 'const' qualifiers
>> >
>> > [49/88] Compiling C object gst-libs/gst/sctp/gstsctp-1.0-0.dll.p/sctpreceivemeta.c.obj
>> >
>> > ../gst-plugins-bad/gst-libs/gst/sctp/sctpreceivemeta.c(53): warning C4090: 'function': different 'const' qualifiers
>> >
>> > ../gst-plugins-bad/gst-libs/gst/sctp/sctpreceivemeta.c(60): warning C4090: 'function': different 'const' qualifiers
>> >
>> > [50/88] Linking target gst-libs/gst/sctp/gstsctp-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\sctp\gstsctp-1.0.lib and object gst-libs\gst\sctp\gstsctp-1.0.exp
>> >
>> > [53/88] Linking target gst-libs/gst/codecparsers/gstcodecparsers-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\codecparsers\gstcodecparsers-1.0.lib and object gst-libs\gst\codecparsers\gstcodecparsers-1.0.exp
>> >
>> > [54/88] Linking target gst-libs/gst/transcoder/gsttranscoder-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\transcoder\gsttranscoder-1.0.lib and object gst-libs\gst\transcoder\gsttranscoder-1.0.exp
>> >
>> > [57/88] Linking target gst-libs/gst/adaptivedemux/gstadaptivedemux-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\adaptivedemux\gstadaptivedemux-1.0.lib and object gst-libs\gst\adaptivedemux\gstadaptivedemux-1.0.exp
>> >
>> > [65/88] Linking target gst-libs/gst/interfaces/gstphotography-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\interfaces\gstphotography-1.0.lib and object gst-libs\gst\interfaces\gstphotography-1.0.exp
>> >
>> > [75/88] Linking target gst-libs/gst/mpegts/gstmpegts-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\mpegts\gstmpegts-1.0.lib and object gst-libs\gst\mpegts\gstmpegts-1.0.exp
>> >
>> > [84/88] Linking target gst-libs/gst/codecs/gstcodecs-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\codecs\gstcodecs-1.0.lib and object gst-libs\gst\codecs\gstcodecs-1.0.exp
>> >
>> > [88/88] Linking target gst-libs/gst/webrtc/gstwebrtc-1.0-0.dll
>> >
>> >    Creating library gst-libs\gst\webrtc\gstwebrtc-1.0.lib and object gst-libs\gst\webrtc\gstwebrtc-1.0.exp
>> >
>> >
>> > So I've got some other plugins but not the mediafoundation.
>> >
>> >
>> > Thanks,
>> > Ilya


More information about the gstreamer-devel mailing list