Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


For the ucam handler to work two things are needed, the video driver of the camera which comes by default and the v4l4j library. The steps below show installing of v4l4j library
Steps:

  • Before installing the v4l4j some packages are needed to be installed. If you are running debian based operating system type the command

Anchor
_GoBack
_GoBack
sudo apt-get install openjdk-7-jdk ant libjpeg8-dev

It will download and install the required prereqs,
 

...


  • Now download the

...

sudo apt-get install subversion
Image Removed

  1. Now download the library using the following command

svn co http://v4l4j.googlecode.com/svn/v4l4j/trunk v4l4j-trunk
Image Removed

...

  • directory (cd v4l4j-

...

  • 0.x.x) and start the build process by typing the command shown below

...

  • On Raspbian Wheezy (Raspberry pi):
          JDK_HOME=/usr/lib/jvm/java-7-openjdk-armhf/ LIBPIXFC=pixfc-sse/libpixfc-sse-armv6l-hardfp.a ant clean all

...

  • On Wheezy beta: (Raspberry Pi)

...

  • :
          JDK_HOME=/usr/lib/jvm/java-7-openjdk-armhf/ LIBPIXFC=pixfc-sse/libpixfc-sse-armv6l-softfp.a ant clean all

...

  •  On other environments setup:
          Setup JDK_HOME environment variable to your JDK path and

...

  • do ant clean all

...

 If you get this error "error: libv4lconvert.h: No such file or directory" , type

sudo                                        sudo apt-get install libv4l-dev

And do the build process again.

                                      sudo ant install