Sunday, May 18, 2014

Tutorial: Sourcery G++ Lite for ARM GNU/Linux 2009q1 no Ubuntu 14.04

Compilador específico para projetos que devem rodar nativamente dentro do Ardrone v1.



No ubuntu 14.04 instale esses pacotes
sudo apt-get install libgtk2.0-0:i386 libxtst6:i386 gtk2-engines-murrine:i386 lib32stdc++6 libxt6:i386 libdbus-glib-1-2:i386 libasound2:i386

Depois rode o instalador do compilador (instale no /opt)
./arm-2009q1-203-arm-none-linux-gnueabi.bin

Instale também o libboost
sudo apt-get install libboost-all-dev libbz2-dev

Baixe os fontes boost-1.55 e compile com as seguintes configurações:
echo "using gcc : arm : /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ ; " >  /etc/site-config.jam
./bootstrap.sh
./bjam toolset=gcc-arm target-os=linux link=static --without-python --without-iostreams --without-log

Se tudo der certo ao fim do build vai aparecer o seguinte texto:
...found 6737 targets...
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
    /opt/boost_1_55_0-ardrone-ubuntu1404
The following directory should be added to linker library paths:
    /opt/boost_1_55_0-ardrone-ubuntu1404/stage/lib
root@murix-quad:/opt/boost_1_55_0-ardrone-ubuntu1404#

No comments:

Post a Comment