defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Cannot build project after last update #1286

Closed linuxfranz closed 7 years ago

linuxfranz commented 7 years ago

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


OS nameLinux
Defold version1.2.115
Build time2017-10-06T14:46:52.793727
GPUMesa DRI Intel(R) HD Graphics 515 (Skylake GT2)
Defold sha056073b7b5601fb4a3b29eb60af5b291da3caf07
GPU Driver3.0 Mesa 17.2.1
OS version4.13.4-1-default
Java version1.8.0_102-b14
Error6d7e3f3ee7024eb4a0a5de2165e7fa4d
OS archamd64
linuxfranz commented 7 years ago

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)

TedCassirer commented 7 years ago

I have the same issue

malachany commented 7 years ago

Same issue as well

malachany commented 7 years ago

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)

~/.Defold/unpack/056073b7b5601fb4a3b29eb60af5b291da3caf07 $ tree 
.

├── x86_64-linux
│   ├── bin
│   │   ├── dmengine
│   │   ├── dmengine_release
│   │   └── luajit
│   └── lib
│       ├── libgluegen-rt.so
│       ├── libjogl_desktop.so
│       ├── libjogl_mobile.so
│       ├── libnativewindow_awt.so
│       ├── libnativewindow_x11.so
│       ├── libnewt.so
│       ├── libparticle_shared.so
│       ├── libPVRTexLib.so
│       └── libtexc_shared.so
├── x86-linux
│   ├── bin
│   │   ├── dmengine
│   │   ├── dmengine_release
│   │   └── luajit
│   └── lib
│       ├── libgluegen-rt.so
│       ├── libjogl_desktop.so
│       ├── libjogl_mobile.so
│       ├── libnativewindow_awt.so
│       ├── libnativewindow_x11.so
│       ├── libnewt.so
│       ├── libparticle_shared.so
│       ├── libPVRTexLib.so
│       └── libtexc_shared.so

If I copy one of these to linux-x86-64, I get: java.lang.NoClassDefFoundError: Could not initialize class com.defold.libs.TexcLibrary

erikangelin-king commented 7 years ago

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.

malachany commented 7 years ago

Thanks for the update and quick response.

erikangelin-king commented 7 years ago

Suspecting this is due to some missing libraries / incompatibility with your linux flavour, could you try running ldd on libPVRTexLib.so?

mathiaswking commented 7 years ago

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)

malachany commented 7 years ago

I can test tonight when I get home from work, if no one has done this by then.

erikangelin-king commented 7 years ago

This is (fingers crossed!) fixed in the latest update! Thanks for your patience and help.

linuxfranz commented 7 years ago

Just when I wanted to check with ldd :-P

Yes, works for me with the latest update. Thanks a lot!