2017-10-08 11:02:20.503 465088 [JavaFX Application Thread] ERROR editor.error-reporting - {:line 98}
java.lang.UnsatisfiedLinkError: Unable to load library 'texc_shared': Native library (linux-x86-64/libtexc_shared.so) not found in resource path ([file:/home/franz/Software/Defold/packages/defold-056073b7b5601fb4a3b29eb60af5b291da3caf07.jar])
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)
at com.sun.jna.Native.register(Native.java:1396)
at com.sun.jna.Native.register(Native.java:1156)
at com.defold.libs.TexcLibrary.(TexcLibrary.java:17)
at com.defold.editor.pipeline.TextureGenerator.generateFromColorAndFormat(TextureGenerator.java:172)
at com.defold.editor.pipeline.TextureGenerator.generate(TextureGenerator.java:320)
Hi again! The corresponding issue for Mac and Windows has been fixed, but some work remains for Linux. The underlying reason for the error is that as part of native extension support for linux we are updating to a newer version of pvrtexlib and bumping the minimum requirement to ubuntu 16. Apparently, native library loading works a bit differently.
If you run "ldd libPVRTexLib.so" from a Terminal, what is the output?
I wonder if the shared library is incompatible with the OS you are running on. (We've just updated our build system to use Ubuntu 16.04)
Expected behaviour
Project -> Build (CTRL B) builds project
Actual behaviour
Error dialogue pops up: java.lang.NoClassDefFoundError:Could not initialize class com.defold.libs.TexcLibrary
Steps to reproduce
Start build
Exception in Log:
2017-10-08 11:02:20.503 465088 [JavaFX Application Thread] ERROR editor.error-reporting - {:line 98} java.lang.UnsatisfiedLinkError: Unable to load library 'texc_shared': Native library (linux-x86-64/libtexc_shared.so) not found in resource path ([file:/home/franz/Software/Defold/packages/defold-056073b7b5601fb4a3b29eb60af5b291da3caf07.jar]) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398) at com.sun.jna.Native.register(Native.java:1396) at com.sun.jna.Native.register(Native.java:1156) at com.defold.libs.TexcLibrary.(TexcLibrary.java:17)
at com.defold.editor.pipeline.TextureGenerator.generateFromColorAndFormat(TextureGenerator.java:172)
at com.defold.editor.pipeline.TextureGenerator.generate(TextureGenerator.java:320)
I have the same issue
Same issue as well
Part of the issue looks to be the path. Mine is looking in:
linux-x86-64/libtexc_shared.so
However, that path does not exist: (showing only important part of tree)
If I copy one of these to linux-x86-64, I get:
java.lang.NoClassDefFoundError: Could not initialize class com.defold.libs.TexcLibrary
Hi! Thanks all for reporting! We will look into this properly tomorrow. Meanwhile you can try downloading an earlier version, just don't update :)
http://d.defold.com/editor2/7263fbd517ba5d85a3fa463b122266bf7d7200a4/editor2/Defold-x86_64-darwin.dmg http://d.defold.com/editor2/7263fbd517ba5d85a3fa463b122266bf7d7200a4/editor2/Defold-x86-win32.zip http://d.defold.com/editor2/7263fbd517ba5d85a3fa463b122266bf7d7200a4/editor2/Defold-x86_64-linux.zip
Hi again! The corresponding issue for Mac and Windows has been fixed, but some work remains for Linux. The underlying reason for the error is that as part of native extension support for linux we are updating to a newer version of pvrtexlib and bumping the minimum requirement to ubuntu 16. Apparently, native library loading works a bit differently.
Thanks for the update and quick response.
Suspecting this is due to some missing libraries / incompatibility with your linux flavour, could you try running ldd on libPVRTexLib.so?
If you run "ldd libPVRTexLib.so" from a Terminal, what is the output? I wonder if the shared library is incompatible with the OS you are running on. (We've just updated our build system to use Ubuntu 16.04)
I can test tonight when I get home from work, if no one has done this by then.
This is (fingers crossed!) fixed in the latest update! Thanks for your patience and help.
Just when I wanted to check with ldd :-P
Yes, works for me with the latest update. Thanks a lot!