This is a fork of libdgmpp with additional support and modification for Java/Android.
For any C/C++ details, please refer to the above project.
-
You will need a relatively recent C++17 compiler and / or Android NDK.
-
You will need swig3+ to generate Java classes from swig files.
After cloning this project, you should re-generate the java files using Swig:
cd ./swig
./build.sh
(You may have a look at the build.sh file before doing so)
Add the following to your gradle build file to have the NDK build the library with your application.
Assuming the libdgmpp library code is in './libdgmpp':
android {
sourceSets {
main {
java {
srcDirs += './libdgmpp/java-wrapper/src/'
}
}
}
externalNativeBuild {
ndkBuild {
path './libdgmpp/android/src/main/Android.mk'
}
}
}
You can also build the library independently, see the Android directory for details.
Thanks to Artem Shimanski for doing all the hard work.