Hi all,
I followed below steps in Ubuntu 14.04. I m from c/c++ background. Excuse me for basic knowledge in java build.
1) Build gst1-java-core
https://github.com/gstreamer-java/gst1-java-core #mvn compile
#mvn install
I got the .jar file in .m2/repository/org/freedesktop/gstreamer/gst1-java-core/0.9-SNAPSHOT/gst1-java-core-0.9-SNAPSHOT.jar
2) Downloaded jna.jar file from
http://mvnrepository.com/artifact/net.java.dev.jna/jna => Version 4.2.1
3) Link both the jar files in the eclipse java project.
4) Wrote sample code like below:
package samplejavapject;
import org.freedesktop.gstreamer.Gst;
public class HelloWorld {
public static void main(String[] args)
{
System.out.println("Welcome");
Gst.init("testGstPgm", args);
}
}
4) Now when i compile, I received the below error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library: gstreamer
at org.freedesktop.gstreamer.lowlevel.GstNative.load(GstNative.java:53)
at org.freedesktop.gstreamer.lowlevel.GstNative.load(GstNative.java:43)
at org.freedesktop.gstreamer.Gst.<clinit>(Gst.java:77)
at samplejavapject.HelloWorld.main(HelloWorld.java:10)
I understand that my box is missing gstreamer library, I have the following packages installed in my machine. Correct me if i am wrong?gir1.2-gstreamer-0.10
gstreamer0.10-alsa:amd64
gstreamer0.10-nice:amd64
gstreamer0.10-plugins-bad:amd64
gstreamer0.10-plugins-base:amd64
gstreamer0.10-plugins-base-apps
gstreamer0.10-plugins-good:amd64
gstreamer0.10-plugins-ugly:amd64
gstreamer0.10-pulseaudio:amd64
gstreamer0.10-tools
gstreamer0.10-x:amd64
libgstreamer-plugins-bad0.10-0:amd64
libgstreamer-plugins-base0.10-0:amd64
libgstreamer-plugins-base0.10-dev
libgstreamer0.10-0:amd64
libgstreamer0.10-dev
gir1.2-gstreamer-1.0
gstreamer1.0-alsa:amd64
gstreamer1.0-clutter
gstreamer1.0-gnonlin
gstreamer1.0-libav:amd64
gstreamer1.0-nice:amd64
gstreamer1.0-plugins-bad:amd64
gstreamer1.0-plugins-bad-faad:amd64
gstreamer1.0-plugins-bad-videoparsers:amd64
gstreamer1.0-plugins-base:amd64
gstreamer1.0-plugins-base:i386
gstreamer1.0-plugins-base-apps
gstreamer1.0-plugins-good:amd64
gstreamer1.0-plugins-ugly:amd64
gstreamer1.0-pulseaudio:amd64
gstreamer1.0-tools
gstreamer1.0-vaapi:amd64
gstreamer1.0-x:amd64
libgstreamer-plugins-base1.0-0:amd64
libgstreamer-plugins-base1.0-0:i386
libgstreamer-plugins-base1.0-dev
libgstreamer-plugins-good1.0-0:amd64
libgstreamer-plugins-good1.0-dev
libgstreamer-vaapi1.0-0:amd64
libgstreamer-vaapi1.0-dev
libgstreamer1.0-0:amd64
libgstreamer1.0-0:i386
libgstreamer1.0-dev
libreoffice-avmedia-backend-gstreamer
phonon-backend-gstreamer:amd64
phonon-backend-gstreamer-common:amd64
phonon-backend-gstreamer1.0
Do i need to explicty load the libraries in the java file? or what am i missing. Kindly need your input.