使用make时出错

发布于 2024-08-07 20:23:03 字数 547 浏览 1 评论 0原文

我正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

谈场末日恋爱 2024-08-14 20:23:03

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

淡忘如思 2024-08-14 20:23:03

您尚未设置 GNUSTEP_MAKEFILES 变量的值。您有两种方法可以实现此目的:

  1. 使用环境变量:export GNUSTEP_MAKEFILES=/the/path/you/want
  2. 直接在 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:

  1. Use an environment variable: export GNUSTEP_MAKEFILES=/the/path/you/want.
  2. Set it directly in the Makefile: put a line GNUSTEP_MAKEFILES = /the/path/you/want in the Makefile somewhere before you use it.
天赋异禀 2024-08-14 20:23:03

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 appropriate GNUSTEP_* environment variables. Perhaps there is something similar in your Windows GNUstep distribution package?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文