Here is a blog in Chinese, hope can help you. I choose this one because the blogger was an UOS(a commercial version of deepin) user so your situations maybe similar. You can use Google Translate to read it. Good Luck
https://blog.csdn.net/weixin_43348615/article/details/120591381
The blog says the VCAM function was embegged in OBS latter than V26.1. Maybe upgrade your OBS is a solution.


中文 


I want to get virtualcam for obs, and cant get the v4l2loopback installed. This is my error log
DKMS make.log for v4l2loopback-0.12.1 for kernel 5.10.60-amd64-desktop (x86_64)
Fri 31 Dec 2021 07:51:32 PM EST
Building v4l2-loopback driver...
make -C /lib/modules/5.10.60-amd64-desktop/build M=/var/lib/dkms/v4l2loopback/0.12.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.60-amd64-desktop'
CC [M] /var/lib/dkms/v4l2loopback/0.12.1/build/v4l2loopback.o
/var/lib/dkms/v4l2loopback/0.12.1/build/v4l2loopback.c: In function ‘vidioc_qbuf’:
/var/lib/dkms/v4l2loopback/0.12.1/build/v4l2loopback.c:1509:4: error: implicit declaration of function ‘v4l2_get_timestamp’; did you mean ‘v4l2_buffer_get_timestamp’? [-Werror=implicit-function-declaration]
v4l2_get_timestamp(&b->buffer.timestamp);
^~~~~~~~~~~~~~~~~~
v4l2_buffer_get_timestamp
/var/lib/dkms/v4l2loopback/0.12.1/build/v4l2loopback.c: In function ‘init_vdev’:
/var/lib/dkms/v4l2loopback/0.12.1/build/v4l2loopback.c:2072:23: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function); did you mean ‘VFL_TYPE_SUBDEV’?
vdev->vfl_type = VFL_TYPE_GRABBER;
^~~~~~~~~~~~~~~~
VFL_TYPE_SUBDEV
/var/lib/dkms/v4l2loopback/0.12.1/build/v4l2loopback.c:2072:23: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/v4l2loopback/0.12.1/build/v4l2loopback.c: In function ‘v4l2loopback_init_module’:
/var/lib/dkms/v4l2loopback/0.12.1/build/v4l2loopback.c:2412:44: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function); did you mean ‘VFL_TYPE_SUBDEV’?
if (video_register_device(devs[i]->vdev, VFL_TYPE_GRABBER, video_nr[i]) < 0) {
^~~~~~~~~~~~~~~~
VFL_TYPE_SUBDEV
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:280: /var/lib/dkms/v4l2loopback/0.12.1/build/v4l2loopback.o] Error 1
make[1]: *** [Makefile:1822: /var/lib/dkms/v4l2loopback/0.12.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.60-amd64-desktop'
make: *** [Makefile:43: v4l2loopback.ko] Error 2