GStreamer java应用程序收到JNA访问错误

时间:2016-04-28 05:24:45

标签: gstreamer jna java-gstreamer

我正在尝试根据this tutorial构建一个简单的Gstreamer java,我发现即使我已经将gstreamer库和jna库jar链接到我的文件中,也无法使用GStreamer。 代码很简单:

import org.gstreamer.Gst;


public class PlayBack {
    public static void main(String[] args) {
         args = Gst.init("MyMediaPlayer", args);


    }
}

我收到错误,说找不到图书馆

Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'gst_date_get_type': dlsym(0x7fd7d9c1fa70, gst_date_get_type): symbol not found
    at com.sun.jna.Function.<init>(Function.java:208)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:536)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:513)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:499)
    at com.sun.jna.Library$Handler.invoke(Library.java:199)
    at com.sun.proxy.$Proxy2.gst_date_get_type(Unknown Source)
    at org.gstreamer.glib.GDate.<clinit>(GDate.java:40)
    at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
    at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:140)
    at java.lang.reflect.Field.acquireFieldAccessor(Field.java:1057)
    at java.lang.reflect.Field.getFieldAccessor(Field.java:1038)
    at java.lang.reflect.Field.get(Field.java:379)
    at org.gstreamer.Gst.getField(Gst.java:447)
    at org.gstreamer.Gst.registerClass(Gst.java:460)
    at org.gstreamer.Gst.loadAllClasses(Gst.java:471)
    at org.gstreamer.Gst.init(Gst.java:338)
    at PlayBack.main(PlayBack.java:6)

0 个答案:

没有答案