Author Topic: <solved>Missing linux/uvcvideo.h Header  (Read 1192 times)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
<solved>Missing linux/uvcvideo.h Header
« on: June 17, 2012, 01:30:51 PM »
Hi packagers,

i missing on my system the linux/uvcvideo.h file.
If i read right it should available in kernel-devel package (3.2.18), but there isn't it.
Any ideas?
« Last Edit: June 18, 2012, 11:30:33 AM by Leiche »

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11547
  • ----IOFLU----
Re: Missing linux/uvcvideo.h Header
« Reply #1 on: June 17, 2012, 01:59:03 PM »
Hi packagers,

i missing on my system the linux/uvcvideo.h file.
If i read right it should available in kernel-devel package (3.2.18), but there isn't it.
Any ideas?

/usr/src/kernel-devel-3.2.18-pclos1.bfs/include/linux/uvcvideo.h
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Missing linux/uvcvideo.h Header
« Reply #2 on: June 17, 2012, 02:05:56 PM »
that's strange, why isn't find it by compile guvcview?

Code: [Select]
[daniel@localhost guvcview-src-1.6.0]$ make
make  all-recursive
make[1]: Entering directory `/home/daniel/Downloads/guvcview-src-1.6.0'
Making all in src
make[2]: Entering directory `/home/daniel/Downloads/guvcview-src-1.6.0/src'
  CC     callbacks.o
In file included from callbacks.c:34:0:
v4l2_dyna_ctrls.h:26:28: schwerwiegender Fehler: linux/uvcvideo.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
make[2]: *** [callbacks.o] Fehler 1
make[2]: Leaving directory `/home/daniel/Downloads/guvcview-src-1.6.0/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/daniel/Downloads/guvcview-src-1.6.0'
make: *** [all] Fehler 2

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11547
  • ----IOFLU----
Re: Missing linux/uvcvideo.h Header
« Reply #3 on: June 17, 2012, 02:38:53 PM »
that's strange, why isn't find it by compile guvcview?

Code: [Select]
[daniel@localhost guvcview-src-1.6.0]$ make
make  all-recursive
make[1]: Entering directory `/home/daniel/Downloads/guvcview-src-1.6.0'
Making all in src
make[2]: Entering directory `/home/daniel/Downloads/guvcview-src-1.6.0/src'
  CC     callbacks.o
In file included from callbacks.c:34:0:
v4l2_dyna_ctrls.h:26:28: schwerwiegender Fehler: linux/uvcvideo.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
make[2]: *** [callbacks.o] Fehler 1
make[2]: Leaving directory `/home/daniel/Downloads/guvcview-src-1.6.0/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/daniel/Downloads/guvcview-src-1.6.0'
make: *** [all] Fehler 2

Did you check to be sure it actually was there, as it's supposed to be?

[root@fatman ~]# ls -l /usr/src/kernel-devel-3.2.18-pclos1.bfs/include/linux/ |grep uvc
-rw-r--r-- 1 root root   1569 May 22 14:17 uvcvideo.h
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Missing linux/uvcvideo.h Header
« Reply #4 on: June 17, 2012, 02:46:56 PM »
it is there

Code: [Select]
[daniel@localhost guvcview-src-1.6.0]$ ls -l /usr/src/kernel-devel-3.2.18-pclos1.bfs/include/linux/ |grep uvc
-rw-r--r-- 1 root root   1569 Mai 22 21:17 uvcvideo.h

What's wrong?

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11547
  • ----IOFLU----
Re: Missing linux/uvcvideo.h Header
« Reply #5 on: June 17, 2012, 02:59:42 PM »
it is there

Code: [Select]
[daniel@localhost guvcview-src-1.6.0]$ ls -l /usr/src/kernel-devel-3.2.18-pclos1.bfs/include/linux/ |grep uvc
-rw-r--r-- 1 root root   1569 Mai 22 21:17 uvcvideo.h

What's wrong?

The error message only refers to linux/uvcvideo.h without the rest of the full path. Is it looking for it within the guvcview-src-1.6.0 directory? Check the makefile to see if part of the path structure is missing
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Missing linux/uvcvideo.h Header
« Reply #6 on: June 18, 2012, 11:29:58 AM »
seems version 1.6.0 had an bug. Version 1.5.3 build without any problems.

Next 1000 issues will be solved  ::)

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: <solved>Missing linux/uvcvideo.h Header
« Reply #7 on: August 19, 2012, 05:58:01 AM »
Version 1.6.1 is out, perhaps the bug is fixed?

-- Eddie
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: <solved>Missing linux/uvcvideo.h Header
« Reply #8 on: August 21, 2012, 11:58:00 AM »
Missing some post in this thread  ???

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: <solved>Missing linux/uvcvideo.h Header
« Reply #9 on: August 28, 2012, 02:50:49 PM »
Sometime around kernel 3.2 the interface to uvcvideo changed from being IOCTL type interface to having a proper GLIBC interface.  As a result, for the 3.2 kernels there should be a uvcvideo.h for accessing the glibc API  (stuff in /usr/include/linux is for glibc and is provided by the glibc-headers-devel package).  The later versions of guvcview require this new interface.

I suspect you are using glibc-headers-devel-2.6.38.  This will not have linux/uvcvideo.h.
You need glibc-headers-devel-3.2.18 but that is currently only available in the Test section of the 64 bit repo.

Terry.

Edit:
BTW moving permanently to glibc-headers-devel-3.2.18 has important implications for the PCLinuxOS Admins to consider.
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|