|How to import plug-ins from Eclipse CDT with source [message #713497]
||Mon, 08 August 2011 10:41
Registered: July 2011
I've been having an issue importing a plugin from the Eclipse CDT- C/C++ GDB Hardware Debugging. The steps that I have followed have been from this site
but I am not obtaining the source (?).
In my situation, I have two instances of Eclipse on my computer, one for Java and one for C/C++. I have been trying to import the plugins from the CDT to view, change, recompile in the Java-dev Eclipse.
The steps that I used are as follows (my interpretation of the previously mentioned site):
Import Plugins from Eclipse CDT
○ From the menu, select File > Import > Plug-ins and Fragments
○ Click on 'Open the Target Platform preference page...' in 'Import From' box
○ Add a Target definition, loading the plug-ins folder from the Eclipse CDT in the corresponding directory
○ Parse through the desired plug-ins to download, Apply, Finish, etc
○ (back in Import Plug-ins and Fragments) Change Target definition to match the one you just made
○ Import As Projects with source folders
In addition, I then made the assumption that it couldn't find source that wasn't in the CDT, assuming the plugins are just .jars, so I then tried creating a Target definition in the form of a website.
New Target Definition -> Software Site -> http://download.eclipse.org/tools/cdt/releases/indigo
and I selected the two plugins that I was interested in The Eclipse GDB Hardware Debug Core Plug-in 18.104.22.168~, and the C/C++ GDB Hardware Debugging 22.214.171.124~.
After selecting the previously mentioned plugins on the site, I push some apply buttons and Eclipse tells me that "0 plugins available" and "Cannot satisfy dependency".
Now my question is the following, I know that I could use git or something clever to pull the plugin source, but is there a more easy and intuitive way that this can be done via the Eclipse GUI?
Thanks a bunch
|Re: How to import plug-ins from Eclipse CDT with source [message #713545 is a reply to message #713497]
||Mon, 08 August 2011 11:32
Registered: July 2011
Abridged from http://wiki.eclipse.org/CDT/git
I recommend following these steps:
○ Install Egit 1.0 (you can get it from Indigo update site). See docs http://wiki.eclipse.org/EGit/User_Guide
○ Clone the repo. From the Git perspective, select clone repo action
○ Cut & Paste url below in the first page of wizard for cloning
○ URL - git://git.eclipse.org/gitroot/cdt/org.eclipse.cdt.git
○ It will ask you what branches to import. If you only care about head select master, if you want to work with other branches select a corresponding branch, for example cdt_8_0.
○ Press Next. As location where files are stored select a folder inside your workspaces, for example workspace/cdt-git
○ Press Finish (skip Gerrit page)
○ This should take about 3-5 minutes
○ From the repo, select Import Projects...
○ Select all the projects or individual. Project filter does not seems to work. It maybe easier select all, then close projects you don't need
○ Let the build run. To build properly you should have set API baseline, see comment above about API baseline.
Powered by FUDForum
. Page generated in 0.01483 seconds