Skip to content
Giuseppe Barbieri edited this page Feb 16, 2021 · 1 revision

Unable to load native library, spirvcrossj

If you get this error or similar

[main @coroutine#1] INFO CurveDifferentBaseShapes - Started application as PID 15860 [ERROR] Cannot create plugin: class='org.scijava.plugins.scripting.javascript.JavaScriptScriptLanguage', name='JavaScript', priority=0.0, enabled=true, pluginType=ScriptLanguage Unable to load native library: Can't load library: C:\Users\Justin\AppData\Local\Temp\spirvcrossj-natives-tmp11589139320832354027\spirvcrossj.dll Did you include spirvcrossj-natives-windows in your dependencies? [main @coroutine#1] WARN Renderer - Vulkan unavailable (null, 'boolean graphics.scenery.spirvcrossj.libspirvcrossjJNI.initializeProcess()'), Vulkan runtime not installed. Falling back to OpenGL. Exception in thread "main" java.lang.UnsatisfiedLinkError: 'boolean graphics.scenery.spirvcrossj.libspirvcrossjJNI.initializeProcess()' at graphics.scenery.spirvcrossj.libspirvcrossjJNI.initializeProcess(Native Method) at graphics.scenery.spirvcrossj.libspirvcrossj.initializeProcess(libspirvcrossj.java:249) at graphics.scenery.backends.opengl.OpenGLRenderer.<clinit>(OpenGLRenderer.kt:329) at gra7phics.scenery.backends.Renderer$Companion.createRenderer(Renderer.kt:282) at graphics.scenery.backends.Renderer$Companion.createRenderer$default(Renderer.kt:250) at graphics.scenery.tests.examples.basic.CurveDifferentBaseShapes.init(CurveDifferentBaseShapes.kt:17) at graphics.scenery.SceneryBase.sceneryMain$suspendImpl(SceneryBase.kt:221) at graphics.scenery.SceneryBase.sceneryMain(SceneryBase.kt) at graphics.scenery.SceneryBase$main.invokeSuspend(SceneryBase.kt:497) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274) at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:84) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59) at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38) at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source) at graphics.scenery.SceneryBase.main(SceneryBase.kt:497) at graphics.scenery.tests.examples.basic.CurveDifferentBaseShapes$Companion.main(CurveDifferentBaseShapes.kt:119) at graphics.scenery.tests.examples.basic.CurveDifferentBaseShapes.main(CurveDifferentBaseShapes.kt)

Try closing the project, deleting .idea and re-importing it

Clone this wiki locally