JAVA Environment construction?

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

JAVA Environment construction?

ha.fengqi@aisino.com

1、Already installed JDK1.8
2、Already installed gstreamer-1.0-msvc-x86_64-1.18.0
3、Already installed gstreamer-1.0-devel-mingw-x86_64-1.18.0
4、runtime Example TextColorControlExample
error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library: gstreamer


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: JAVA Environment construction?

Soebirk, Thorsten Nordholm

I don’t know if my situation was similar to yours, but I also had trouble getting GStreamer to work using gst1-java-core bindings. This was on Windows. The work-around that I found is to add the following to the Java command-line (adjust the library path to match your installation, of course):

 

-Djna.library.path="C:\gstreamer\1.0\x86_64\bin" -Dgstreamer.GNative.nameFormats="%s-0"

 

Best regards,
Thorsten

 

From: gstreamer-devel [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: 28 September 2020 04:54
To: gstreamer-devel <[hidden email]>
Subject: JAVA Environment construction?

 

EXTERNAL MAIL:  

 

1Already installed JDK1.8

2Already installed gstreamer-1.0-msvc-x86_64-1.18.0

3Already installed gstreamer-1.0-devel-mingw-x86_64-1.18.0

4runtime Example TextColorControlExample

error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library: gstreamer

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: JAVA Environment construction?

Neil C Smith-2
On Wed, 30 Sep 2020 at 12:53, Soebirk, Thorsten
<[hidden email]> wrote:
> I don’t know if my situation was similar to yours, but I also had trouble getting GStreamer to work using gst1-java-core bindings. This was on Windows. The work-around that I found is to add the following to the Java command-line (adjust the library path to match your installation, of course):
>
> -Djna.library.path="C:\gstreamer\1.0\x86_64\bin" -Dgstreamer.GNative.nameFormats="%s-0"

Just for the record, this is not the way to do it!  Set up the system
path correctly, as discussed in the readme.

Note you can also get support for the Java bindings at
https://groups.google.com/forum/#!forum/gstreamer-java although always
happy to answer here too.

I'm curious on what required that name format setting to work though?!

Best wishes,

Neil

--
Neil C Smith
Codelerity Ltd.
www.codelerity.com

Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : Office 4 219 Kensington High Street,
Kensington, London, England, W8 6BD
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel