Example plugins with deepstream sdk.

I am having a little trouble understanding the behaviour of plugins with deepstream sdk.

I was going through the source code of example customized plugin provided - gstdsexample and am having trouble understanding a few things.

1.) What is dsexample_lib and how does it interacts with both the main deepstream-app and the customised gstreamer plugins ?

2.) In the ReadME of gstdsexample directory, the following lines are mentioned.

Corresponding config file changes (Add the following section). GPU ID might need
modification based on the GPU configuration:
[ds-example]
enable=1

What does it mean?

Also, is there any relation between deepstream_dsexample.c files and dsexample_lib.c files.

Hi,
Please check the makefile

deepstream_sdk_v4.0.1_jetson\sources\gst-plugins\gst-dsexample\Makefile

The built lib is installed to

GST_INSTALL_DIR?=/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/lib/gst-plugins/

For enabling it, you can put the lines to the config file you are using. For example:
https://devtalk.nvidia.com/default/topic/1068443/deepstream-sdk/-getting-segmentation-fault-when-running-gst-dsexample-on-multiple-source/post/5411980/#5411980