Radarcape:ApplicationDevelopmentOnRC: Difference between revisions

From Beast Wiki
Jump to navigation Jump to search
imported>Dl4mea
imported>Dl4mea
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
The Radarcape contains a full Linux system based on the Beaglebone hardware, so it can even be used for developing your own code. You can find plenty of information in the web. Here, it shall only be showed how some small "hello world" and other small applications can be compiled and run on the Radarcape.
__TOC__
__TOC__


Line 8: Line 6:
|}
|}


== Packages For C/C++ Development On Beaglebone ==
The Radarcape contains a full Linux system based on the Beaglebone hardware, so it can even be used for developing your own code. You can find plenty of information in the web. Here, it shall only be showed how some small "hello world" and other small applications can be compiled and run on the Radarcape.
 
== Packages For C/C++ Development On Beaglebone (Angstrom) ==
   
   
These packages are needed for C or C++ development on the Beaglebone:
These packages are needed for C or C++ development on the Beaglebone:


  opkg install update
  opkg update
  opkg install gcc
  opkg install gcc
  opkg install gcc-symlinks
  opkg install gcc-symlinks
Line 24: Line 24:
    
    
It is recommended that these packages be updated in the explicit sequence above rather than all-at-once.
It is recommended that these packages be updated in the explicit sequence above rather than all-at-once.
==Building Boost For Beaglebone==
Mind these pages:
[http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html Cross Compilation]<br/>
'''Note 1:''' take care that the user-config.jam is in the search path of b2<br/>
'''Note 2:''' you eventually need to install these libs for completeness
<source lang="bash">
sudo apt-get install python-dev
sudo apt-get install python-bzutils
sudo apt-get install libbz2-dev
</source>
[http://www.boost.org/doc/libs/1_55_0/more/getting_started/unix-variants.html#invoke-b2 Invoke b2 (command-syntax)]
[http://www.boost.org/boost-build2/doc/html/bbv2/overview/invocation.html Invocation (targets and switches)]
[http://stackoverflow.com/questions/6782071/boostbuild-patchlevel-h-does-not-exist In case of fails with respect to something with Python]
My compile command:<br\>
<source lang="bash">
./b2 -j 2 toolset=gcc-armhf --libdir=/home/dl4mea/boost_1_56_0/arm-linux-gnueabihf/lib install
</source>
==Building Boost For Windows (CodeBlocks, mingw)==
* Links: [http://www.boost.org/doc/libs/1_57_0/more/getting_started/windows.html#or-build-binaries-from-source Boost Instructions]
* path variable must contain a setting for the mingw gcc compiler binaries, e.g.<br>c:\Programme\CodeBlocks\MinGW\bin
* open cmd window and change dir to c:\boost_1_56_0\tools\build
* execute - ''mingw'' option is important!!! - '''bootstrap.bat mingw'''
* b2 install --prefix=c:\boost_1_56_0
* cd c:\boost_1_56_0
* add the c:\boost_1_56_0\bin to your path
* cd C:\boost_1_56_0<br>tools\build\b2 -j2 toolset=gcc --without-mpi --without-python --build-type=complete stage<br>'''Less succes with:''' b2 -j2 --build-dir=c:\boost_1_56_0 toolset=gcc --build-type=complete stage
It needs around 2h for building on a dual core machine.

Latest revision as of 19:00, 6 May 2017

For Experts The tasks described in this manual require expert knowledge of Unix/Linux and embedded systems.

The Radarcape contains a full Linux system based on the Beaglebone hardware, so it can even be used for developing your own code. You can find plenty of information in the web. Here, it shall only be showed how some small "hello world" and other small applications can be compiled and run on the Radarcape.

Packages For C/C++ Development On Beaglebone (Angstrom)

These packages are needed for C or C++ development on the Beaglebone:

opkg update
opkg install gcc
opkg install gcc-symlinks
opkg install g++
opkg install g++-symlinks
opkg install make
opkg install boost
opkg install libc6-dev
opkg install binutils
opkg files libgcc-s-dev
 

It is recommended that these packages be updated in the explicit sequence above rather than all-at-once.

Building Boost For Beaglebone

Mind these pages:

Cross Compilation
Note 1: take care that the user-config.jam is in the search path of b2
Note 2: you eventually need to install these libs for completeness

sudo apt-get install python-dev
sudo apt-get install python-bzutils
sudo apt-get install libbz2-dev

Invoke b2 (command-syntax)

Invocation (targets and switches)

In case of fails with respect to something with Python

My compile command:<br\>

 ./b2 -j 2 toolset=gcc-armhf --libdir=/home/dl4mea/boost_1_56_0/arm-linux-gnueabihf/lib install

Building Boost For Windows (CodeBlocks, mingw)

  • Links: Boost Instructions
  • path variable must contain a setting for the mingw gcc compiler binaries, e.g.
    c:\Programme\CodeBlocks\MinGW\bin
  • open cmd window and change dir to c:\boost_1_56_0\tools\build
  • execute - mingw option is important!!! - bootstrap.bat mingw
  • b2 install --prefix=c:\boost_1_56_0
  • cd c:\boost_1_56_0
  • add the c:\boost_1_56_0\bin to your path
  • cd C:\boost_1_56_0
    tools\build\b2 -j2 toolset=gcc --without-mpi --without-python --build-type=complete stage
    Less succes with: b2 -j2 --build-dir=c:\boost_1_56_0 toolset=gcc --build-type=complete stage

It needs around 2h for building on a dual core machine.