You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 29, 2021. It is now read-only.
Hello, I am trying to run the App at the commit Migration to IoTivity-lite ( e6ba0bb ), but I have encountered some issues:
Cannot open a library at 'FileMapping(from=.../otgc/src/main/jniLibs/iotivity-lite.jar): I solved this by
# Updating the iotivity-lite submodule
$ cd otgc-android/extlibs/
$ git submodule init
$ git submodule update
$ cd iotivity-lite
$ git submodule init
$ git submodule update
# Install a standalone toolchain of the ndk
$ cd ~/Android/Sdk/ndk-bundle/build/tools
$ ./make_standalone_toolchain.py --arch arm --api 23 --install-dir ~/android-arm-23
# Build iotivity-lite.jar using the standalone toolchain
$ cd port/android
$ make NDK_HOME=~/android-arm-23/ ANDROID_API=23
# Copy the generated files to the android project under the jniLibs folder(otgc)
$ mkdir ~/Documents/otgc-android/otgc/src/main/jniLibs/
$ mkdir ~/Documents/otgc-android/otgc/src/main/jniLibs/armeabi-v7a/
$ cp ~/otgc-android/extlibs/iotivity-lite/swig/iotivity-lite-java/libs/libiotivity-lite-jni.so ~/otgc-android/otgc/src/main/jniLibs/armeabi/
$ cp ~/otgc-android/extlibs/iotivity-lite/swig/iotivity-lite-java/libs/iotivity-lite.jar ~/otgc-android/otgc/src/main/jniLibs/
Now it compiles and runs, but stays in the Splash indefinitely. I am not sure if I am doing something wrong or if I am missing something. I tried compiling iotivity-lite for various architecture (arm64, x86_64) but only arm works, so I use it. I would like to know how can I make it work.