开发者

Error When Using Make

开发者 https://www.devze.com 2022-12-08 14:10 出处:网络
I\'m learning Objective-C using GNUStep in my Windows(Cygwin) and i have two files, one source and on开发者_如何转开发e make file:

I'm learning Objective-C using GNUStep in my Windows(Cygwin) and i have two files, one source and on开发者_如何转开发e 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?


The GNUSTEP_MAKEFILES variable needs to be set to point to the directory that has that commmon.make file in it. K


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.


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消