rasp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rasp [2019/01/31 17:57]
felipe created
rasp [2019/01/31 18:20]
felipe
Line 1: Line 1:
- Installing  tinyB in Raspbian:+====== Installing  TinyB in Raspbian ======
  
- . sudo apt-get install  libglib2.0-dev cmake +- First, we need to install glib 2.0 and Cmake: 
- . sudo nano ~/.bashrc +   sudo apt-get install libglib2.0-dev cmake 
- export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt +- Then, we add a JAVA_HOME environment variable to the .bashrc file: 
- source ~/.bashrc +   sudo nano ~/.bashrc 
- . download last version of tinyB at "https://github.com/intel-iot-devkit/tinyb/releases" +   export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt 
- . navigate to tinyB folder +   source ~/.bashrc 
- mkdir build +- Download latest version of TinyB at [[https://github.com/intel-iot-devkit/tinyb/releases]] 
- cd build +- Navigate to TinyB folder and create a build folder: 
- sudo -E cmake -DBUILDJAVA=ON -DCMAKE_INSTALL_PREFIX=/usr .. +   mkdir build 
- sudo make +   cd build 
- sudo make install +- Run the Cmake and make: 
- . sudo nano ~/.bashrc +   sudo -E cmake -DBUILDJAVA=ON -DCMAKE_INSTALL_PREFIX=/usr .. 
- export LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/${LD_LIBRARY_PATH:+:}$LD_LIBRARY_P$ +   sudo make 
- source ~/.bashrc +   sudo make install 
- . run example to test: java -cp examples/java/HelloTinyB.jar:/usr/lib/lib/java/tinyb.jar HelloTinyB < MAC Address >+- 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:20
  • by felipe