无法制作make文件
先生您好,首先我要感谢您回答我。 我仍然遇到一个错误 当我在 MINGW32 shell 中输入
include $(GNUSTEP_MAKEFILES)/common.make
时,我收到如下错误
sh: GNUSTEP_MAKEFILES: command not find sh: include: 未找到命令
请告诉我是否应该制作 make.txt 文件并在 MINGW32 shell 中输入 make 或在 MINGW32 shell 中输入 make.mfile
Hi Sir first of all i would like to thank you for answering me .
still i am stuck up with an error
when i type
include $(GNUSTEP_MAKEFILES)/common.make
in the MINGW32 shell i am getting the error as follows
sh: GNUSTEP_MAKEFILES: command not found
sh: include: command not found
please tell me whether i should make a make.txtfile and type make in MINGW32 shell or a make.mfile in MINGW32 shell
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在我看来,您正在尝试将 make 文件作为 shell 脚本运行,这就是错误消息所暗示的内容。 这可能很简单,但您需要调用
make
来“执行”makefile 的内容。It seems to me you are trying to run the make file as a shell script, that's what the error message suggests. This might be trivial, but you need to invoke
make
to "execute" the contents of the makefile.您可能正在调用 Windows 版本的 make.exe,因为 system32 或其他构建系统位于您的路径中。 重新排序 PATH 以确保 mingw32/bin 位于第一位。
possibly you are calling the Windows version of make.exe because system32 or another build system is in your path. Reorder PATH to make sure mingw32/bin is first.
如果您在 Windows 上使用 GNUstep,您可能最好也安装 cygwin。 比起启动 bash shell,获取提供的文件来获取所有 GNUSTEP 路径,你会更幸运。 目前看来你是从 cmd.exe 开始的,而且你没有安装任何 Shell,所以这些东西总是会损坏。 您确实必须遵循安装指南,并且一定不要忘记这一步。 (这需要 unix shell)
http://www .gnustep.org/resources/documentation/User/GNUstep/gnustep-howto_4.html#SEC8
因此,您实际上必须遵循此处的概述
http://www.gnustep.org/resources/documentation/用户/GNUstep/gnustep-howto_toc.html
问候
弗里德里希
If you use GNUstep on windows you probably better install cygwin also. Than you start the bash shell, source the provided file to get all the GNUSTEP pathes and than you will have more luck. Currently it seems you are starting from the cmd.exe and well you do not have any Shell installed so the stuff always will broke. You really have to follow the installation guidelines and must not forget this step. (this needs a unix shell)
http://www.gnustep.org/resources/documentation/User/GNUstep/gnustep-howto_4.html#SEC8
So really you must follow the outlines here
http://www.gnustep.org/resources/documentation/User/GNUstep/gnustep-howto_toc.html
Regards
Friedrich