使用make时出错
我正在 Windows(Cygwin)中使用 GNUStep 学习 Objective-C,我有两个文件,一个源文件和一个 make 文件:
include $(GNUSTEP_MAKEFILES)/common.make
APP_NAME = HelloWorld
HelloWorld_HEADERS =
HelloWorld_OBJC_FILES = main.m
HelloWorld_RESOURCE_FILES =
include $(GNUSTEP_MAKEFILES)/application.make
但是当我在目录中运行 make 时,我收到此错误:
GNUmakefile:1: /common.make: No such file or directory
GNUmakefile:8: /application.make: No such file or directory
make: *** No rule to make target `/application.make'. Stop.
出了什么问题?
I'm learning Objective-C using GNUStep in my Windows(Cygwin) and i have two files, one source and one make file:
include $(GNUSTEP_MAKEFILES)/common.make
APP_NAME = HelloWorld
HelloWorld_HEADERS =
HelloWorld_OBJC_FILES = main.m
HelloWorld_RESOURCE_FILES =
include $(GNUSTEP_MAKEFILES)/application.make
But when i run make in the directory i'm getting this errors:
GNUmakefile:1: /common.make: No such file or directory
GNUmakefile:8: /application.make: No such file or directory
make: *** No rule to make target `/application.make'. Stop.
What is wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
GNUSTEP_MAKEFILES 变量需要设置为指向目录
里面有 common.make 文件。
K
The GNUSTEP_MAKEFILES variable needs to be set to point to the directory
that has that commmon.make file in it.
K
您尚未设置
GNUSTEP_MAKEFILES
变量的值。您有两种方法可以实现此目的:export GNUSTEP_MAKEFILES=/the/path/you/want
。Makefile
中设置:在使用之前,在Makefile
中的某处放置一行GNUSTEP_MAKEFILES = /the/path/you/want
。You haven't set the value of the
GNUSTEP_MAKEFILES
variable. You have two ways to achieve this:export GNUSTEP_MAKEFILES=/the/path/you/want
.Makefile
: put a lineGNUSTEP_MAKEFILES = /the/path/you/want
in theMakefile
somewhere before you use it.Debian Linux 提供了
/usr/share/GNUstep/Makefiles/GNUstep.sh
脚本来设置和导出所有适当的GNUSTEP_*
环境变量。也许您的 Windows GNUstep 发行包中有类似的东西?Debian Linux provides
/usr/share/GNUstep/Makefiles/GNUstep.sh
script that sets and exports all the appropriateGNUSTEP_*
environment variables. Perhaps there is something similar in your Windows GNUstep distribution package?