compiling ws4gl on debian : missing

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

compiling ws4gl on debian : missing

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


(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': cannot open shared object file: No such file or directory
        at com.sun.jna.NativeLibrary.loadLibrary(
        at com.sun.jna.NativeLibrary.getInstance(
        at com.sun.jna.Library$Handler.<init>(
        at com.sun.jna.Native.loadLibrary(
        at com.sun.jna.Native.loadLibrary(
        at webcamstudio.exporter.vloopback.V4L2Loopback$CV4l2.<clinit>(
        at webcamstudio.Main.selectOutputDevice(
        at webcamstudio.Main.cboVideoOutputsActionPerformed(
        at webcamstudio.Main.access$1000(
        at webcamstudio.Main$8.actionPerformed(
        at javax.swing.JComboBox.fireActionEvent(
        at javax.swing.JComboBox.setSelectedItem(
        at webcamstudio.Main.<init>(
        at webcamstudio.Main.main(

Thank you,
Reply | Threaded
Open this post in threaded view

Re: compiling ws4gl on debian : missing

Elias Vds
Go to /trunk/vloopback.

  gcc -c -fPIC libwebcamstudio.c -o libwebcamstudio.o    
  gcc -shared -Wl -o  libwebcamstudio.o

Now as a superuser do the following:
Copy to your library directory, e.g. /usr/lib or /usr/lib64
Then make a symbolic link:
  ln -s /usr/lib64/ /usr/lib64/
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.