On 04/30/2012 07:11 PM, Bruce Dubbs wrote:
> Fernando,
>
>    I'm glad you got it working, but I can't get it to build.  Lets compare 
> notes:
>
> sane:
>
> download sane-backends-1.0.22.tar.gz
>            sane-frontends-1.0.14.tar.gz
>
> tar -xf sane-backends-1.0.22.tar.gz
> cd sane-backends-1.0.22
>
> I checked the sed for sane-1.0.19 and it seems to be already applied in 
> 1.0.22.
>
> ./configure --prefix=/usr --sysconfdir=/etc
> make
>
> ...
>
> /bin/sh ../libtool --silent  --tag=CC
> --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include
> -I. -I. -I../include -I../include
> -DLIBDIR="/usr/lib/sane" -DBACKEND_NAME=v4l -DPATH_SANE_CONFIG_DIR=/etc/sane.d
>         -DPATH_SANE_DATA_DIR=/usr/share
> -DPATH_SANE_LOCK_DIR=/usr/var/lock/sane        -DV_MAJOR=1 -DV_MINOR=0
> -g -O2 -W -Wall -MT libv4l_la-v4l.lo -MD -MP -MF .deps/libv4l_la-v4l.Tpo
> -c -o libv4l_la-v4l.lo `test -f 'v4l.c' || echo './'`v4l.c
>
> In file included from /usr/include/libv4l1.h:29:0,
>                    from v4l.c:89:
> /usr/include/libv4l1-videodev.h:23:8: error: redefinition of 'struct
> video_capability'
> v4l.h:50:8: note: originally defined here
> /usr/include/libv4l1-videodev.h:36:8: error: redefinition of 'struct 
> video_channel'
> v4l.h:122:8: note: originally defined here
> /usr/include/libv4l1-videodev.h:72:8: error: redefinition of 'struct 
> video_picture'
> v4l.h:62:8: note: originally defined here
> /usr/include/libv4l1-videodev.h:130:8: error: redefinition of 'struct 
> video_window'
> v4l.h:91:8: note: originally defined here
> /usr/include/libv4l1-videodev.h:153:8: error: redefinition of 'struct 
> video_mmap'
> v4l.h:115:8: note: originally defined here
> /usr/include/libv4l1-videodev.h:160:8: error: redefinition of 'struct 
> video_mbuf'
> v4l.h:108:8: note: originally defined here
>
> These seem to be from v4l-utils which are not in th ebook, but the package is
> referenced in ffmpeg.  I installed v4l-utils-0.8.5.tar.bz2 in December, but
> v4l-utils-0.8.8.tar.bz2 seems to be current as of April 14.  I'll reinstall 
> that
> and try again.
>
>     -- Bruce

Also, there is a patch for v4l stuff. I got it from Debian, which seems 
to have got it from upstream:

commit c5ca46c2d1be78c651afb843cc834cf2b5b24953
Author: Julien BLACHE <[email protected]>
Date:   Wed Feb 16 19:37:43 2011 +0100

     Fix v4l build with libv4l 0.8.3+

Index: sane-backends-1.0.22/backend/v4l.c
===================================================================
--- sane-backends-1.0.22.orig/backend/v4l.c     2011-02-16 
19:20:51.193016002 +0100
+++ sane-backends-1.0.22/backend/v4l.c  2011-02-16 19:21:00.497016002 +0100
@@ -84,9 +84,8 @@
  #include "../include/sane/sanei_config.h"
  #define V4L_CONFIG_FILE "v4l.conf"

-#include "v4l.h"
-
  #include <libv4l1.h>
+#include "v4l.h"

  static const SANE_Device **devlist = NULL;
  static int num_devices;
Index: sane-backends-1.0.22/backend/v4l.h
===================================================================
--- sane-backends-1.0.22.orig/backend/v4l.h     2011-02-16 
19:20:07.537016001 +0100
+++ sane-backends-1.0.22/backend/v4l.h  2011-02-16 19:20:41.889016001 +0100
@@ -29,6 +29,7 @@
  #ifndef v4l_h
  #define v4l_h

+#ifndef __LINUX_VIDEODEV_H
  /* Kernel interface */
  /* Only the stuff we need. For more features, more defines are needed */

@@ -165,7 +166,7 @@


  /* end of kernel interface */
-
+#endif /* !__LINUX_VIDEODEV_H */

  #include <../include/sane/sane.h>

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to