mlanypitts / webcamstudio

Automatically exported from code.google.com/p/webcamstudio
GNU General Public License v3.0
0 stars 0 forks source link

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'gstreamer-0.10': libgstreamer-0.10.so #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install
2. execute

What is the expected output? 
for webcamstudio to open

What do you see instead?
a java strace

What version of the product are you using? On what operating system?
webcamstudio_0.57beta2_all.deb
Distributor ID: Ubuntu
Description:    Ubuntu oneiric (development branch)
Release:    11.10
Codename:   oneiric
64bits

Please provide any additional information below.

$ sudo dpkg -i webcamstudio_0.57beta2_all.deb 
(Reading database ... 275928 files and directories currently installed.)
Preparing to replace webcamstudio 0.57beta2 (using 
webcamstudio_0.57beta2_all.deb) ...
Unpacking replacement webcamstudio ...
Setting up webcamstudio (0.57beta2) ...
Removing the webcamstudio module from memory
Removing webcamstudio.ko from the modules
rm: cannot remove 
`/lib/modules/3.0.0-12-generic/kernel/drivers/misc/webcamstudio.ko': No such 
file or directory
Restating the webcamstudio service to update the module
 * Stopping WebcamStudio kernel module webcamstudio                                                                                    [ OK ] 
 * Starting WebcamStudio kernel module webcamstudio                                                                                           Building vloopback driver...
make -C /lib/modules/`uname -r`/build M=/tmp/webcamstudio-src modules
make[1]: Entering directory `/usr/src/linux-headers-3.0.0-12-generic'
  CC [M]  /tmp/webcamstudio-src/webcamstudio.o
/tmp/webcamstudio-src/webcamstudio.c: In function ‘v4l_loopback_write’:
/tmp/webcamstudio-src/webcamstudio.c:609:2: warning: format ‘%d’ expects 
argument of type ‘int’, but argument 2 has type ‘size_t’ [-Wformat]
/tmp/webcamstudio-src/webcamstudio.c:617:6: warning: format ‘%d’ expects 
argument of type ‘int’, but argument 2 has type ‘size_t’ [-Wformat]
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/webcamstudio-src/webcamstudio.mod.o
  LD [M]  /tmp/webcamstudio-src/webcamstudio.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-12-generic'
make -C /lib/modules/`uname -r`/build M=/tmp/webcamstudio-src modules_install
make[1]: Entering directory `/usr/src/linux-headers-3.0.0-12-generic'
  INSTALL /tmp/webcamstudio-src/webcamstudio.ko
  DEPMOD  3.0.0-12-generic
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-12-generic'
depmod -ae
WARNING: -e needs -E or -F
                                                                                                                                       [ OK ]
Processing triggers for gnome-menus ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
bugabundo@BluBUG:~$ webcamstudio
webcamstudio         webcamstudioConsole  
bugabundo@BluBUG:~$ webcamstudio
Using JRE: /usr/lib/jvm/java-6-openjdk/bin
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load 
library 'gstreamer-0.10': libgstreamer-0.10.so: cannot open shared object file: 
No such file or directory
    at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164)
    at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237)
    at com.sun.jna.Library$Handler.<init>(Library.java:140)
    at com.sun.jna.Native.loadLibrary(Native.java:374)
    at org.gstreamer.lowlevel.GNative.loadNativeLibrary(GNative.java:48)
    at org.gstreamer.lowlevel.GNative.loadLibrary(GNative.java:45)
    at org.gstreamer.lowlevel.GstNative.load(GstNative.java:42)
    at org.gstreamer.lowlevel.GstNative.load(GstNative.java:39)
    at org.gstreamer.Gst.<clinit>(Gst.java:59)
    at webcamstudio.Main.<init>(Main.java:85)
    at webcamstudio.Main.main(Main.java:2216)

Original issue reported on code.google.com by tldr@fernandomiguel.net on 30 Sep 2011 at 9:44

GoogleCodeExporter commented 9 years ago
I've discovered that also...

The problem is Ubuntu itself, some links are missing with native libraries.  
For example, libgstreamer-0.10.so is normally a link to 
libgstreamer-0.10.so.1.0.1 (or something like that.  

In 11.10, those link are not there and JNA.jar cannot find the library.  Still 
investigating why this is happening

Original comment by patrick.balleux on 6 Oct 2011 at 1:57

GoogleCodeExporter commented 9 years ago
Issue is fixed in 0.57 beta 3

Original comment by patrick.balleux on 9 Oct 2011 at 6:02

GoogleCodeExporter commented 9 years ago
I wouldnt be so sure

sudo dpkg -i webcamstudio_0.57beta4_all.deb 
Selecting previously deselected package webcamstudio.
(Reading database ... 274219 files and directories currently installed.)
Unpacking webcamstudio (from webcamstudio_0.57beta4_all.deb) ...
dpkg: dependency problems prevent configuration of webcamstudio:
 webcamstudio depends on libdbus-java; however:
  Package libdbus-java is not installed.
 webcamstudio depends on libjna-java; however:
  Package libjna-java is not installed.
dpkg: error processing webcamstudio (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Errors were encountered while processing:
 webcamstudio

Original comment by tldr@fernandomiguel.net on 10 Oct 2011 at 5:07