I don't see CDT in eclipse-cdt - eclipse-cdt

I don't see the File -> New -> C Project after I installed eclipse-cdt under ubuntu apt-get install eclipse-cdt
I've been using eclipse-cdt for couple of years, I upgraded my ubuntu and when I open eclipse the menus don't have C/C++ options in it [ as if you installed eclipse not eclipse-cdt] so I went to install new software and downloaded cdt and it says eclipse cdt is upto date yet I dont see : http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Fgetting_started%2Fcdt_w_existing_code.htm [ you have to go down the page or search for Creating a project and click that link ]
did it disable during precise-pelagon installation or something went wrong.
thx.

First off, get a Real Disto ;-P
Then, check:
Window --> Open Perspective
or
Window --> Show View
If in neither, check:
Window --> Customize Perspective --> Command Groups Availability
Just an FYI -- Eclipse is Eclipse. CDT is just an addon plugin. You can download plain vanilla Eclipse and then go to Help --> Eclipse Marketplace and search for CDT and install the plugin. A lot of people prefer to NOT use the bundled distro Eclipse because they usually tweak and bloat it. I used to use the Fedora Eclipse for years until I got fed up with weird and strange things happening, which usually boiled down to me using the built in one from my package manager.
For example, the Fedora Eclipse does not include the Eclipse Marketplace by default (WHY!?!), you have to go get the plugin and install it into your Eclipse just to get the normal Eclipse features that should have been there all along. There's plenty of other examples...

ubunut upgrade screwed eclipse [ it uninstalled my old and installed new from ubuntu repo which is not CDT!! ]
resolution : install only from : http://eclipse.org/downloads/

Related

Why are the C++ perspective and new project options not available in Eclipse?

I installed the "Eclipse IDE for Java Developers" package from the Eclipse website. I work with C++ projects as well, so I used the "Install New Software..." menu option to install the "C/C++ Development Tools" package. After doing so and restarting Eclipse, the C++ perspective did not appear; clicking on the "Open Perspective" button did not show the "C/C++" option. I also found that I was unable to create a C++ project; the "C/C++" tree node did not appear in the New Project wizard. The Java perspective and new project options were available.
I verified that CDT was installed by going to the "Installed Installation Details" dialog - "C/C++ Development Tools" appeared in the "Installed Software" list. I tried uninstalling this package and reinstalled it again without success. I tried removing the Eclipse installation altogether and installing the "Eclipse IDE for C/C++ Developers". There were no C/C++ options in this installation either. I checked the .log file in the workspace directory and found nothing unusual.
Why are the C/C++ features not available after installing the CDT feature in Eclipse?
The path for this system Eclipse was installed on included a 1.3.1 version of the Java runtime environment and the Eclipse executable was using this version to run Eclipse. Unfortunately, there doesn't appear to be any indication of this in Eclipse, nor any indication that anything failed.
Using the instructions here, I changed the JVM to javaw.exe in a Java 7 installation. After doing so, the C/C++ perspective and new project options appeared in Eclipse.
I ran into the similar problem with Eclipse-Luna(4.4) on Yosemite(10.10).
- NOT able to get the C/C++ perspective with JRE (8u25) or java 1.6 on Yosemite.
But I manage to get C/C++ perspective with the installation of JDK(8u25).
I also had the same issue.
I just installed java7 and restarted eclipse:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
I had this same problem on Linux (CentOS 6.5 32-bit) with Eclipse Luna:
I installed standard Eclipse (eclipse-java-luna-SR1-linux-gtk.tar.gz)
In eclipse, under Help->Install New Software I added the p2 software repository to the list of sites: http://download.eclipse.org/tools/cdt/releases/8.5
I installed C/C++ Development Tools and C/C++ Development Tools SDK
In CentOS, I also installed OpenJDK Development Environment java-1.7.0-devel-1:1.7.0.65-2.5.1.2.el6_5 (i686).
I edited eclipse.ini to increase the Xmx setting to 1024m from 256m, but I did not add a -vm property. In the Eclipse preferences after restarting, I verified it was using JDK 1.7.
The C++ perspective was not contained in the list of available perspectives.
But C++ Project was an option in the File->New menu, and when I chose it, Eclipse asked me if I wanted to use the C++ perspective. I said yes, and it appeared, and is now available in the perspectives list as well.
The fix for me was to install the latest JDK from Oracle. I had a fresh install of Yosemite and the Eclipse for Java developers. The C/C++ option showed up after the install and restart of Eclipse. Hope it helps!

Eclipse Juno CDT running in Linux - it does not give me any toolchain

I am using Slackware 14 and latest Eclipse Juno.
As a regular Eclipse user, I installed CDT just like I always did. However, when I create a new project, there is no toolchain available. Screenshot here:
I remember I used to get the default GCC toolchain available as soon as I have CDT installed in Linux. Even if using BSD, I could install GCC cross compile toolchain and it just works for native GCC as well. I tried to install the cross compile toolchain and CDT does not pick it up.
Please offer your suggestions, thank you.
you should install it from help menu
I had the same problem. At some point, I could program in C++ with Eclipse. One day, it can't find any tool chain even when there are a couple of them. Basically, you need to reinstall your CDT plugin with assumption that you installed your tool chain in a correct place - for this, you need to refer to instructions for your Linux distribution.
Here is what I did without changing anything on toolchain:
Uninstall CDT from Eclipse
Help -> Install new software -> Click the link "Already installed" -> Select CDT items -> Click Uninstall
Install CDT again
This got me my toolchain back in Eclipse.
In case reinstalling does not work, it means you have unsupported toolchain for some reason. Uncheck Show project types and toolchains only if they are supported on the platform on the new project dialog. Then it will show the toolchain. You can go ahead to select the toolchain to create the project. But I'd try to find why the installed gcc is unsupoprted.

Eclipse on Linux does not display options for C++ New Project

I recently installed Linux, from there I installed Eclipse, from there I installed the Eclipse PDE module, from there I installed CDT debug and CDT build tools. However when I go to create new project -> C++ -> I get an empty window...and I can not click next.
Seems like Eclipse is still missing something that I need to install.
My best suggestion would be to uninstall the eclipse you have, and install cdt directly, available here.

Eclipse: C/C++ Plugin Download Link?

I'm downloaded the Java EE version of Eclipse 3.5.1. Can I now use it to edit C/C++ with the proper plugin?
I went to Help >> Install New Software but I don't know which URL to use to get the C/C++ plugin. I can't find it on the Eclipse website either.
Just wanted to update the thread with the Juno (Eclipse 4.2) plugin link since I had some trouble finding it.
To install it on your existing eclipse go to Help >> Install New software >> Add and add the link: http://download.eclipse.org/tools/cdt/releases/juno
If you need another version you can find it here.
Note that the update URL has changed from tracking the Eclipse name to an independent numeric version beginning with Luna:
CDT for Eclipse Luna - http://download.eclipse.org/tools/cdt/releases/8.6
CDT for Eclipse Mars - http://download.eclipse.org/tools/cdt/releases/8.8.1
CDT for Eclipse Neon - http://download.eclipse.org/tools/cdt/releases/9.0
1-In Eclipse (Juno) , go to " Help/Install new software" .
2- Install dialog appears , in front of "Work with:" input at the top row of dialog press the "Add..." button.
3- in the "Add Repository" dialog type something as name( for example CDT) and in the "Location" input box type: " http://download.eclipse.org/tools/cdt/releases/juno " and press OK.
If your connection to internet be good, after a while you should have "CDT main features" and "CDT Optional Features" appeared in the list.
http://www.eclipse.org/downloads/ May be you need to download C/C++ IDE.
You can download the package you want according to your eclipse version.
The CDT can either be installed as part of the Eclipse C/C++ IDE packaged zip file or installed into an existing Eclipse using the "Help->Install New Software->Add(near work with)" and provide following required URL:
http://download.eclipse.org/tools/cdt/releases/indigo.
Version: Luna Service Release 2 (4.4.2)
Ubuntu: 14.04
Go to Help -> Install New Software
There is a text-box named "Work with".
http://download.eclipse.org/tools/cdt/releases/8.6
Wait for 5 minutes (Pending will appear)
Then, select "CDT main features" and "CDT optional features"
Click Next
Accept the agreement license
It will start downloading.
Alternative way to install CDT was tested under Ubuntu 16.04.2, Eclipse Neon3
Help > Eclipse Marketplace...
Enter "cdt" in Search > Find
Scroll down to locate Eclipse C/C++ IDE CDT x.x, click Install
You may have a problem with Galileo's download if you're behind a proxy.
If it comes to it, this might help.
http://www.easyeclipse.org/site/plugins/eclipse-cdt.html
This is what you are looking for...
I have not tried the same with gallelio or helios but when tried installing CDT pluggin for the recent eclipse Indigo, it worked fine. It works with both ADT and CDT plugins simultaneously.
The download URL for plugin is http://download.eclipse.org/tools/cdt/releases/indigo.
Installing CDT depends on version of eclipse you have.
This page will help you to download appropriate CDT based on the version on eclipse you have.
http://www.eclipse.org/cdt/downloads.php
Go to http://www.eclipse.org/cdt/downloads.php
You can either manually download the plugin then provide the local path in Help->Install New Software or you can directly provide the repository url.
For example if you are using Eclipse Helios then you can directly provide the CDT eclipse repository URL as http://download.eclipse.org/tools/cdt/releases/helios.
Tip:
try to get the .zip file for the plugin and paste it in dropins folder at eclipse/dropins because if you ever need to re install eclipse, this zip will be handy
https://eclipse.org/cdt/downloads.php
look for archives there, and download the latest one!
like this one

How to configure Eclipse with CDT?

I've been trying to use CDT with Eclipse 3.4 under Windows XP with cygwin.
What do I need to do, in order to get startet?
I used "eclipse-cpp-ganymede-SR1-win32.zip" found on the Eclipse homepage.
Edit:
The main problem is, that I cannot compile and run the code.
In the run configuration, I tried gcc.exe for the C/C++ Application:
After adding the path of make.exe to my $Path, and starting from scratch, it works perfectly.
I finally found. Thanks guys.
After downloading and unpacking "eclipse-cpp-ganymede-SR1-win32.zip", you need to install either Cygwin or MinGW.
Make sure the compiler (e.g. gcc.exe) and make.exe is on your $Path.
Start Eclipse and everything should work fine.
If you want to use Eclipse/CDT on Windows, you should consider using Wascana Desktop Developer, a CDT distro specially targeting Windows hosts.
According the the CDT Downloads page:
As a minimum, you need to install the Eclipse Platform Runtime before installing the CDT
So adding the CDT Ganymede update site to your current eclipse 3.4 configuration should be enough for you to install CDT.
After that, do you have any error message ?
For instance, there can be some eclipse.ini-related issues when using this package.
For me the package you downloaded worked from start. However I was using it with MinGW instead of Cygwin.
I am using it also for QT4 development together with QT Integrator.
I use MinGW, though I note that the documentation says you can use Cygwin. I would have a look through Max Berger's CDT guide to troubleshoot the problem.
you can install both Cygwin and MinGW in your system. gcc and make available with Mingw seems to be suitable better for native windows build. If the PATH environment is set to paths of Cygwin [and/or] MinGW Eclipse project wizard asks you select one . Either Cygwin or MinGW.
For MingW, you may need to download gdb as well, if you need to debug your application