Is it possible to use it in a Android project? #1
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
owl/cubiomes-java#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
your library works fine on my Linux machine and I'd tried to use it in a Android project.
Here I get an error like:
No implementation found for int de.rasmusantons.cubiomes.Cubiomes.getGeneratorSize()I think it's because it's not compiled for the Android architecture.
Any idea to use it in such a project?
Thanks
Robin
I assume android could load the linux binaries but they need to be compiled for arm. Maybe it would work to run the current gradle task on something like a raspberry pi? Ideally it should cross compile for arm, I can try to do that but I'm not sure when I have time.
I think you were right about having to compiler it for specifically for android. I've played around a bit but didn't get it to work yet.
I added an aarch64 target to gradle which works on my raspberry pi but not on android. For some reason android studio removes all .so files, so I had to rename them in the jar. Then it complained about the libc, so I compiled it again with the android ndk compiler. Now it gives me an error about not finding "sincos".
Oh, is sincos a function of your library? Maybe a missing or wrong header file?
I'm not sure where sincos is used, what's weird is that the same .so file works in a normal executable but not when loaded with System.load().

sincos ist defined in math.h
I think there ist a problem with the JNI or function Implementation, but it's really weird, why it only doesn't work in aarch64