我是命令行的新手,并且已经遵循了所有与make相关的线程,包括下载mingw和添加到我的系统和用户路径。当我运行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我仔细检查了omnetpp-5.3 bin是否在我的路径中,但仍然得到了相同的错误。有没有人能帮我指出正确的方向?
发布于 2018-06-16 03:52:59
这里涉及到3件事: mingw,msys和git for windows。
windows本身捆绑了msys,用于作为终端环境。
上下文菜单中的"git bash“打开一个终端,该终端本身运行一个精简的msys (足以与git交互)。如果您的路径中有mingw,它可能会自动检测并包含它。
现在来看看你的问题: mingw32-make应该在原生win32下使用,而不是在msys (git)提示符下使用(它可以使用,但可能有缺点)。为此,您需要使用msys。mingw安装程序提供了用于msys基础系统的选项-请注意,它应该包含make。安装后,打开msys提示符(不是git bash)并导航到您的文件夹,再次运行configure并尝试make。
还要确保你使用的是已安装的名为“gcc”的which gcc,看看你得到的路径是否与安装的路径相匹配。
https://stackoverflow.com/questions/50872060
复制相似问题