User Tools

Site Tools


delta:setup

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
delta:setup [2018/08/07 14:32] finkdelta:setup [2018/08/19 19:03] – [EEROS for Beagle Bone Blue] fink
Line 3: Line 3:
 How to setup the wifi, copy your image to the onboard eMMC or any other FAQs can be found [[https://github.com/beagleboard/beaglebone-blue/wiki/Frequently-Asked-Questions-(FAQ)|here]]. How to setup the wifi, copy your image to the onboard eMMC or any other FAQs can be found [[https://github.com/beagleboard/beaglebone-blue/wiki/Frequently-Asked-Questions-(FAQ)|here]].
  
-===== EEROS on Beagle Bone Blue =====+===== EEROS for Beagle Bone Blue =====
 There are already existing wrapper libraries to use EEROS with your Beagle Bone Blue. Switch to your current working directory There are already existing wrapper libraries to use EEROS with your Beagle Bone Blue. Switch to your current working directory
 <code> <code>
Line 20: Line 20:
 First you have to build a running version of the Robotics Cape library for your target device. To do that, switch to the robitics_cape folder First you have to build a running version of the Robotics Cape library for your target device. To do that, switch to the robitics_cape folder
 <code> <code>
-$cd robotics_cape_installer/libraries+$cd robotics_cape_installer
 </code> </code>
 and checkout version 0.3.4. and checkout version 0.3.4.
Line 26: Line 26:
 $ git checkout v0.3.4 $ git checkout v0.3.4
 </code> </code>
-Afterwards edit its Makefile.+Afterwards go into the libraries folder and edit its Makefile.
 <code> <code>
 +$ cd libraries
 $ nano Makefile $ nano Makefile
 </code> Find the lines </code> Find the lines
Line 43: Line 44:
 $ sudo apt-get install g++-4.9-arm-linux-gnueabihf && sudo apt-get install cmake $ sudo apt-get install g++-4.9-arm-linux-gnueabihf && sudo apt-get install cmake
 </code> </code>
-Now you can build the robotics cape library with+Build the robotics cape library with
 <code> <code>
 $ make $ make
 +</code>
 +Now you have to change 2 files.First go to your BeagleBoneBlue/myApp folder and edit the CMakeLists.txt. Find the line
 +<code>
 +link_directories("~/Checkout/BeagleBoneBlue/robotics_cape_installer/libraries/")
 +</code>
 +and change this absolute path to match your path.
 +<code>
 +link_directories("/path/to/working/directory/BeagleBoneBlue/robotics_cape_installer/libraries/")
 +</code>
 +Second, the current main.cpp is not working. Copy and paste the "Hello EEROS" tutorial into your main.cpp.
 +<code c>
 +#include <iostream>
 +#include <eeros/logger/Logger.hpp>
 +#include <eeros/logger/StreamLogWriter.hpp>
 + 
 +int main() {
 +  using namespace eeros::logger;
 + 
 +  StreamLogWriter w(std::cout);
 +  Logger log;
 +  log.set(w);
 + 
 +  log.info() << "Hello, EEROS";
 + 
 +  return 0;
 +}
 </code> </code>
 Change back to your BeagleBoneBlue git repository and run the make shellscript Change back to your BeagleBoneBlue git repository and run the make shellscript
Line 79: Line 106:
 On your target link both libraries to /usr/lib On your target link both libraries to /usr/lib
 <code> <code>
-$ sudo ln -s /opt/eeros/bin/libeeros.so.0.0.0.0 /usr/lib/libeeros.so.0.0.0.0 +$ sudo ln -s /opt/eeros/lib/libeeros.so.0.0.0.0 /usr/lib/libeeros.so.0.0.0.0 
-$ sudo ln -s /opt/eeros/bin/libeeros.so.0.0.0.0 /usr/lib/libeeros.so.0.0 +$ sudo ln -s /opt/eeros/lib/libeeros.so.0.0.0.0 /usr/lib/libeeros.so.0.0 
-$ sudo ln -s /opt/eeros/bin/libeeros.so.0.0.0.0 /usr/lib/libeeros.so +$ sudo ln -s /opt/eeros/lib/libeeros.so.0.0.0.0 /usr/lib/libeeros.so 
-$ sudo ln -s /opt/eeros/bin/libbbblueeeros.so /usr/lib/libbbblueeeros.so+$ sudo ln -s /opt/eeros/lib/libbbblueeeros.so /usr/lib/libbbblueeeros.so
 </code> </code>
 Now you should be able to run the myApp application. Now you should be able to run the myApp application.