2012-01-23 46 views
4

我刚开始玩THEOS,发现它很好用。但不幸的是,我碰到以下错误。THEOS编译错误

theos/makefiles/common.mk:64: //makefiles/legacy.mk: No such file or directory 
theos/makefiles/common.mk:77: *** You did not specify a target, and the "" platform does not define a default target. Stop. 

我的Makefile

SDKVERSION=5.0 
TARGET=iphone 

TWEAK_NAME = Sample 
Sample_FILES = Tweak.xm 

include theos/makefiles/common.mk 
include $(THEOS_MAKE_PATH)/tweak.mk 

我尝试了所有的办法,我可以,但在这个时候没有运气。任何人都有这个解决方案?

在此先感谢。

顺便说一句,我在雪Leopord 10.6.6用了XCode 3.2.3(iPhone SDK 4.0)_FILES的

回答

1

前缀,_FRAMEWORKS等必须相同TWEAK_NAME,BUNDLE_NAME等

所以您应该将TWEAK_NAME更改为mytweak或前缀为Sample。

0

您必须制作一个布局文件夹,并在其中放入另一个DEBIAN文件夹并放置一个控制文件。 (假设你知道那是什么),不要忘记和chmod 0775文件夹和控制文件

1

确保您通过运行以下命令来设置THEOS:如果您安装了狄奥

export THEOS=/opt/theos 

也就是说到/ opt /狄奥

在你的makefile变化

include theos/makefiles/common.mk 

到:

include $(THEOS)/makefiles/common.mk