Skip to content
Yuri Pourre edited this page Jan 25, 2017 · 6 revisions

In Ubuntu (or Debian-Like):

You can follow the v4l4j walkthrough http://code.google.com/p/v4l4j/wiki/DebianInstall.

In Fedora:

Install the necessary libraries:
sudo yum -y install ant gcc libjpeg-turbo-devel libv4l-devel java*devel
Clone the v4l4j SVN repository:
svn co http://v4l4j.googlecode.com/svn/v4l4j/trunk v4l4j
Set the JDK_HOME variable (do not use JAVA_HOME)
export JDK_HOME=/usr/lib/jvm/java

The java folder usually points to your current java version

Build the library from source
cd v4l4j/trunk

ant all

The last command is necessary to compile and install libvideo

Build only the (.so) library from source
sudo ant jnilib
Hint

If you get the jni.h not found error using V4l4j, check your JDK_HOME variable.

If you need libjpeg8.so.8 file, download it from https://github.com/maciej-c/libjpeg8x64