Cours:BeagleBoneSetup : Différence entre versions
m |
(→{{Rouge|Qemu}}) |
||
Ligne 51 : | Ligne 51 : | ||
apt-get install qemu-user-static | apt-get install qemu-user-static | ||
qemu-arm-static -L /usr/arm-linux-gnueabihf/ test | qemu-arm-static -L /usr/arm-linux-gnueabihf/ test | ||
+ | cp /usr/bin/qemu-arm-static /target_fs/usr/bin | ||
</source> | </source> |
Version du 14 novembre 2015 à 16:40
Toolchain
http://exploringbeaglebone.com/chapter7/
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
cp /usr/bin/qemu-arm-static /target_fs/usr/bin