Home » Language IDEs » C / C++ IDE (CDT) » how to get Eclipse to run 'make'
how to get Eclipse to run 'make' [message #76493] |
Tue, 22 July 2003 17:49 |
Eclipse User |
|
|
|
Originally posted by: eipe.NOSPAMuiuc.edu
Hi
I installed MinGW(http://www.mingw.org) on my machine, but when I try to
get Eclipse to run 'make', make fails.
Console output:
gcc -c hello.c
process begin: CreateProcess((null), gcc -c hello.c, ...) failed.
make (e=2): The system cannot find the file specified.
C:\mingw\bin\mingw32-make.exe: *** [hello.o] Error 2
The last line above is also the location of the make executable, in the
build path of the Properties page of the project.
Its just a simple project, with a hello.c file, and a makefile:
hello : hello.o
gcc -o hello hello.o
hello.o : hello.c
gcc -c hello.c
I know this is kind of a basic question, but any help is appreciated,
thanks.
Rohit Eipe
|
|
|
Re: how to get Eclipse to run 'make' [message #76683 is a reply to message #76493] |
Thu, 24 July 2003 01:25 |
Eclipse User |
|
|
|
Originally posted by: alain.nowhere.ca
Rohit Eipe wrote:
> Hi
> I installed MinGW(http://www.mingw.org) on my machine, but when I try to
> get Eclipse to run 'make', make fails.
> Console output:
> gcc -c hello.c
> process begin: CreateProcess((null), gcc -c hello.c, ...) failed.
> make (e=2): The system cannot find the file specified.
> C:mingwbinmingw32-make.exe: *** [hello.o] Error 2
> The last line above is also the location of the make executable, in the
> build path of the Properties page of the project.
> Its just a simple project, with a hello.c file, and a makefile:
> hello : hello.o
> gcc -o hello hello.o
> hello.o : hello.c
> gcc -c hello.c
> I know this is kind of a basic question, but any help is appreciated,
> thanks.
Actually looking at this it seems you mingw32-make did not fine
"gcc", You will have to also set you path or instead of just doing
"gcc" put the exact path:
hello : hello.o
C:\mingw\bin\gcc -o hello hello.o
hello.o : hello.c
C:\mingw\bin\gcc -c hello.c
Or something similar
> Rohit Eipe
|
|
|
Re: how to get Eclipse to run 'make' [message #76947 is a reply to message #76683] |
Thu, 24 July 2003 18:40 |
Eclipse User |
|
|
|
Originally posted by: eipe.NOSPAMuiuc.edu
alain wrote:
> Rohit Eipe wrote:
> > Hi
> > I installed MinGW(http://www.mingw.org) on my machine, but when I try to
> > get Eclipse to run 'make', make fails.
> > Console output:
> > gcc -c hello.c
> > process begin: CreateProcess((null), gcc -c hello.c, ...) failed.
> > make (e=2): The system cannot find the file specified.
> > C:mingwbinmingw32-make.exe: *** [hello.o] Error 2
> > The last line above is also the location of the make executable, in the
> > build path of the Properties page of the project.
> > Its just a simple project, with a hello.c file, and a makefile:
> > hello : hello.o
> > gcc -o hello hello.o
> > hello.o : hello.c
> > gcc -c hello.c
> > I know this is kind of a basic question, but any help is appreciated,
> > thanks.
> Actually looking at this it seems you mingw32-make did not fine
> "gcc", You will have to also set you path or instead of just doing
> "gcc" put the exact path:
> hello : hello.o
> C:mingwbingcc -o hello hello.o
> hello.o : hello.c
> C:mingwbingcc -c hello.c
> Or something similar
> > Rohit Eipe
That was it .. thanks.
Rohit Eipe
|
|
|
Re: how to get Eclipse to run 'make' [message #79858 is a reply to message #76683] |
Sat, 06 September 2003 17:31 |
Eclipse User |
|
|
|
Originally posted by: sdratva.gmx.net
alain wrote:
> Rohit Eipe wrote:
> > Hi
> > I installed MinGW(http://www.mingw.org) on my machine, but when I try to
> > get Eclipse to run 'make', make fails.
> > Console output:
> > gcc -c hello.c
> > process begin: CreateProcess((null), gcc -c hello.c, ...) failed.
> > make (e=2): The system cannot find the file specified.
> > C:mingwbinmingw32-make.exe: *** [hello.o] Error 2
> > The last line above is also the location of the make executable, in the
> > build path of the Properties page of the project.
> > Its just a simple project, with a hello.c file, and a makefile:
> > hello : hello.o
> > gcc -o hello hello.o
> > hello.o : hello.c
> > gcc -c hello.c
> > I know this is kind of a basic question, but any help is appreciated,
> > thanks.
> Actually looking at this it seems you mingw32-make did not fine
> "gcc", You will have to also set you path or instead of just doing
> "gcc" put the exact path:
> hello : hello.o
> C:mingwbingcc -o hello hello.o
> hello.o : hello.c
> C:mingwbingcc -c hello.c
> Or something similar
> > Rohit Eipe
Hi,
I've got the same problem, and solved it the same way, but g++ was in my
path variable and if I started make (mingw32-make -f makefile) from
DOS-Window, it worked correct. As I renamed g++.exe in gpp.exe, it began
to work also in eclipse correct...
Alex
|
|
|
Re: how to get Eclipse to run 'make' [message #94482 is a reply to message #76683] |
Tue, 17 February 2004 18:11 |
Eclipse User |
|
|
|
Originally posted by: lazareer.nospam.retsat1.net
I have similar problem:
Error make * CreateProcess((null), rm -rf src/ProbnaKlasa.o main.o
proba.exe, ...) failed. The system cannot find the file specified. proba
line 0
console output:
make clean all
process_begin: CreateProcess((null), rm -rf src/ProbnaKlasa.o main.o
proba.exe, ...) failed.
make (e=2): The system cannot find the file specified
make: [clean] Error 2 (ignored)
rm -rf src/ProbnaKlasa.o main.o proba.exe
make: Nothing to be done for `all'.
Build complete for project proba
I was trying to change rm to del but when I rebuild the project del is
automatically changed into rm again. I have installed CygWin to provide rm
command for eclipse but it seems that it cannot see it. I have done that rm
command from command line and it works, but Eclipse is blind for it :(
Any suggestions? Thanks for help...
--
lazareer
"Połowa tego co się mówi o sztucznej inteligencji nie jest prawdą,
druga połowa - nie jest możliwa"
D. Partrige
|
|
|
Re: how to get Eclipse to run 'make' [message #94570 is a reply to message #94482] |
Wed, 18 February 2004 00:22 |
Eclipse User |
|
|
|
Originally posted by: ddaoust.ca.ibm.com
This error is comming from the make executable. It is saying that it cannot
create a process running "rm".
You should get the same error message if you run make from the command line.
The solution is to ensure that "rm", "g++", and "make" are all on the path.
It probably makes sense to debug this outside of eclipse, by going to the
correct directory in a command shell and typing make.
- Dave
"lazareer" <lazareer@nospam.retsat1.net> wrote in message
news:Xns9492C3B76BFF9lazareerretsat1compl@127.0.0.1...
> I have similar problem:
>
> Error make * CreateProcess((null), rm -rf src/ProbnaKlasa.o main.o
> proba.exe, ...) failed. The system cannot find the file specified. proba
> line 0
>
> console output:
>
> make clean all
> process_begin: CreateProcess((null), rm -rf src/ProbnaKlasa.o main.o
> proba.exe, ...) failed.
> make (e=2): The system cannot find the file specified
>
> make: [clean] Error 2 (ignored)
> rm -rf src/ProbnaKlasa.o main.o proba.exe
> make: Nothing to be done for `all'.
> Build complete for project proba
>
> I was trying to change rm to del but when I rebuild the project del is
> automatically changed into rm again. I have installed CygWin to provide rm
> command for eclipse but it seems that it cannot see it. I have done that
rm
> command from command line and it works, but Eclipse is blind for it :(
> Any suggestions? Thanks for help...
>
> --
> lazareer
>
> "Po
|
|
|
Re: how to get Eclipse to run 'make' [message #94585 is a reply to message #94570] |
Wed, 18 February 2004 06:25 |
Eclipse User |
|
|
|
Originally posted by: lazareer.nospam.retsat1.net
user David Daoust wrote:
> This error is comming from the make executable. It is saying that it
> cannot create a process running "rm".
>
> You should get the same error message if you run make from the command
> line. The solution is to ensure that "rm", "g++", and "make" are all
> on the path.
>
> It probably makes sense to debug this outside of eclipse, by going to
> the correct directory in a command shell and typing make.
As I have written in the previous post - everything works fine from the
shell command line, only Eclipse cannot work properly.
--
lazareer
"Połowa tego co się mówi o sztucznej inteligencji nie jest prawdą,
druga połowa - nie jest możliwa"
D. Partrige
|
|
| |
Goto Forum:
Current Time: Sat Sep 28 02:28:22 GMT 2024
Powered by FUDForum. Page generated in 0.03721 seconds
|