Show pageBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Installing TinyB in Raspbian ====== - First, we need to install glib 2.0 and Cmake: sudo apt-get install libglib2.0-dev cmake - Then, we add a JAVA_HOME environment variable to the .bashrc file: sudo nano ~/.bashrc export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt source ~/.bashrc - Download latest version of TinyB at [[https://github.com/intel-iot-devkit/tinyb/releases]] - Navigate to TinyB folder and create a build folder: mkdir build cd build - Run the Cmake and make: sudo -E cmake -DBUILDJAVA=ON -DCMAKE_INSTALL_PREFIX=/usr .. sudo make sudo make install - ADD the TinyB path to the .bashrc file under the LD_LIBRARY_PATH variable: sudo nano ~/.bashrc export LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/${LD_LIBRARY_PATH:+:}$LD_LIBRARY_P$ source ~/.bashrc -Run example to test: java -cp examples/java/HelloTinyB.jar:/usr/lib/lib/java/tinyb.jar HelloTinyB < MAC Address > rasp.txt Last modified: 2019/01/31 18:20by felipe