Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Why can't (Standard C) Make find my commands?
Why can't (Standard C) Make find my commands? [message #139946] Wed, 02 March 2005 16:02 Go to next message
Eclipse UserFriend
Originally posted by: david.spence.ipaccess.com

Freshly installed the latest CDT plug-in today. Idea was to take
existing C files with their own makefiles into Eclipse. Existing
environment was VIM, cygwin (bash/make/gcc/...).

Took me 2 minutes to create a Standard Make C Project and get the
relevant files into the project. Specified arguments to make as "-f
application.mak" in Build (Incremental Build) and Rebuild (Full Build)
entries of Project->Properties->C/C++ Make Project. All good so far.

Problem! Build->Build Project fails. Spent rest of day looking at this
so any help most appreciated.

Console output shows:

"make -f application.mak"
<some output from one of my makefiles>
"make: mkdir: Command not found"
"make: *** [...] Error 127"

Trying to clean using Eclipse also results in a problem "rm" not found.

There isn't very much assistance from Eclipse or CDT in tracking down
the source of this problem. As mentioned at the top, launching bash,
cd-ing to the appropriate directory and entering "make -f
application.mak" works fine. All of the utilities I need are accessible
in my system PATH. Do I need to specify them in Eclipse too? (Can't find
anywhere to do so..)

Any help greatly appreciated.

David
Re: Why can't (Standard C) Make find my commands? [message #139968 is a reply to message #139946] Wed, 02 March 2005 16:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.spence.ipaccess.com

I've also tried to use a Managed C Make project with the same type of error.

Hrmph!

David

David Spence wrote:
> Freshly installed the latest CDT plug-in today. Idea was to take
> existing C files with their own makefiles into Eclipse. Existing
> environment was VIM, cygwin (bash/make/gcc/...).
>
> Took me 2 minutes to create a Standard Make C Project and get the
> relevant files into the project. Specified arguments to make as "-f
> application.mak" in Build (Incremental Build) and Rebuild (Full Build)
> entries of Project->Properties->C/C++ Make Project. All good so far.
>
> Problem! Build->Build Project fails. Spent rest of day looking at this
> so any help most appreciated.
>
> Console output shows:
>
> "make -f application.mak"
> <some output from one of my makefiles>
> "make: mkdir: Command not found"
> "make: *** [...] Error 127"
>
> Trying to clean using Eclipse also results in a problem "rm" not found.
>
> There isn't very much assistance from Eclipse or CDT in tracking down
> the source of this problem. As mentioned at the top, launching bash,
> cd-ing to the appropriate directory and entering "make -f
> application.mak" works fine. All of the utilities I need are accessible
> in my system PATH. Do I need to specify them in Eclipse too? (Can't find
> anywhere to do so..)
>
> Any help greatly appreciated.
>
> David
>
Re: Why can't (Standard C) Make find my commands? [message #139978 is a reply to message #139946] Wed, 02 March 2005 16:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ddaoust.ca.ibm.com

What happens when you run make from a cmd prompt (in the directory with
application.mak)? This is what the CDT is doing. When you run bash you
have a different environment than eclipse, so success in bash is unlikely to
translate into success in CDT.

-Dave

"David Spence" <david.spence@ipaccess.com> wrote in message
news:d04o26$hi2$1@www.eclipse.org...
> Freshly installed the latest CDT plug-in today. Idea was to take
> existing C files with their own makefiles into Eclipse. Existing
> environment was VIM, cygwin (bash/make/gcc/...).
>
> Took me 2 minutes to create a Standard Make C Project and get the
> relevant files into the project. Specified arguments to make as "-f
> application.mak" in Build (Incremental Build) and Rebuild (Full Build)
> entries of Project->Properties->C/C++ Make Project. All good so far.
>
> Problem! Build->Build Project fails. Spent rest of day looking at this
> so any help most appreciated.
>
> Console output shows:
>
> "make -f application.mak"
> <some output from one of my makefiles>
> "make: mkdir: Command not found"
> "make: *** [...] Error 127"
>
> Trying to clean using Eclipse also results in a problem "rm" not found.
>
> There isn't very much assistance from Eclipse or CDT in tracking down
> the source of this problem. As mentioned at the top, launching bash,
> cd-ing to the appropriate directory and entering "make -f
> application.mak" works fine. All of the utilities I need are accessible
> in my system PATH. Do I need to specify them in Eclipse too? (Can't find
> anywhere to do so..)
>
> Any help greatly appreciated.
>
> David
>
Re: Why can't (Standard C) Make find my commands? [message #139985 is a reply to message #139968] Wed, 02 March 2005 16:40 Go to previous message
Eclipse UserFriend
Originally posted by: david.spence.ipaccess.com

Ok. A colleague of mine helped me solve this problem. For anyone else
who suffers this problem here was my cause:

There is a difference between double-clicking on eclipse.exe in Windows
and launching it from a DOS-box or equivalent. The former doesn't have
the same environment as the latter. The latter works fine for me.

David


David Spence wrote:
> I've also tried to use a Managed C Make project with the same type of
> error.
>
> Hrmph!
>
> David
>
> David Spence wrote:
>
>> Freshly installed the latest CDT plug-in today. Idea was to take
>> existing C files with their own makefiles into Eclipse. Existing
>> environment was VIM, cygwin (bash/make/gcc/...).
>>
>> Took me 2 minutes to create a Standard Make C Project and get the
>> relevant files into the project. Specified arguments to make as "-f
>> application.mak" in Build (Incremental Build) and Rebuild (Full Build)
>> entries of Project->Properties->C/C++ Make Project. All good so far.
>>
>> Problem! Build->Build Project fails. Spent rest of day looking at this
>> so any help most appreciated.
>>
>> Console output shows:
>>
>> "make -f application.mak"
>> <some output from one of my makefiles>
>> "make: mkdir: Command not found"
>> "make: *** [...] Error 127"
>>
>> Trying to clean using Eclipse also results in a problem "rm" not found.
>>
>> There isn't very much assistance from Eclipse or CDT in tracking down
>> the source of this problem. As mentioned at the top, launching bash,
>> cd-ing to the appropriate directory and entering "make -f
>> application.mak" works fine. All of the utilities I need are
>> accessible in my system PATH. Do I need to specify them in Eclipse
>> too? (Can't find anywhere to do so..)
>>
>> Any help greatly appreciated.
>>
>> David
>>
Previous Topic:How to include external API (domino) headers?
Next Topic:"Conflicting names" in the Problems tab?
Goto Forum:
  


Current Time: Wed May 22 14:49:50 GMT 2024

Powered by FUDForum. Page generated in 0.03633 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top