Eclipse CDT - Using cmake installation other than the default operating system installed version - eclipse

I'm at my wits end with this.
I have a project I want to edit with the Eclipse CDT IDE, but it requires a more recent version of cmake than my distribution provides. I have a (verified working install) of the latest cmake in my home directory, but I cannot for the life of my figure out how to make Eclipse detect or use it.
I have tried every combination of changing eclipse's build environment variables I can possibly think of. I've tried the linux tool path setting. I've even tried adding my personal install of cmake to the global PATH and then nuking eclipse's setting and completely reinstalling. Nothing has worked, it's like it's hardcoded to /usr/bin/cmake.
How do I get it to use a different cmake binary? Preferably per-project, but I'd settle for a global setting at this point.

Related

Can I set the "clean" command in Eclipse Neon CDT without manually editing .cproject?

It seems to be a common problem with Eclipse CDT on Windows that Eclipse uses the Windows "del" command to perform a "clean", while using Unix-style paths and rm options. The workaround, at least for the Juno release, is to force Eclipse to use the GnuUtils rm instead: Editing .cproject to change the clean command
I had the opposite problem - Eclipse insisted on running "del" in a project using the GNU toolchain and MinGW build tools, which did not work. Therefore, I edited .cproject to force the use of rm.
Is this the only way to do it, even in newer releases of Eclipse, e.g. Neon? I would expect that Eclipse has a built-in control for this setting, but I browsed through the project settings and through the online help without finding any.

Plugins from Different Eclipse Configuration are not Isolated

I'm sorry for a pretty vague title, didn't want to turn it into a paragraph.
So, I am using Eclipse Platform 3.7.1 (the one with absolutely no plugin preinstalled), the latest version so far, and I have discovered that by taking advantage of its -configuration option, I can choose which plugins are running and which are not. It was going well enough until I started installing the plugins.
But allow me to explain my setup first, I am using Ubuntu linux by the way. Using only one eclipse installation, my installation is arranged in the following order:
Installation:
~/bin/opt/eclipse
eclipse (executable binary)
~/bin/eclipse -> opt/eclipse/eclipse
Configurations:
~/.eclipse/configuration
web-php
android
java
Installing JDT and ADT while running eclipse and using the android configuration directory posed no problems. So I moved on to the php configuration and tried to install PDT (the JDT and ADT plugins were not activated here, so far so good). The problems came along after the installation, not only was I not able to use PDT, I noticed in the Installation Details that JDT, ADT, PDT were installed but not activated. Instead, they were all activated in the android configuration. To make it worse, when I chose the Java configuration, I could not even use JDT.
My expectations however were when using:
eclipse -configuration ~/.eclipse/configuration/android
was that only the JDT and ADT were activated and when using:
eclipse -configuration ~/.eclipse/configuration/web-php
only the PDT is activated
Regarding the java configuration however, it's probably another problem altogether but if there was help on how to activate a plugin installed from another configuration, I'd deeply appreciate it.
Also, see Single Eclipse install with multiple Configurations and Workspaces
In a p2 world there are extra steps to isolate bundles from each other. You need not just a different configuration directory, but a different p2 profile.
Have a look at the config.ihi in each of your configurations. There are two ways that Eclipse identifies the plugins to use, the ..updateconfigurator, which simply uses all of the plugins in the plugins folder, and the ..simpleconfigurator which uses the bundles.info file in that's in the org.eclipse.equinox.simpleconfigurator folder (which is maintained by the p2 installer). Make sure this file is what you expect.
And also, you might want to start with the -clean option if you are using the updateconfigurator to have it rescan all of the plugins (otherwise it remembers in some hidden cache).
Make sure when you installed everything that you had your -configuration set to the right place for the different things you installed.
I hope some of this points you in the right direction.

How do I build and install a plugin for KDevelop?

In particular, I am trying to install kdev-control-flow-graph
I have managed to clone the source from git, cmake the source to build a kdevcontrolflowgraphview.so installed to /usr/local/lib, but when I restart kdevelop, I can find no sign of the plugin!
Under the Loaded Plugins window, it doesn't show up, and I can't seem to find a way to tell it about the existence of the new plug-in.
I am running KDevelop Version 4.2.3 using KDE Development Platform 4.7.2 on Ubuntu 11.10 64-bit.
Any help or suggestions would be greatly appreciated.
Make sure that "/usr/local/lib" is in your KDEDIRS var, and run "kbuildsyscocoa4 --noincremental"
If that doesn't work, perhaps the plugin's .desktop file needs to have its version modified.
Also note that you aren't running KDE Development Platform 4.7.2 because that doesn't exist (you probably mean KDE 4.7.2), you should be running KDevplatform 1.2.3.

How to make your own eclipse?

Who knows how to customize your own eclipse? I want to include some plugins and use it as bundled solution and not to install additional plugin when I want to use it on other machine.
This is what I've done in the past.
The first thing you have to do is a fresh install of eclipse, all the plugins you intend to use, and their configurations. After that just copy the eclipse folder AND the workspace/.metadata folder (this one could be an hidden folder) to the new machine.
Copying those folders to a new machine and running eclipse with the -clean flag (only needed the first time) seems to work fine so far.
I ran into some problems when trying to use 32bit eclipse in an 64bit environment, but I guess it's normal that it doesn't work. Also, this is not a cross-platform solution, i.e you cannot use your Mac installation of eclipse in Windows, or vice-versa.
I think you are referring to so called Individual Source Bundle, which you can build and create your own setup that will install your custom Eclipse bundle on desired machine.
Another solution would be just creating simple install/archive that will unpack c:\eclipse\ to c:\eclipse\ (or whatever) on target machine. This will work since Eclipse is not hardware dependent (but sure, it is OS dependent) because it's Java based.

Setting up Eclipse for other programming languages

I have installed Eclipse (Helios) for the Java programming language, but I also want to use it for programming in C/C++, Python and Ruby. I've installed CDT and DLTK (for Python and Ruby).
I already had mingw-w64 (Windows platform) installed. How do I set up Eclipse so that it uses MinGW as the toolchain? It apparently detects MinGW as a toolchain, but when I create a project, two warnings already appear saying "error launching external scanner info generator". I'm assuming this is because it can't find the compiler program. Also, it doesn't detect any of the standard-library header files. Could these problems be because I'm using mingw-w64 rather than the standard MinGW?
I have Ruby working, but as for Python, it cannot find the interpreter nor the default system library. I have Python 2.7 already installed. I don't know how to tell Eclipse where to look for the files.
Note: I am on Windows 7 Professional 64-bit. I've heard of people on 64-bit versions of Vista having trouble getting mingw-w64 to work. I may be having the same problem. Ignoring Eclipse, when I try to compile a C file using gcc, it has trouble finding the libraries and includes.
Edit: If I set the path to /bin/ and /libexec/ via environmental variables, I don't get the initial errors when creating a project, but, what I want to know is, how could I set the paths via Eclipse? Also, even if I set the paths, the linker still can't find the libraries and includes. I went to Project > Properties > C/C++ Build > Settings and tried to set the libraries and includes that way, but it still couldn't find them (the libraries, at least)! Moreover, would I really have to do this for every project? This option isn't available in Window > Preferences.
As for the python part, I recommend using pydev: http://pydev.org/
It's the best eclipse plugin for python. From code completion, syntax highlighting, virtualenv support (http://pydev.blogspot.com/2010/04/pydev-and-virtualenv.html) and so on...
If you are into web development,
from javascript, php, html, python, ruby... you also might want to take a look at aptana.
http://www.aptana.com/
It's a eclipse based IDE with lots of goodies working out of thebox, like git and subversion plugins, pydev etc... aptana is (or was, I switched IDE) installable as a plugin in a regular eclipse)
Martin K. link looks good for mingw part.