Sample Header Ad - 728x90

How to best install v4l2loopback on Linux Mint?

3 votes
1 answer
10142 views
I am trying to create a virtual webcam from OBS(26.1.1) so I can feed it to Zoom. I am Linux Mint 20.1 Cinnamon, version 4.8.6, Kernel 5.4.0-64-generic. I did: sudo apt-get install v4l2loopback-dkms sudo apt-get install v4l2loopback-utils but v4l2loopback is not showing up as an option in zoom I went to the v4l2loopback github page, where it suggested I should build it from scratch and install it into my kernel. I tried to build from scratch and immediately ran into problems with the make command. make -C /lib/modules/uname -r/build M=/home/berggren/Downloads/v4l2loopback-main modules make: Entering directory '/usr/src/linux-headers-5.4.0-64-generic' Building modules, stage 2. MODPOST 1 modules make: Leaving directory '/usr/src/linux-headers-5.4.0-64-generic' make -C utils make: Entering directory '/home/berggren/Downloads/v4l2loopback-main/utils' cc -I.. v4l2loopback-ctl.c -o v4l2loopback-ctl v4l2loopback-ctl.c:1:10: fatal error: sys/types.h: No such file or directory 1 | #include | ^~~~~~~~~~~~~ compilation terminated. make: *** [: v4l2loopback-ctl] Error 1 make: Leaving directory '/home/berggren/Downloads/v4l2loopback-main/utils' make: *** [Makefile:85: utils/v4l2loopback-ctl] Error 2 I didn't go further because I wasn't sure I was going in the right direction with that. Could someone explain the correct procedure for installing v4l2loopback?
Asked by Karl Berggren (43 rep)
Feb 20, 2021, 02:51 PM
Last activity: Jun 13, 2024, 08:56 AM