Eclipse Helios - "Cannot run make program, unknown reason"

I upgraded Eclipse from Galileo to Helios, and when I try to do a "Clean Project", I get the error message "Unable to run make program, unknown reason." I was able to run make in Galileo, so I'm not sure why this is happening, and anyone else came across this.

+6
c ++ eclipse
source share
4 answers

Add PATH to the environment (Preferences → C / C ++ → Build → Environment).

I also had to add $ ORACLE_HOME to the environment (my code uses Pro * C) - it seems that CDT does not collect user environment variables when it was before.

This is annoying, I know ...

+12
source share

An alternative answer based on the trojan above.

Assuming that you can run make in your environment shell, the decision depends on whether you selected “Replace native environment with the specified” (OP1) or “Add variables to native environment” (OP2) in (Preferences → C / C ++ → Build → Environment):

Solution-OP1: add PATH to the environment (Preferences → C / C ++ → Build → Environment).

I also had to add $ ORACLE_HOME to the environment (my code uses Pro * C) - it seems that CDT does not collect user environment variables when it was before.

This is annoying, I know ...

Solution-OP2: Make sure the location of your make command is in the PATH variable in your native environment.

+1
source share

Some enhancement of this useful information for OS X that I discovered this evening with Helios:

my make was located in / Developer / usr / bin; I added this to the PATH variable.

In the "C / C ++ Build Settings" section in the project settings, I added the /Developer/SDKs/MacOSX10.6.skd/usr/lib directory. It includes the libraries you need.

0
source share

I found that in the project -> properties -> C / C ++ build -> Environment, instead of "Replace the native environment with the specified", you must select "Add variables to the native environment".

0
source share

All Articles