Can't compile v4l2loopback (Make error 2)

I’m hoping this is the proper category of the forum for my problem. (If it isn’t, I appreciate being pointed in the right direction.)

So, I’m trying to use my old android phone as a webcam with droidcam, but I need v4l2loopback to use droidcam. I can’t seem to get the AUR versions of v4l2loopback to work, so I tried to compile and install it manually. This is the output:

Building v4l2-loopback driver...
make -C /lib/modules/`uname -r`/build M=/tmp/v4l2loopback modules
make[1]: *** /lib/modules/5.13.15-1-MANJARO/build: No such file or directory.  Stop.
make: *** [Makefile:46: v4l2loopback.ko] Error 2

How do I fix this?

Kernel 5.13 is EOL. So upgrade kernel to 5.14 or install kernel 5.10. If you want build kernel modules, you need also install kernel header.

are the headers packages installed?

First you need to install a supported kernel,like 5.10 or 5.14,you also need the headers of the kernel,for example for 5.10 would be

pamac install linux510 linux510-headers

Now to build v4l2loopback you need the DKMS package,you first installed and then v4l2loopback should be install correctly.

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