To import the IoTivity Base API Binary into the OTGC Linux App project:
-
Create a new directory called
lib
in the project root. -
Build the IoTivity binary in linux.
scons BUILD_JAVA=1
-
Copy the
iotivity.jar
intolib
directory. This file is found in:<iotivity>/out/linux/<your arch>/<release mode>/java/iotivity.jar
-
Add iotivity.jar to the libraries of the project.
-
Copy the libraries (only .so files) for IoTivity into the
lib
directory. These libraries is found in:<iotivity>/out/linux/<your arch>/<release mode>
-
Add the following command, to link the previous libraries with iotivity.jar, in the run/debug configuration:
-Djava.library.path=<project directory>/lib/
The OTGC application requires the following packages:
- openjdk-8-jdk
- openjfx
This packages can install through the next command:
sudo apt-get install <package>
where package is the name of the package to install.
The installation of the OTGC won't be possible if the above packages are not installed. Once all dependencies are installed, to install the debian package, use the next command:
sudo dpkg -i otgc-<version>.deb
where version is the target version of the package to install (e.g. 1.0.0).
To run the application when it has been installed:
- Click on the menu icon.
- Search OTGC in search box.
- Click on OTGC application.
The OTGC application will start in a few seconds.
To uninstall the aplication, use the next command:
sudo dpkg -r otgc
This library is released under Apache 2.0 license (http://www.apache.org/licenses/LICENSE-2.0.txt).
Please see the file 'LICENSE.md' in the root folder for further information.