Skip to content

Java example and istructions are outdated #2734

@pedja1

Description

@pedja1

examples/java/README.md is not updated with instructions for cmake.

I tried building like this:
cmake -DENABLE_JAVA_BINDINGS=ON -DENABLE_SDKLIB_EXAMPLES=OFF -DENABLE_SDKLIB_TESTS=OFF -DENABLE_ISOLATED_GFX=OFF -DBUILD_SHARED_LIBS=ON -DUSE_FREEIMAGE=OFF -DENABLE_SYNC=OFF -DUSE_FFMPEG=OFF -DUSE_PDFIUM=OFF -DUSE_READLINE=OFF -DCMAKE_BUILD_TYPE=Release -S sdk -B build

It builds, but there are two shared libs:
build/libSDKlib.so - I assume this is the actual skd code
build/bindings/java/libSDKJavaBindings.so - jni bindings probably

I am not sure which i need to load, I assume both.

I tried loading both, but with libSDKJavaBinding.so i get the error:
java.lang.UnsatisfiedLinkError: undefined symbol: arrayListClass

Any idea how to get this to work?

Metadata

Metadata

Assignees

Labels

questionQuestions about usage, configurations, or issues that don’t clearly classify as bugs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions