Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency issue: make > make: *** [Makefile:43: v4l2loopback.ko] Error 2 #342

Closed
DominikAgejev opened this issue Sep 11, 2020 · 1 comment

Comments

@DominikAgejev
Copy link

DominikAgejev commented Sep 11, 2020

  • v4l2loopback version: 0.12.5 I believe

      sudo dmesg  | grep -i v4l2loopback
    
  • kernel version: 5.4.0-47-generic

  • Distribution (+version): Ubuntu 20.04.1 LTS

Please keep in mind I switched to linux a few days ago and am not familiar with it. Thank you for your patience

I am trying to install v4l2loopback for use as a virtual camera with OBS and the CatxFish plugin.

Here are my steps.

First check linux headers with:

$ ls -l /usr/src/linux-headers-$(uname -r)

Output:

total 1608
drwxr-xr-x 3 root root    4096 ruj   9 19:43 arch
lrwxrwxrwx 1 root root      31 ruj   4 21:08 block -> ../linux-headers-5.4.0-47/block
lrwxrwxrwx 1 root root      31 ruj   4 21:08 certs -> ../linux-headers-5.4.0-47/certs
lrwxrwxrwx 1 root root      32 ruj   4 21:08 crypto -> ../linux-headers-5.4.0-47/crypto
lrwxrwxrwx 1 root root      39 ruj   4 21:08 Documentation -> ../linux-headers-5.4.0-47/Documentation
lrwxrwxrwx 1 root root      33 ruj   4 21:08 drivers -> ../linux-headers-5.4.0-47/drivers
lrwxrwxrwx 1 root root      28 ruj   4 21:08 fs -> ../linux-headers-5.4.0-47/fs
drwxr-xr-x 4 root root    4096 ruj   9 19:43 include
lrwxrwxrwx 1 root root      30 ruj   4 21:08 init -> ../linux-headers-5.4.0-47/init
lrwxrwxrwx 1 root root      29 ruj   4 21:08 ipc -> ../linux-headers-5.4.0-47/ipc
lrwxrwxrwx 1 root root      32 ruj   4 21:08 Kbuild -> ../linux-headers-5.4.0-47/Kbuild
lrwxrwxrwx 1 root root      33 ruj   4 21:08 Kconfig -> ../linux-headers-5.4.0-47/Kconfig
drwxr-xr-x 2 root root    4096 ruj   9 19:43 kernel
lrwxrwxrwx 1 root root      29 ruj   4 21:08 lib -> ../linux-headers-5.4.0-47/lib
lrwxrwxrwx 1 root root      34 ruj   4 21:08 Makefile -> ../linux-headers-5.4.0-47/Makefile
lrwxrwxrwx 1 root root      28 ruj   4 21:08 mm -> ../linux-headers-5.4.0-47/mm
-rw-r--r-- 1 root root 1616765 ruj   4 21:08 Module.symvers
lrwxrwxrwx 1 root root      29 ruj   4 21:08 net -> ../linux-headers-5.4.0-47/net
lrwxrwxrwx 1 root root      33 ruj   4 21:08 samples -> ../linux-headers-5.4.0-47/samples
drwxr-xr-x 7 root root   12288 ruj   9 19:43 scripts
lrwxrwxrwx 1 root root      34 ruj   4 21:08 security -> ../linux-headers-5.4.0-47/security
lrwxrwxrwx 1 root root      31 ruj   4 21:08 sound -> ../linux-headers-5.4.0-47/sound
drwxr-xr-x 3 root root    4096 ruj   9 19:43 tools
lrwxrwxrwx 1 root root      32 ruj   4 21:08 ubuntu -> ../linux-headers-5.4.0-47/ubuntu
lrwxrwxrwx 1 root root      29 ruj   4 21:08 usr -> ../linux-headers-5.4.0-47/usr
lrwxrwxrwx 1 root root      30 ruj   4 21:08 virt -> ../linux-headers-5.4.0-47/virt

I attempt the install process which results in an error I don't understand.

dominik@dominik-UX430UAR:~$ cd v4l2loopback/
dominik@dominik-UX430UAR:~/v4l2loopback$ make && sudo make install
Building v4l2-loopback driver...
make -C /lib/modules/`uname -r`/build M=/home/dominik/v4l2loopback modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-47-generic'
arch/x86/Makefile:147: CONFIG_X86_X32 enabled but no binutils support
make[1]: gcc: Command not found
  CC [M]  /home/dominik/v4l2loopback/v4l2loopback.o
/bin/sh: 1: gcc: not found
make[2]: *** [scripts/Makefile.build:275: /home/dominik/v4l2loopback/v4l2loopback.o] Error 127
make[1]: *** [Makefile:1734: /home/dominik/v4l2loopback] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-47-generic'
make: *** [Makefile:43: v4l2loopback.ko] Error 2

Trying to run fails as expected:

dominik@dominik-UX430UAR:~/v4l2loopback$ sudo modprobe v4l2loopback
[sudo] password for dominik: 
modprobe: FATAL: Module v4l2loopback not found in directory /lib/modules/5.4.0-47-generic

I researched a bit and haven't found a solution, if you could help me I'd appreciate it. I assume the problem is in the headers of the kernel and dependency not matching but I don't know what that entails or how to fix it.

I've read #340 and don't see how it could help me.
Same with this: #238

@umlaeute
Copy link
Owner

the key-error is:

make[1]: gcc: Command not found

as described in the first paragraph of the Dependency section in the README you really must have a working build-system (including a compiler)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants