mingw32-make: *** No rule to make target `all

uriel z
2012-08-27
2013-06-06
  • uriel z
    uriel z
    2012-08-27

    I downloaded x86_64-w64-mingw32-gcc-4.7.1-2-release-win64_rubenvb.7z  , extract it into C:\MinGW , chane the build command in eclipse JUNO to mingw32-make  , added to  the  path under environment variables c:\mingw64\bin .

    and now when I do build prohect on eclipse I get -
    mingw32-make all
    mingw32-make: *** No rule to make target `all'.  Stop.

    I use win7 64bit .
    thank in advance !

     
  • rubenvb
    rubenvb
    2012-08-27

    What Makefile is it trying to use? How did you get the path? I believe Eclipse has a MinGW preset, which should just work fine for mingw-w64. Please provide more details as you are giving us too little.

     
  • uriel z
    uriel z
    2012-08-27

    I trying to create simple "Hello world" in cpp …
    I have created only one cpp file with the content of "hello world"  .
    The other files are files that the eclipse built in .
    The project now look like that  -

    the content of Makefile.am is  -

    bin_PROGRAMS=a.out
    a_out_SOURCES=HelloWord.cpp

    And as I marked ,  when I do build prohect on eclipse I get -
    mingw32-make all
    mingw32-make: *** No rule to make target `all'.  Stop.

     
  • rubenvb
    rubenvb
    2012-08-27

    You're using autotools, which require a POSIX shell. You'll either have to use MSYS or Cygwin (or cross-compile from Linux) and use their "make" to build your program.

    It seems you also forget to run autoconf and whatever else autotools needs to have run before you can run configure && make.

     
  • uriel z
    uriel z
    2012-08-27

    So I have to change properties at Eclipse or download  another features?

    I do not really understand what is MSYS or Cygwin ..

    thanks in advance !

     
  • rubenvb
    rubenvb
    2012-08-27

    Eclipse should have a native project file format, which is not autotools (Makefile.am, configure.ac, etc) based, and can be used to build applications.

    MSYS is a POSIX (bash) shell for Windows, Cygwin is a full-fledged 32-bit POSIX environment for Windows. Autotools is based on a bunch of shell scripts, which need a POSIX shell to run.

    Please look at Eclipse documentation on how to set it up, for example here: http://www.ibm.com/developerworks/opensource/library/os-eclipse-stlcdt/

    I don't use Eclipse so I can't explain how to do it.

     
  • rubenvb
    rubenvb
    2012-08-27

    Great!

    I knew Eclipse worked with MinGW, just didn't know how :)