compiling ws4gl on debian : libwebcamstudio.so missing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

compiling ws4gl on debian : libwebcamstudio.so missing

César
I compiled webcamstudio on my debian according to this two pages (which btw I think lack of precision) :

- http://www.ws4gl.org/download/compiling

- http://www.ws4gl.org/download/manual-installation
(trunk/src/vloopback doesn't exist, so I guest it is suppose to be /trunk/vloopback)


I think everything went well (got no errors.)

But when I try to lauch webcamstudio (java -jar "WebcamStudio.jar"), I get this error :

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'webcamstudio': libwebcamstudio.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 com.sun.jna.Native.loadLibrary(Native.java:359)
        at webcamstudio.exporter.vloopback.V4L2Loopback$CV4l2.<clinit>(V4L2Loopback.java:67)
        at webcamstudio.exporter.vloopback.V4L2Loopback.open(V4L2Loopback.java:27)
        at webcamstudio.Main.selectOutputDevice(Main.java:265)
        at webcamstudio.Main.cboVideoOutputsActionPerformed(Main.java:2559)
        at webcamstudio.Main.access$1000(Main.java:54)
        at webcamstudio.Main$8.actionPerformed(Main.java:894)
        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1257)
        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:584)
        at webcamstudio.Main.<init>(Main.java:128)
        at webcamstudio.Main.main(Main.java:2615)


Thank you,
César
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: compiling ws4gl on debian : libwebcamstudio.so missing

Elias Vds
Go to /trunk/vloopback.

Execute:
  gcc -c -fPIC libwebcamstudio.c -o libwebcamstudio.o    
  gcc -shared -Wl -o libwebcamstudio.so.1.0.1  libwebcamstudio.o

Now as a superuser do the following:
Copy libwebcamstudio.so.1.0.1 to your library directory, e.g. /usr/lib or /usr/lib64
Then make a symbolic link:
  ln -s /usr/lib64/libwebcamstudio.so.1.0.1 /usr/lib64/libwebcamstudio.so
Note that if you're running 32 bit, you'll have to use /usr/lib instead of /usr/lib64 .
Finally run "modprobe webcamstudio".


Now, try running the program again, it should work now.
Loading...