I am trying to build software using GStreamer and OpenCV in C++ in rpi4. But the problem is I don't have the root access so I am not able to install any packages for GStreamer. What I am trying is to copy all the libs for GStreamer and then try to build my software. I am using the following code:

```
cv::VideoCapture cap;
cap.open("videotestsrc ! appsink",CAP_GSTREAMER);

```

But it is not working. I have tried the same with my laptop after installing GStreamer and it is working. So my guess is the problem is that the GStreamer is not setup correctly. Is there any way to use GStreamer without installing the packages by just copying the libs and bin files?

Thanks in advance.

Didn't get any solution till now.