Deepstream2.0 samples is not getting compiled! It shows some failure due to gstreamer

Hi Do not use nouveau.
use the nvidia-396

The runfile will ask for xorg overwriting- allow it and nouveau will be disabled.
After reboot check lsmod | grep nouveau -- it should return nothing and check lsmod | grep nvidia, it should return drivers corresponding to nvidia-396

.deb also will by default do x-org overwriting and blacklisting of nouveau. run these commands to verfiy.

thanks my problem has been solved with your suggestion,
It saves so much time for me,
Thanks again for your help.