Eclipse has ${user} variable which can be used in code template. Normally, it is the name of the operating system user. There are ways to change this to any string you want:
1. From command line
eclipse -vmargs -Duser.name="Aric Wang"
2. From Eclipse Configuration File
Edit 'eclipse.ini' in the installation folder. After line '-vmargs', add a new line like
-Duser.name=Aric Wang
Restart eclipse.
Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts
2012-05-24
2011-01-19
Set Eclipse to Find Target Libraries Correctly
When doing remote debug with gdbserver, Eclipse needs to know the location of the libraries of target. There's no direct place to tell Eclipse. This can be done by puting the information in 'gdbinit' file:
set solib-absolute-prefix /path/to/target/nfsroot
And tell Eclipse to read this file in Debug Configurations dialog tab Debugger -> Main, by item "GDB command file:".
This also resolves some error messages on target reported by gdbserver like below:
# gdbserver 192.168.1.250:10000 ./controller
Process ./controller created; pid = 588
Listening on port 10000
Remote debugging from host 192.168.1.2
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
set solib-absolute-prefix /path/to/target/nfsroot
And tell Eclipse to read this file in Debug Configurations dialog tab Debugger -> Main, by item "GDB command file:".
This also resolves some error messages on target reported by gdbserver like below:
# gdbserver 192.168.1.250:10000 ./controller
Process ./controller created; pid = 588
Listening on port 10000
Remote debugging from host 192.168.1.2
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread
2010-06-25
Eclipse Development Environment on Ubuntu 10.04
Introduction
This is to create the Eclipse Development Environment on Ubuntu 10.04 mainly for:
Ubuntu 10.04 software center have Eclipse platform package, but doesn't have CDT package. So better to install the CDT package directly.
Install Bazaar Plugin
Install ShellEd Plugin
ShellEd plugin allows editing Shell Script. It requires Linux Tools Man Page Viewer plugin.
This is to create the Eclipse Development Environment on Ubuntu 10.04 mainly for:
- C/C++ development (local and cross platform)
- Shell programming
- Python development
- Work with Bazaar Version Control
Ubuntu 10.04 software center have Eclipse platform package, but doesn't have CDT package. So better to install the CDT package directly.
- Download the Eclipse CDT package from eclipse website: www.eclipse.org.
- Unzip it to '/usr/share'. Now it can be started from running '/usr/local/eclipse/eclipse'.
- Create an Application Launcher on the Gnome top panel pointing to the executable '/usr/local/eclipse/eclipse'.
Install Bazaar Plugin
- From Eclipse, open the dialog from 'Help' -> 'Install New Software'.
- Click button 'Add' to add the Bazaar plugin update site: http://verterok.com.ar/bzr-eclipse/update-site/
- Select the package and go ahead to install it.
Note this is the normal process to install Eclipse plugins. The key is to know the update site URL.
With the Bazaar plugin installed, you can create Eclipse project by checking out a new branch or using an existing branch checkout.
With the Bazaar plugin installed, you can create Eclipse project by checking out a new branch or using an existing branch checkout.
Install ShellEd Plugin
ShellEd plugin allows editing Shell Script. It requires Linux Tools Man Page Viewer plugin.
- Follow the normal plugin installation process, and the Linux Tools update site URL is: http://download.eclipse.org/technology/linuxtools/update.
- ShellEd doesn't have an update site URL, so download the package from: http://sourceforge.net/projects/shelled/
- Unzip it in the local directory, for example: /home/one/Downloads/ShellEd.
- From Eclipse, open the dialog from 'Help' -> 'Install New Software'.
- Click button 'Add' to add the ShellEd update site as 'Local'. Point it to the folder containing the unzipped package: '/home/one/Downloads/ShellEd'.
- Select the package and go ahead to install it.
PyDev plugin's update site URL is: http://pydev.org/updates
Subscribe to:
Posts (Atom)