2

I'm using Python 3.6 and after I tried to install the v4l2capture package, I got the following error message:

"v4l2capture.c:20:10: fatal error: libv4l2.h: No such file or directory"

Why is this and how do I solve it?

Malekai
  • 4,765
  • 5
  • 25
  • 60
AllSPARK
  • 23
  • 7

1 Answers1

1

You have to install libv4l-dev package in Debian/Ubuntu, or libv4l-devel in RH.

isalgueiro
  • 1,973
  • 16
  • 20
  • 1
    I got the following error message : " v4l2capture.c:116:9:error:'Video_device' {aka 'struct '} has no member named 'ob_type'; did you mean 'ob_base'? " @isalgueiro – AllSPARK Apr 16 '19 at 11:54
  • 4
    Seems that v4l2capture doesn't support python 3. Install doesn't fail for me using python 2.7. – isalgueiro Apr 16 '19 at 12:14
  • Can you access analog camera with this package? In addition, this package was used with python3. https://github.com/atareao/python3-v4l2capture/blob/master/capture_picture.py – AllSPARK Apr 16 '19 at 14:38