Unable to install v4l2loopback

Hi, I’ve been trying to install v4l2loopback in order to use my mobile as my webcam using droidcam. But I’ve been unable to install v4l2loopback. I searched for this issue a lot and came across posts where they have suggested to install base-devel, linux-headers etc. I tried all those things but couldn’t get it to work. Please help.

I get the following error when I try to build v4l2loopback from git repo.

make -C /lib/modules/`uname -r`/build M=/home/yash/Downloads/v4l2loopback modules_install
make[1]: *** /lib/modules/5.15.25-1-MANJARO/build: No such file or directory.  Stop.
make: *** [Makefile:50: install] Error 2

And I get similar error when I try to install it using pacman.

> sudo pacman -S v4l2loopback-dkms
warning: v4l2loopback-dkms-0.12.5-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) v4l2loopback-dkms-0.12.5-2

Total Installed Size:  0.08 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                                                 [########################################################] 100%
(1/1) checking package integrity                                                               [########################################################] 100%
(1/1) loading package files                                                                    [########################################################] 100%
(1/1) checking for file conflicts                                                              [########################################################] 100%
(1/1) checking available disk space                                                            [########################################################] 100%
:: Running pre-transaction hooks...
(1/2) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
(2/2) Remove upgraded DKMS modules
:: Processing package changes...
(1/1) reinstalling v4l2loopback-dkms                                                           [########################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> ERROR: Missing 5.15.28-1-MANJARO kernel modules tree for module v4l2loopback/0.12.5.

Hi @YashxAnand, and welcome!

This error, indeed means that the headers are missing. To install the headers for all installed kernels, tun the following:

pamac install $(pamac list --installed --quiet | grep "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')

And then try to install v4l2loopback again:

pamac install v4l2loopback

Hope this helps!

1 Like

The output of

pamac install $(pamac list --installed --quiet | grep "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')

is

Preparing...
Warning: linux515-headers-5.15.28-1 is up to date -- skipping
Nothing to do.

Well, this was expected because as I mentioned I already installed the linux headers. For the second command it’s unable to find target

Error: target not found: v4l2loopback

Apologies. Seems I had the wrong package name:

$ pamac search v4l2loopback
v4l2loopback-utils                                                                                                                                                                                                        0.12.5-2                community
v4l2-loopback device – utilities only
v4l2loopback-dkms-git                                                                                                                                                                                                     0.12.5.r232.g2fa9d6d-1  AUR
v4l2-loopback device
v4l2loopback-dkms                                                                                                                                                                                                         0.12.5-2                community
v4l2-loopback device – module sources

So install it with:

pamac install v4l2loopback-dkms

Looks like I have a bunch of conflicting dependencies. I tried to look for a solution to resolve these but couldn’t get any of them working.

could not satisfy dependencies:
- removing lib32-expat breaks dependency 'lib32-expat' required by lib32-fontconfig
- removing lib32-libjpeg-turbo breaks dependency 'lib32-libjpeg' required by lib32-libtiff
- removing lib32-libjpeg-turbo breaks dependency 'libjpeg.so=8-32' required by lib32-libtiff
Resolving dependencies...
Checking inter-conflicts...
Error: Failed to prepare transaction:
could not satisfy dependencies:
- removing lib32-expat breaks dependency 'lib32-expat' required by lib32-fontconfig
- removing lib32-libjpeg-turbo breaks dependency 'lib32-libjpeg' required by lib32-libtiff
- removing lib32-libjpeg-turbo breaks dependency 'libjpeg.so=8-32' required by lib32-libtiff

Hi, I’m unable to install v4l2loopback-dkms on my manjaro linux. I’ve been trying since 2 days and faced many other issues but eventually solved them. Finally, I’m stuck on this new issue for which I’m unable to find any solution which works. I’ve installed the correct linux headers. Please help.

DKMS make.log for v4l2loopback-0.12.5 for kernel 5.15.25-1-MANJARO (x86_64)
Tuesday 15 March 2022 12:25:45 PM IST
Building v4l2-loopback driver...
make -C /usr/lib/modules/5.15.25-1-MANJARO/build M=/var/lib/dkms/v4l2loopback/0.12.5/build modules
make[1]: Entering directory '/usr/lib/modules/5.15.25-1-MANJARO/build'
  CC [M]  /var/lib/dkms/v4l2loopback/0.12.5/build/v4l2loopback.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:277: /var/lib/dkms/v4l2loopback/0.12.5/build/v4l2loopback.o] Error 1
make[1]: *** [Makefile:1868: /var/lib/dkms/v4l2loopback/0.12.5/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.25-1-MANJARO/build'
make: *** [Makefile:43: v4l2loopback.ko] Error 2

Please read Forum Rules - Manjaro so you do not create duplicate posts.

You did not updated your system.
Please do:
sudo pacman-mirrors -f5 && sudo pacman -Syyu

Reboot and then continue with the installation of v4l2loopback-dkms

1 Like

Hey, thanks a lot dude.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.