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, 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