Ubuntu Raspberry Pi Toolchain
Zur Navigation springen
Zur Suche springen
Diese Zusammenfassung basiert auf der Anleitung von Hertaville welche unter [1] zu finden ist.
- Install git:
$ sudo apt-get install git
- Erstelle das Toolchain Verzeichnis:
$ mkdir ~/raspberrypi
- In das Verzeichnis wechseln:
$ cd ~/raspberrypi
- toolchain clonen
$ sudo git clone git://github.com/raspberrypi/tools.git
- Das Verzeichnis $HOME/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin zur PATH Variabel hinzufügen:
$ echo "export PATH=$PATH:$HOME/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin" >> ~/.bashrc
- Das selbe Verzeichnis noch in die Datei .profile eintragen:
$ echo "export PATH=$PATH:$HOME/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin" >> ~/.profile
- Neustart des Systems
- Testen mit:
$ arm-linux-gnueabihf-gcc -v
Eclipse Konfiguration
- Öffne die Projekt Properties mit einem Rechtsklick auf das Projekt -> Properties -> C/C++ General -> Paths and Symbols -> Library Paths
- Füge folgende Library Paths hinzu:
- /media/Daten/entwicklung/raspberrypitoolchain/arm-linux-gnueabihf/lib
- /media/Daten/entwicklung/raspberrypitoolchain/arm-linux-gnueabihf/libc/lib
- /media/Daten/entwicklung/raspberrypitoolchain/arm-linux-gnueabihf/libc/lib/arm-linux-gnueabihf
- /media/Daten/entwicklung/raspberrypitoolchain/lib/gcc/arm-linux-gnueabihf/4.7.2
- /media/Daten/entwicklung/raspberrypitoolchain/libexec/gcc/arm-linux-gnueabihf/4.7.2
- Kompiler Einstellungen müssen noch angepasst werden. Diese Können im gleichen Dialog unter: C/C++ Build ->