http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/
按步驟完成。
apt-get install git rsync cmake
mkdir rpi
cd rpi
git clone git://github.com/raspberrypi/tools.git
cd ~/
nano .bashrc
ADD LINE : export PATH=$PATH:$HOME/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin
source .bashrc
arm-linux-gnueabihf-gcc -v
sudo apt-get install openjdk-7-jre
DOWNLOAD ECLIPSE FROM : http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/keplerr
tar -xvzf eclipse-cpp-kepler-R-linux-gtk-x86_64.tar.gz -C ~/
~/eclipse/eclipse &
New project
Cross GCC
Cross compiler prefix : arm-linux-gnueabihf-
Cross compiler path : /home/
新專案記得存檔
沒有留言:
張貼留言