Let me know if this helps.
Gilles
> --
> You received this message because you are subscribed to the Google Groups "v4l4j" group.
> 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.
>
On 29 February 2012 06:24, Waldemar Hettmann
Not sure where to go from here, but I saw there is a beagle board
emulator. This is my best shot at helping you since I dont own or have
access to a beagle board myself.
I ll get back to you when I have more info.
In the meantime, can you go to the libvideo/ dir, and run "make test".
This will build 3 test apps.
Then can you run "ldd ./list-caps" and post the output.
then try "./list-caps /dev/video0" and post the output.
(if the above doesnt work, try "LD_LIBRARY_PATH=/usr/lib ./list-caps
/dev/video0")
Of course, replace /dev/video0 with whatever video device file you
should be using.
Gilles
On 29 February 2012 09:09, Waldemar Hettmann
This is what I got for ldd:
root@linaro-alip:~/v4l4j-0.8.10# ldd /usr/lib/libvideo.so
libm.so.6 => /lib/arm-linux-gnueabi/libm.so.6 (0x40201000)
librt.so.1 => /lib/arm-linux-gnueabi/librt.so.1 (0x400b9000)
libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0x4026d000)
/lib/ld-linux.so.3 (0x4009a000)
libpthread.so.0 => /lib/arm-linux-gnueabi/libpthread.so.0 (0x400c7000)
root@linaro-alip:~/v4l4j-0.8.10# ldd /usr/lib/jni/libv4l4j.so
libjpeg.so.62 => /usr/lib/arm-linux-gnueabi/libjpeg.so.62 (0x40264000)
libvideo.so.0 => /usr/lib/libvideo.so.0 (0x400c9000)
libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0x4029d000)
/lib/ld-linux.so.3 (0x40031000)
libm.so.6 => /lib/arm-linux-gnueabi/libm.so.6 (0x40180000)
librt.so.1 => /lib/arm-linux-gnueabi/librt.so.1 (0x4000e000)
libpthread.so.0 => /lib/arm-linux-gnueabi/libpthread.so.0 (0x4009e000)
Both libraries have the right dependencies.
I even managed to run the example app (although it didnt do much
because there is no video device),
but there was no java.lang.UnsatisfiedLinkError exception thrown,
meaning the JNI
libraries and their dependencies were loaded without problem.
This is the command I used:
LD_LIBRARY_PATH=/usr/lib/jni java -jamvm -cp /usr/share/java/v4l4j.jar
au.edu.jcu.v4l4j.examples.SimpleViewer
Gilles
This is the workaround:
gcc jpeg.o rgb.o v4l4j_FrameGrabber.o v4l4j_ImageFormatList.o
v4l4j_DeviceInfo.o v4l4j_VideoDevice.o v4l4j_Control.o v4l4j_Tuner.o
v4l4j_ResolutionInfo.o v4l4j_FrameInterval.o -shared -ljpeg
-L../libvideo -lvideo -o libv4l4j.so
So, you now have a working v4l4j installation. If you have an X11
server running you can view the output of the webcam with 'ant
test-gui'. Otherwise, you can start a webcam server with 'ant
test-server'.
On another machine, in firefox, go to "http://ip_address_of_the_board/"
By the way, I found that you only need this to run any v4l4j app:
java -Djava.library.path=/usr/lib/jni -cp /my/class/path ...
I will commit this fix so it will be in the next v4l4j release.
Let me know if you have any other issue
Gilles