Error When Using Make
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:
- Use an environment variable:
export GNUSTEP_MAKEFILES=/the/path/you/want. - Set it directly in the
Makefile: put a lineGNUSTEP_MAKEFILES = /the/path/you/wantin theMakefilesomewhere 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?
加载中,请稍侯......
精彩评论