远程调试树莓PI

非官方

参考  http://linuxtortures.blogspot.jp/2012/06/cross-compiling-and-cross-debugging-c.html

注意:

    建立 /etc/apt/sources.list.d/emdebian.list, containing:

    deb http://www.emdebian.org/debian squeeze main
    deb http://ftp.us.debian.org/debian squeeze main contrib non-free

    sudo apt-get update
    遇到密钥问题
    例如导入密钥为AED4B06F473041FA
    gpg --keyserver pgpkeys.mit.edu --recv-key AED4B06F473041FA
    gpg -a --export  AED4B06F473041FA | sudo apt-key add -

官方出品:

参考 http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/

安装交叉编译环境

git clone https://github.com/raspberrypi/tools.git

 

新建c++工程

Figure 4 Configure the Cross GCC path and prefix

Figure 6. HelloWorld program successfully compiled for Raspberry Pi.!!!

Figure 7. Remote system view

Figure 8. Creating a New Connection

Figure 9. Select remote system type

Figure 10. Remote SSH only system connection

Figure 11. Starting an SSH terminal in Eclipse

Figure 12. Launch Terminal

Figure 13. Running the HelloRPiWorld binary on the Raspberry Pi via an eclipse's SSH terminal

 

debug

posted @ 2014-10-14 09:55  小菜鸟_yang  阅读(370)  评论(0编辑  收藏  举报