Thanks for the prompt reply.
I have downloaded v4l4j, removed line 103 from PushSource.java and
compiled, but when testing it out with test-gui I get the following:
test-gui:
[java] Cant load v4l4j JNI library
[java] Exception in thread "AWT-EventQueue-0"
java.lang.UnsatisfiedLinkError: /usr/lib/jni/libv4l4j.so: /usr/lib/jni/
libv4l4j.so: undefined symbol: libvideo_palettes
[java] at java.lang.ClassLoader$NativeLibrary.load(Native
Method)
[java] at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:
1807)
[java] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:
1732)
[java] at java.lang.Runtime.loadLibrary0(Runtime.java:823)
[java] at java.lang.System.loadLibrary(System.java:1028)
[java] at au.edu.jcu.v4l4j.VideoDevice.<clinit>(Unknown Source)
[java] at au.edu.jcu.v4l4j.examples.videoViewer.DeviceChooser
$DeviceInfoPane.<init>(Unknown Source)
[java] at
au.edu.jcu.v4l4j.examples.videoViewer.DeviceChooser.actionPerformed(Unknown
Source)
[java] at
au.edu.jcu.v4l4j.examples.videoViewer.DeviceChooser.<init>(Unknown
Source)
[java] at au.edu.jcu.v4l4j.examples.videoViewer.DeviceChooser
$1.run(Unknown Source)
[java] at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[java] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:
641)
[java] at java.awt.EventQueue.access$000(EventQueue.java:84)
[java] at java.awt.EventQueue$1.run(EventQueue.java:602)
[java] at java.awt.EventQueue$1.run(EventQueue.java:600)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:87)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
[java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
269)
[java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
184)
[java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
174)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
I noticed another discussion on this but there didn't seem to be a
resolution.
ldd /usr/lib/jni/libv4l4j.so gives the following:
linux-gate.so.1 => (0x00c50000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00a65000)
/lib/ld-linux.so.2 (0x0051f000)
Thanks for your help,
Jeff
On Mar 15, 5:44 pm, Gilles Gigan <
gilles.gi...@gmail.com> wrote:
> Hi,
> Thanks for reporting this issue, I think it is a bug in v4l4j.
> You can do two things:
> - if you have v4l4j's source code, remove line 103 in
> src/au/edu/jcu/v4l4j/PushSource.java, rebuild, reinstall and the issue
> should be gone
> - otherwise, try move the call to FrameGrabber.setCaptureCallback()
> just before FrameGrabber.startCapture() so setCaptureCallback() is
> called every time startCapture() is called.
>
> 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
tov...@googlegroups.com.> To unsubscribe from this group, send email
tov4l4j+u...@googlegroups.com.