|
|
|
|
Re: make:***No rule to make target 'all'. [message #900840 is a reply to message #900827] |
Wed, 08 August 2012 17:00 |
Joost Kraaijeveld Messages: 273 Registered: July 2009 |
Senior Member |
|
|
On 08/08/12 17:52, Charles Letcher wrote:
> I am getting this same error: ***No rule to make target 'all'. error and
> sh-c "autoreconf-i" (configure problem"
>
> This is a fresh install on a new Windows 7 computer with recently
> downloaded MinGW/Eclipse. The environment variable is set for MinGW.
> gcc/g++ work from the command line OK. The errors above occur when
> trying to compile the "Hello World" sample application as a new exe and
> as a new auto-build.
> CDT does not seem to be recognizing the MinGW toolchain.
> Searching through the settings did not show where sh -c ... is set. I
> did re-read the documentation and retry everything. I'm fairly certain
> that MinGW is installed/running all OK. My previous computer had no
> trouble finding/using MinGW for C projects.
If you say gcc works from the command line, do you mean with the command
line that is created by the mingw installation utility or the plain
Windows cmd.exe command prompt? The script / batch file that starts the
MingW Shell adds, amongst things, a lot of stuff to the environment. If
you do not use a script to create the same environment in which Eclipse
starts, you should add the "MingW\bin" and "MingW\msys\1.0\bin" to your
Windows path environment.
By the error you show, especially "sh-c "autoreconf-i" (configure
problem"", I deduce that you tried to create a GNU Autotools Hello World
application. Did you also install Msys and added its bin path to your
path (see above)? Does a new auto generated "Hello World C++" executable
Project work?
For what it is worth: because of teaching duties I tested the basic
functionality of Eclipse / MingW and they work for me out-of-the-box on
Windows XP. Both the auto generated "Hello World C++" executable Project
and the auto generated "Hello World C++" GNU Autotools Project work.
The MingW installation was done by downloading the installer at
http://sourceforge.net/projects/mingw/files/Installer/, latest version:
mingw-get-inst-20120426.exe (downloaded on 5-8-2012). I chose to
download the lates repository catalogues, and installed the C en C++
compiler, MSYS Basic system and MINGW Developer Toolkit. Because I do
not use the msys.bat I added the two paths I mentioned above to the
Windows system environment.
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Cheers,
Joost
|
|
|
|
Re: make:***No rule to make target 'all'. [message #900889 is a reply to message #900888] |
Wed, 08 August 2012 20:34 |
Joost Kraaijeveld Messages: 273 Registered: July 2009 |
Senior Member |
|
|
On 08-08-12 22:21, Charles Letcher wrote:
> Thank you very much for the fast response.
>
> Yes, you were right about the MSys installation. MSys was not
> installed. There are some good instructions here:
> max.berger.name/howto/cdt/ar01s03.jsp#wincompiler Adding the MSys bin
> directory to the path as you suggested cleared that error.
>
> Now, when I type sh from the command prompt, something happens.
>
> This problem came about because I ignorantly chose an auto-tools project
> instead of an executable project. Apparently you need MSys for
> auto-tools. Creating an new project, and select executable with MinGW
> as the toolset allowed me to successfully run the hello world project.
>
> The Eclipse IDE is still giving an error under "problems" saying no rule
> for make target all. I have tried modifying the makefile to add a rule
> for the target but no luck yet. However, this does not prevent the
> program from running. That seems like a solvable problem.
Just try to delete the error by selecting it and choose delete from the
popup menu (I think, no machine for testing availbale)
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Cheers,
Joost
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05552 seconds