UnsatisfiedLinkError when using KTX1Loader #7880
Unanswered
yicong123456
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanna use KTX1Loader to create Indirectlight in my android project, my filament version is 1.42.0
I tried like this:
private fun readUncompressedAsset(assetName: String): ByteBuffer {
AppContext.getApp().assets.openFd(assetName).use { fd ->
val input = fd.createInputStream()
val dst = ByteBuffer.allocate(fd.length.toInt())
val src = Channels.newChannel(input)
src.read(dst)
src.close()
return dst.apply { rewind() }
}
}
readUncompressedAsset("ibl/lightroom_14b_ibl.ktx").let {
val iblTexture = KTX1Loader.createTexture(engine, it)
}
but got the error below:
java.lang.UnsatisfiedLinkError: No implementation found for long com.google.android.filament.utils.KTX1Loader.nCreateSkybox(long, java.nio.Buffer, int, boolean) (tried Java_com_google_android_filament_utils_KTX1Loader_nCreateSkybox and Java_com_google_android_filament_utils_KTX1Loader_nCreateSkybox__JLjava_nio_Buffer_2IZ)
Seems that all these methods: nCreateKTXTexture, nCreateIndirectLight, nGetSphericalHarmonics, nCreateSkybox got the same error, and I need help TAT!
Beta Was this translation helpful? Give feedback.
All reactions