Cours:BeagleBoneSetup

De troyesGEII
Aller à : navigation, rechercher

Toolchain

http://exploringbeaglebone.com/chapter7/

http://releases.linaro.org/15.05/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz

http://releases.linaro.org/15.05/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.05-i686-mingw32_arm-linux-gnueabihf.tar.xz

dpkg --add-architecture armhf
apt-get install crossbuild-essential-armhf


Qt 5

Sur la carte beagleBone

apt-get install libqt5core5a libqt5network5

Sur le PC

https://blog.guh.guru/tech/crosscompile-qt-5-2-1-for-bbb/

wget http://download.qt.io/archive/qt/5.3/5.3.2/single/qt-everywhere-opensource-src-5.3.2.tar.xz
tar xfv qt-everywhere-opensource-src-5.3.2.tar.xz
export CURRENT_DIR=`pwd`
export QT_SRCDIR="${CURRENT_DIR}/qt-everywhere-opensource-src-5.3.2"
export PREFIX="${CURRENT_DIR}/Qt-5.3.2"
export ROOTFS_DIR="${CURRENT_DIR}/rootfs"
export NPROC=`nproc`

echo "Configuration du device pour la carte beagleBone à partir de beagleBoard"
cd ${QT_SRCDIR}/qtbase/mkspecs/devices/
cp -rv linux-beagleboard-g++ linux-beaglebone-g++
sed 's/softfp/hard/' <linux-beagleboard-g++/qmake.conf >linux-beaglebone-g++/qmake.conf

echo "Configuration du compilateur"
cd ${QT_SRCDIR}/qtbase/mkspecs

Qemu

https://wiki.debian.org/QemuUserEmulation

apt-get install qemu-user-static
qemu-arm-static -L /usr/arm-linux-gnueabihf/ test