vloopback module won't compile from vloopback-source

Bug #811349 reported by Paul Stimpson
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
vloopback (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Attempting to make the module from vloopback-source fails with the error:

make[1]: Entering directory `/usr/src/linux-headers-2.6.38-10-generic-pae'
  CC [M] /home/paul/Downloads/dv4l/vloopback-1.3/vloopback.o
/home/paul/Downloads/dv4l/vloopback-1.3/vloopback.c:180:2: error: #error "need CONFIG_VIDEO_V4L1_COMPAT"
/home/paul/Downloads/dv4l/vloopback-1.3/vloopback.c:204:28: fatal error: linux/videodev.h: No such file or directory
compilation terminated.

This program used to compile fine on 10.10

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: vloopback-source 1.3-2
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic-pae 2.6.38.7
Uname: Linux 2.6.38-10-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Sat Jul 16 02:53:31 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: vloopback
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Paul Stimpson (dangerjunkie2002) wrote :
Revision history for this message
ravenclaw_78 (ravenclaw-78) wrote :

still fails for me (Ubuntu 11.10 , 3.0.0-12-server)

It seems that 'include/linux/videodev.h' is removed from kernel >=2.6.38. (https://bbs.archlinux.org/viewtopic.php?pid=930462#p930462)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vloopback (Ubuntu):
status: New → Confirmed
Revision history for this message
Norbert Brondeau (norbert-brondeau-deactivatedaccount) wrote :

  svn co http://www.lavrsen.dk/svn/vloopback/trunk/ vloopback
  cd vloopback

build using v4l-utils headers

   sed -i 's/<linux\/\(videodev.h\)>/"libv4l1-\1"/' *.c example/*.c

remove old API

   sed -e '/CONFIG_VIDEO_V4L1_COMPAT/,+2d' -e 's/BASE_VIDIOCPRIVATE/192/' -e '/VIDIOCGUNIT:/,+18d' -e '/VIDIOCKEY/,+1d' -i vloopback.c example/dummy.c

whereis libv4l1-videodev.h
libv4l1-videodev: /usr/include/libv4l1-videodev.h
cp /usr/include/libv4l1-videodev.h ./

make
make -C /lib/modules/3.0.0-14-generic/build SUBDIRS=/home/walter/Downloads/vloopback modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-3.0.0-14-generic »
  CC [M] /home/walter/Downloads/vloopback/vloopback.o
In file included from /usr/lib/gcc/i686-linux-gnu/4.6.1/include/stdint.h:5:0,
                 from /home/walter/Downloads/vloopback/libv4l1-videodev.h:6,
                 from /home/walter/Downloads/vloopback/vloopback.c:217:
/usr/lib/gcc/i686-linux-gnu/4.6.1/include/stdint-gcc.h:86:26: erreur: conflicting types for ‘uintptr_t’
include/linux/types.h:44:24: note: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/home/walter/Downloads/vloopback/vloopback.o] Erreur 1

I don't know what, but vloopback refuse to be conpiled.
You must change the line #include <stdint.h> to //#include <stdint.h> of the file libv4l1-videodev.h

make
make -C /lib/modules/3.0.0-14-generic/build SUBDIRS=/home/walter/Downloads/vloopback modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-3.0.0-14-generic »
  CC [M] /home/walter/Downloads/vloopback/vloopback.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC /home/walter/Downloads/vloopback/vloopback.mod.o
  LD [M] /home/walter/Downloads/vloopback/vloopback.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-3.0.0-14-generic »
make -C example
make[1]: entrant dans le répertoire « /home/walter/Downloads/vloopback/example »
cc -g -Wall invert.c -o invert
cc -g -Wall resize.c -o resize
cc -g -Wall feed.c -o feed
cc -g -Wall dummy.c -o dummy
dummy.c: In function ‘open_vidpipe’:
dummy.c:282:8: attention : variable ‘ostatus’ set but not used [-Wunused-but-set-variable]
dummy.c:278:8: attention : variable ‘loop’ set but not used [-Wunused-but-set-variable]

sudo make install
sudo modprobe vloopback
lsmod | grep vloopback
vloopback 17806 0
videodev 85626 2 vloopback,uvcvideo

Revision history for this message
f mds (fmds) wrote :

My webcam uvcvideo: Found UVC 1.00 device CNF7129 (04f2:b071) was reversed after the installation vloopback, and the command export LIBV4LCONTROL_FLAGS=3 && LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype , was normal.

To (norbert-brondeau):
Thank you .

in Brazil, translate google!

Ubuntu 12.04 64bit

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.