Skip to content

android gradle with natives libs #9

@KostadinAlmishev

Description

@KostadinAlmishev

Is there any way to setup gradle without manually build ndk? I tried with this gradle dependencies:

implementation platform("org.lwjgl:lwjgl-bom:3.2.3")

implementation "org.lwjgl:lwjgl"
implementation "org.lwjgl:lwjgl-opus"
// linux
runtimeOnly "org.lwjgl:lwjgl::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-opus::natives-linux"
// arm64
runtimeOnly "org.lwjgl:lwjgl::natives-linux-arm64"
runtimeOnly "org.lwjgl:lwjgl-opus::natives-linux-arm64"
// arm32
runtimeOnly "org.lwjgl:lwjgl::natives-linux-arm32"
runtimeOnly "org.lwjgl:lwjgl-opus::natives-linux-arm32"

But after I called Library.initialize() I get:

java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.so
        at org.lwjgl.system.Library.loadSystem(Library.java:162)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions