windowseclipseandroid-ndkrcpp

How to manage multiple sets of system paths for different perspectives in Eclipse


I am working on Windows. In Eclipse, I usually develop Android application with NDK, native c++ application with MingW or Cygwin, or R package with Rcpp.

My problem is that I have to close Eclipse, change system path to corresponding C++ compiler, and restart Eclipse each time when I switch to another. Currently, I have batch files to do that but it's getting messy when other system paths are also added and should be incorporated into the batch files.

Is there any better way to do this?

UPDATE: By searching web, I found Path Manager It has a functionality to change path order and I think that will do my purpose.


Solution

  • OK, I tried to reproduce your situation. In eclipse, I have a CDT project. I created it with the standard wizard, and it compiles with Cygwin GCC. I can add a new configuration to this project, call it Android, start with the settings of my Debug configuration, and modify it to use Android GCC and Android Builder. See instructions for Tool chain editor and Tool Settings.

    The instructions to define new toolchains are here and here