SFML community forums

Bindings - other languages => Java => Topic started by: Hopuranium on November 28, 2017, 03:16:07 pm

Title: JSFML on Linux (Fedora) UnsatisfiedLinkError libjsfml-XXX.so.1 not found
Post by: Hopuranium on November 28, 2017, 03:16:07 pm
Hello Guy! (i'm french)

I'm working on a JSFML project for school.
And I have started to code a game on Windows using JSFML (and intelliJ) and it works well.
But I want to run the game (code) on Eclipse on Linux and the console throws me an exception:
with "UnsatisfiedLinkError " and says that there are missing files with .so.1 as extension in "jsfml.jar".

Thanks you ;)

Title: Re: JSFML on Linux (Fedora) UnsatisfiedLinkError libjsfml-XXX.so.1 not found
Post by: Gleade on November 30, 2017, 11:39:45 pm
While admittedly; I have only used JSFML on windows, I believe there is a package which only includes the windows libraries and then there is a version that includes the libraries for all 3 platforms (windows, mac & linux). Open the .jar file as an archive to check if your SFML.jar is missing the linux libraries; if so, go download the package which includes them all.
Title: Re: JSFML on Linux (Fedora) UnsatisfiedLinkError libjsfml-XXX.so.1 not found
Post by: Hopuranium on December 04, 2017, 01:29:50 am
Thx for your reply! Yeah I checked in every jsfml.jar and I already checked the '.so.1' and I can't find them.
:/
Title: Re: JSFML on Linux (Fedora) UnsatisfiedLinkError libjsfml-XXX.so.1 not found
Post by: Chrupek on December 04, 2017, 12:13:43 pm
I'm using JSFML on Ubuntu, version below run for me without any problems, however I used to have linking error on Pepermint.

https://jsfml.sfmlprojects.org/files/jsfml-test-Jul31_2013.zip
Title: Re: JSFML on Linux (Fedora) UnsatisfiedLinkError libjsfml-XXX.so.1 not found
Post by: Hopuranium on December 05, 2017, 01:18:36 pm
Thx you!
The problem is that JSFML want to load a '.so.1' but there is no '.so.1' in "jsfml.jar/linux_xXX/".
I'll try this afternoon your jsfml.jar because I do not have Fedora right now.
The required file is 'libopenal.so.1'

Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/student/8/68/17007168/.jsfml/linux_x64/libsfml-audio.so: libopenal.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
   at java.lang.Runtime.load0(Runtime.java:809)
   at java.lang.System.load(System.java:1086)
   at org.jsfml.internal.SFMLNative.loadNativeLibraries(Unknown Source)
   at org.jsfml.internal.SFMLNativeObject.<init>(Unknown Source)
   at org.jsfml.graphics.Font.<init>(Unknown Source)
   at Utils.Assets.<clinit>(Assets.java:12)
   at Main.main(Main.java:30)