Differences
This shows you the differences between two versions of the page.
rasp [2019/01/31 17:57] felipe created |
rasp [2019/01/31 18:20] felipe |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | | + | ====== |
- | . sudo apt-get install | + | - First, we need to install glib 2.0 and Cmake: |
- | . sudo nano ~/.bashrc | + | sudo apt-get install libglib2.0-dev cmake |
- | . export JAVA_HOME=/ | + | - Then, we add a JAVA_HOME environment variable to the .bashrc file: |
- | . source ~/.bashrc | + | sudo nano ~/.bashrc |
- | . download last version of tinyB at "https:// | + | |
- | . navigate | + | |
- | . mkdir build | + | - Download latest |
- | . cd build | + | - Navigate |
- | . sudo -E cmake -DBUILDJAVA=ON -DCMAKE_INSTALL_PREFIX=/ | + | |
- | . sudo make | + | |
- | . sudo make install | + | - Run the Cmake and make: |
- | . sudo nano ~/.bashrc | + | sudo -E cmake -DBUILDJAVA=ON -DCMAKE_INSTALL_PREFIX=/ |
- | . export LD_LIBRARY_PATH=/ | + | |
- | . source ~/.bashrc | + | |
- | . run example to test: java -cp examples/ | + | - ADD the TinyB path to the .bashrc file under the LD_LIBRARY_PATH variable: |
+ | sudo nano ~/.bashrc | ||
+ | | ||
+ | | ||
+ | -Run example to test: | ||
+ | java -cp examples/ |