I'm trying to install Zbar but I am having an issue with ./configure
:
checking linux/videodev.h usability... no
checking linux/videodev.h presence... no
checking for linux/videodev.h... no
configure: error: in `/home/pi/zbar':
configure: error: test for video support failed!
rebuild your kernel to include video4linux support or
configure --disable-video to skip building video support.
This is what I've done so far:
# Get the latest Raspbian packages
sudo apt-get update
sudo apt-get upgrade
## JPEG DEPENDENCIES
### download and compile the JPEG library
wget http://www.ijg.org/files/jpegsrc.v8c.tar.gz
tar xvfz jpegsrc.v8c.tar.gz
cd jpeg-8c
./configure --enable-shared --prefix=$CONFIGURE_PREFIX
make
sudo make install
### link the libraries correctly - RASPBERRY PI ONLY
sudo ln -s /usr/lib/arm-linux-gnueabi/libjpeg.so /usr/lib
sudo ln -s /usr/lib/arm-linux-gnueabi/libfreetype.so /usr/lib
sudo ln -s /usr/lib/arm-linux-gnueabi/libz.so /usr/lib
### install rest of the libraries, as well as freetrype and zlib
sudo apt-get install libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev
### re-install PIL
sudo pip install pillow
## V4L UTILS
# Get the source code for the V4L utilities
git clone git://git.linuxtv.org/v4l-utils.git
cd v4l-utils
# Install some packages needed to build it
sudo apt-get install autoconf gettext libtool
# Configure and build it.
./bootstrap.sh
./configure
make
sudo make install
# Load the module video0
sudo modprobe bcm2835-v4l2
I have downloaded the latest Zbar firmware from here.
Any ideas? I want to build it with video support, so deactivating it takes no sense.