Ios 使用Theos的Cocos2D

Ios 使用Theos的Cocos2D,ios,objective-c,cocos2d-iphone,jailbreak,theos,Ios,Objective C,Cocos2d Iphone,Jailbreak,Theos,我目前正在尝试用Cocos2D和Theos构建一个应用程序,但没有成功 我有一台越狱的iPhone4S(iOS 7.0.4),带有: SDK 7.0 叮当声 LLVM LD64 但是没有Mac电脑 当我运行make命令时,它会打印很多错误: Making all for application TestCocos2D... Copying resource directories into the application wrapper... Linking application Te

我目前正在尝试用Cocos2D和Theos构建一个应用程序,但没有成功

我有一台越狱的iPhone4S(iOS 7.0.4),带有:

  • SDK 7.0
  • 叮当声
  • LLVM
  • LD64
但是没有Mac电脑

当我运行make命令时,它会打印很多错误:

Making all for application TestCocos2D...
 Copying resource directories into the application wrapper...
 Linking application TestCocos2D...
Undefined symbols for architecture armv7:
  "_CCNextPOT", referenced from:
      -[CCLabelTTF createTextureWithAttributedString:useFullColor:] in CCLabelTTF.m.bd6d7c66.o
      -[CCLabelTTF createTextureWithString:useFullColor:] in CCLabelTTF.m.bd6d7c66.o
      -[CCRenderTexture initWithWidth:height:pixelFormat:depthStencilFormat:] in CCRenderTexture.m.bd6d7c66.o

...........

  "_kmMat4PerspectiveProjection", referenced from:
      -[CCDirectorIOS setProjection:] in CCDirectorIOS.m.bd6d7c66.o
  "_kmVec3Fill", referenced from:
      -[CCDirectorIOS setProjection:] in CCDirectorIOS.m.bd6d7c66.o
  "_kmVec3TransformCoord", referenced from:
      -[CCDirector convertToGL:] in CCDirector.m.bd6d7c66.o
      -[CCDirector convertToUI:] in CCDirector.m.bd6d7c66.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/TestCocos2D.app/TestCocos2D.64873355.unsigned] Error 1
make[1]: *** [internal-application-all_] Error 2
make: *** [TestCocos2D.all.application.variables] Error 2
生成文件

export TARGET = iphone:clang    

export TARGET_SDK_VERSION = 7.0
export TARGET_IPHONEOS_DEPLOYMENT_VERSION = 7.0
export ARCHS = armv7    

include theos/makefiles/common.mk

APPLICATION_NAME = TestCocos2D
TestCocos2D_FILES = Libraries/cocos2d/Platforms/iOS/CCAppDelegate.m Libraries/cocos2d/Platforms/iOS/CCDirectorIOS.m Libraries/cocos2d/Platforms/iOS/CCES2Renderer.m Libraries/cocos2d/Platforms/iOS/CCGLView.m Libraries/cocos2d/Platforms/iOS/UITouch+CC.m Libraries/cocos2d/CCAction.m Libraries/cocos2d/CCActionCatmullRom.m .... Libraries/cocos2d/cocos2d.m main.m Classes/AppDelegate.m Classes/HelloWorldScene.m Classes/IntroScene.m

TestCocos2D_FRAMEWORKS = UIKit CoreGraphics

include $(THEOS_MAKE_PATH)/application.mk
文件夹

export TARGET = iphone:clang    

export TARGET_SDK_VERSION = 7.0
export TARGET_IPHONEOS_DEPLOYMENT_VERSION = 7.0
export ARCHS = armv7    

include theos/makefiles/common.mk

APPLICATION_NAME = TestCocos2D
TestCocos2D_FILES = Libraries/cocos2d/Platforms/iOS/CCAppDelegate.m Libraries/cocos2d/Platforms/iOS/CCDirectorIOS.m Libraries/cocos2d/Platforms/iOS/CCES2Renderer.m Libraries/cocos2d/Platforms/iOS/CCGLView.m Libraries/cocos2d/Platforms/iOS/UITouch+CC.m Libraries/cocos2d/CCAction.m Libraries/cocos2d/CCActionCatmullRom.m .... Libraries/cocos2d/cocos2d.m main.m Classes/AppDelegate.m Classes/HelloWorldScene.m Classes/IntroScene.m

TestCocos2D_FRAMEWORKS = UIKit CoreGraphics

include $(THEOS_MAKE_PATH)/application.mk
  • 控制
  • 生成文件
  • main.m
班级

  • AppDelegate.h
  • HelloWorld场景
  • 介绍场景
  • AppDelegate.c
  • HelloWorldScene.c
  • 场景介绍
图书馆

  • 链接到cocos2d
  • 链接到cocos2dui
  • 链接到kazmath
  • 链接到ObjectAL
牛顿

资源

链接到theos

那么,我该如何解决这些问题呢? makefile和目录应该类似于什么? 有没有办法创建框架并在makefile中将其用作UIKit或CoreGraphics

先谢谢你