Distribute v4l4j application without installing v4l4j libraries?

15 views
Skip to first unread message

dino bartosak

unread,
Dec 7, 2011, 2:02:59 PM12/7/11
to v4...@googlegroups.com
How can I ship my application without installing all those .deb packages. Are  libv4l4j.so  libv4l4j.jar only things that are needed?
I could package this two things in my application's jar?

Gilles Gigan

unread,
Dec 13, 2011, 3:16:58 PM12/13/11
to v4...@googlegroups.com
Hi Dino,
sorry for the delay in reply, i was on holidays, but I m back now.
You need to ship 3 files:
- v4l4j,jar: the java code for v4l4j, must be somewhere in your classpath,
- libv4l4j.so: the v4l4j JNI library, can be installed anywhere
really. If you put it in $JAVA_HOME/jre/lib/ext then the JVM will be
able to find it on its own. Otherwise, you need to pass
"-Djava.library.path=/path/to/libv4l4j.so" to the JVM when launching
your app.
- libvideo.so: the low-level V4L abstraction library. This one must be
installed where the dynamic linker expects to find shared libraries
(usually /usr/lib). I really dont recommend it, but if you cant
install libvideo.so in that location, you can always set the
LD_LIBRARY_PATH env variable to the directory where libvideo.so is,
but this is a hack, not a long term solution.

Cheers,
Gilles

> --
> You received this message because you are subscribed to the Google Groups
> "v4l4j" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/v4l4j/-/uqAml3FQ40YJ.
> To post to this group, send email to v4...@googlegroups.com.
> To unsubscribe from this group, send email to
> v4l4j+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/v4l4j?hl=en.

Reply all
Reply to author
Forward
0 new messages