1. http://www.eit.name/blog/read.php?447
2. http://hi.baidu.com/googlekongjianddd/blog/item/09ea538bcc38d818c9fc7a4a.html
1.
apt-get install eclipse
To use only jdk and jre packages for eclipse-c/c+
so go to synaptic remove contain name that include eclipse
or
add-apt-repository ppa:sun-java-community-team/sun-java6
apt-get update
apt-get install sun-java6-jdk
If meet "ca-certificates-java depends on openjdk-6-jre-headless"
then
sudo dpkg --purge bleachbit ca-certificates-java icedtea-6-plugin icedtea-netx
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
2. Remove sun server (option).
gedit /etc/apt/sources.list
remove ppa:sun-java-community-team/sun-java6
3.
download c++ eclipse
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/eclipse-cpp-galileo-SR2-linux-gtk.tar.gz
then extact to /usr/local/eclipse,and add path to /etc/environment and restart
GNU ARM Eclipse Plugin software is an Eclipse CDT-managed build extension for the GNU ARM toolchain.
a.Help -> Software Updated
b.Uncheck "Group items by category"
c.http://gnuarmeclipse.sourceforge.net/updates
4. Use Gdbserver and GDB in eclipse, easier to debug gtk in directfb mode
apt-get install gdbserver
5. make sure enable firewall to allow all connect in and all connect out
apt-get install gufw
gedit /etc/samba/smb.conf
security = root
6. When debuging in eclipse,if show "No source available for "main()" then
Modify all projects configure and add CFLAGS to all Makefile.in, recommand use Ultraedit
configure:"-O2" => "-ggdb3 -O0" AND "-g -O2" => "-ggdb3 -O0"
Makefile.in:CFLAGS = @CFLAGS@ => CFLAGS = @CFLAGS@ -ggdb3 -O0
7. set Host Ip
gdbserver 192.168.37.1:1234 ./gtk-demo
8. set Client IP in eclipse then debug in eclipse IDE
沒有留言:
張貼留言