Makefile.inc does not exist plexe-veins

203 views Asked by At

I am new to command line and have followed all the threads related to make including downloading mingw and adding to both my system and user paths. I still get this error when I run mingw32-make.exe:

$ mingw32-make.exe
mingw32-make[1]: Entering directory 'E:/src/plexe-veins/src'
makefile:147: *** Config file '/e/src/omnetpp-5.3/Makefile.inc' does not exist -- add the OMNeT++ bin directory to the path so that opp_configf                             ilepath can be found, or set the OMNETPP_CONFIGFILE variable to point to Makefile.inc.  Stop.
mingw32-make[1]: Leaving directory 'E:/src/plexe-veins/src'
makefile:12: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

I have double checked if omnetpp-5.3 bin is in my path and yet I get the same error. Could anyone be so kind to point me in the right direction?

1

There are 1 answers

3
Loebl On

There are 3 things involved: mingw, msys and git for windows.

  • MSYS is a minimal unix-like environment featuring a shell and some tools. It uses an abstraction layer to make unix tools work under windows
  • MinGW is a GCC distribution to produce native windows binaries
  • Git for windows itself bundles msys to use for as terminal environment

The "git bash" from the context menu opens a terminal which itself runs a a stripped down msys (enough to interact with git). If you have mingw in your path it might autodetect it and includes it.

Now to your problem: The mingw32-make is meant to be used under native win32 - not the msys (git) prompt (it can be used, but might have shortcomings). You will need the msys make for that. The mingw installer offers the option for a msys base system - get that, it should include make. When installed open the msys prompt (not the git bash) and navigate to your folder, run configure again and try make.

Also make sure you are using the installed mingw gcc - try which gcc and see if the path you get matches the installed path.