On 30-04-2012 14:11, 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
Bruce, this is what is related to v4l:
> $ grep -i v4l Downloads/blfs/sane-backends-1.0.22-2012.04.29.log
> checking for LIBV4L... no
> *** v4l backend requires v4l libraries - disabling
> Generating v4l.conf from v4l.conf.in
> Generating manpage sane-v4l.5...
Built with
sed -i 's/SYSFS/ATTRS/g' tools/sane-desc.c && # You say we won't need
./configure \
--prefix=/usr \
--sysconfdir=/etc &&
make &&
make install &&
install -v -m644 tools/udev/libsane.rules \
/etc/udev/rules.d/65-scanner.rules
$ ls -lh /etc/udev/rules.d/65-scanner.rules
-rw-r--r-- 1 root root 104K Abr 29 13:44 /etc/udev/rules.d/65-scanner.rules
Don't know if this is relevant:
$ paco -dd xf86-video-v4l
13-Apr-2012 02:19 xf86-video-v4l-0.2.0
I have not used this patch, as I do not have libv4l:
https://projects.archlinux.org/svntogit/packages.git/plain/trunk/libv4l-0.8.3.patch?h=packages/sane
Inside that, can read:
> Fix v4l build with libv4l 0.8.3+
>
> (cherry picked from commit c5ca46c2d1be78c651afb843cc834cf2b5b24953)
--
[]s,
Fernando
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page