Assimp on OSX - UnsatisfiedLinkError

Started by mudlee, April 29, 2019, 17:45:15

Previous topic - Next topic

mudlee

Is it possible that something is broken in the 3.2.2-SNAPSHOT? I just reinstalled my macbook, cloned out my repo, and got the message below. Using 3.2.1-SNAPSHOT it works.
[LWJGL] Version: 3.2.2 build 8
[LWJGL] 	 OS: Mac OS X v10.14.4
[LWJGL] 	JRE: 11.0.3 x86_64
[LWJGL] 	JVM: OpenJDK 64-Bit Server VM v11.0.3+7 by AdoptOpenJDK
[LWJGL] Loading library (system): lwjgl
[LWJGL] 	Using SharedLibraryLoader...
[LWJGL] 	Found at: /var/folders/dj/nc2wmh2d0p9cp3zbry3sz8sc0000gn/T/lwjglmudlee/3.2.2-build-8/liblwjgl.dylib
[LWJGL] 	Loaded from org.lwjgl.librarypath: /var/folders/dj/nc2wmh2d0p9cp3zbry3sz8sc0000gn/T/lwjglmudlee/3.2.2-build-8/liblwjgl.dylib
[LWJGL] Warning: Failed to instantiate memory allocator: org.lwjgl.system.jemalloc.JEmallocAllocator. Using the system default.
[LWJGL] MemoryUtil allocator: StdlibAllocator
[LWJGL] Loading library: glfw
[LWJGL] 	Using SharedLibraryLoader...
[LWJGL] 	Found at: /var/folders/dj/nc2wmh2d0p9cp3zbry3sz8sc0000gn/T/lwjglmudlee/3.2.2-build-8/libglfw.dylib
[LWJGL] 	Loaded from org.lwjgl.librarypath: /var/folders/dj/nc2wmh2d0p9cp3zbry3sz8sc0000gn/T/lwjglmudlee/3.2.2-build-8/libglfw.dylib
[LWJGL] Loading library: objc
[LWJGL] 	libobjc.dylib not found in org.lwjgl.librarypath=/var/folders/dj/nc2wmh2d0p9cp3zbry3sz8sc0000gn/T/lwjglmudlee/3.2.2-build-8
[LWJGL] 	Loaded from system paths: /usr/lib/libobjc.A.dylib
[LWJGL] Loading library (system): lwjgl_opengl
[LWJGL] 	Using SharedLibraryLoader...
[LWJGL] 	Found at: /var/folders/dj/nc2wmh2d0p9cp3zbry3sz8sc0000gn/T/lwjglmudlee/3.2.2-build-8/liblwjgl_opengl.dylib
[LWJGL] 	Loaded from org.lwjgl.librarypath: /var/folders/dj/nc2wmh2d0p9cp3zbry3sz8sc0000gn/T/lwjglmudlee/3.2.2-build-8/liblwjgl_opengl.dylib
[LWJGL] Loading library: com.apple.opengl
[LWJGL] 	Success
[LWJGL] Java 10 multiplyHigh enabled
[LWJGL] Java 9 check intrinsics enabled
[LWJGL] Java 10 memcpy enabled
[LWJGL] Java 9 text decoding enabled
[LWJGL] Loading library: assimp
[LWJGL] 	Using SharedLibraryLoader...
[LWJGL] 	Found at: /var/folders/dj/nc2wmh2d0p9cp3zbry3sz8sc0000gn/T/lwjglmudlee/3.2.2-build-8/libassimp.dylib
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to dynamically load library: /var/folders/dj/nc2wmh2d0p9cp3zbry3sz8sc0000gn/T/lwjglmudlee/3.2.2-build-8/libassimp.dylib(error = null)
	at org.lwjgl/org.lwjgl.system.macosx.MacOSXLibraryDL.loadLibrary(MacOSXLibraryDL.java:32)
	at org.lwjgl/org.lwjgl.system.macosx.MacOSXLibraryDL.<init>(MacOSXLibraryDL.java:19)
	at org.lwjgl/org.lwjgl.system.macosx.MacOSXLibrary.create(MacOSXLibrary.java:28)
	at org.lwjgl/org.lwjgl.system.APIUtil.apiCreateLibrary(APIUtil.java:125)
	at org.lwjgl/org.lwjgl.system.Library.loadNative(Library.java:335)
	at org.lwjgl/org.lwjgl.system.Library.loadNativeFromLibraryPath(Library.java:324)
	at org.lwjgl/org.lwjgl.system.Library.loadNative(Library.java:239)
	at org.lwjgl/org.lwjgl.system.Library.loadNative(Library.java:205)
	at org.lwjgl.assimp/org.lwjgl.assimp.Assimp.<clinit>(Assimp.java:1949)

spasi

Assimp was recently changed to build the irrXML dependency as a dynamic library by default. I've changed it back to static, Assimp will work fine in build 9.

Thanks for reporting this!