cocos2d-x新建项目报错问题

cocos2d-x2.2.4版本,今天不知道怎么就抽风了,可能修改到哪个地方了,但是一直就会出现六十个错误,并且libcurl.a找不到,然后手动找到后还是会报错

点击查看原图

报错信息一大堆,开头是这样的


Undefined symbols for architecture i386:
  "cocos2d::CCDictionary::objectForKey(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      cocos2d::extension::ActionManager::getActionByName(char const*, char const*) in CCActionManager.o
      cocos2d::extension::CCBAnimationManager::getBaseValue(cocos2d::CCNode*, char const*) in CCBAnimationManager.o
      cocos2d::extension::CCBAnimationManager::actionForCallbackChannel(cocos2d::extension::CCBSequenceProperty*) in CCBAnimationManager.o
      cocos2d::extension::CCBAnimationManager::runAnimationsForSequenceIdTweenDuration(int, float) in CCBAnimationManager.o
      cocostudio::timeline::NodeReader::loadNode(rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> > const&, cocos2d::CCNode*) in CCNodeReader.o
      cocostudio::timeline::ActionTimelineCache::createAction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in CCActionTimelineCache.o
      cocostudio::timeline::ActionTimelineCache::loadAnimationActionWithContent(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in CCActionTimelineCache.o
      ...
  "cocos2d::CCDictionary::removeObjectForKey(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      cocostudio::timeline::ActionTimelineCache::removeAction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in CCActionTimelineCache.o
      cocos2d::extension::CCArmature::removeBone(cocos2d::extension::CCBone*, bool) in CCArmature.o
      cocos2d::extension::CCArmatureDataManager::removeArmatureData(char const*) in CCArmatureDataManager.o
      cocos2d::extension::CCArmatureDataManager::removeAnimationData(char const*) in CCArmatureDataManager.o
      cocos2d::extension::CCArmatureDataManager::removeTextureData(char const*) in CCArmatureDataManager.o
  "cocos2d::CCDictionary::setObject(cocos2d::CCObject*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      cocos2d::extension::ActionManager::initWithDictionary(char const*, rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> > const&, cocos2d::CCObject*) in CCActionManager.o
      cocos2d::extension::ActionManager::initWithBinary(char const*, cocos2d::CCObject*, cocos2d::extension::CocoLoader*, cocos2d::extension::stExpCocoNode*) in CCActionManager.o
      cocos2d::extension::CCBAnimationManager::setBaseValue(cocos2d::CCObject*, cocos2d::CCNode*, char const*) in CCBAnimationManager.o


这个我找了好长时间都没有找到,然后我又再加i386,已经手动添加cocos路径,然后奇怪的事情就发生了,我编译一次是成功的,但是在运行时只显示一个界面就又崩溃了,报错到下面那个地方:


Warning: Error creating LLDB target at path '/Users/admin/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/jsoncpp.app'- using an empty LLDB target which can cause slow memory reads from remote devices.
Cocos2d: 
<dict>
	cocos2d.x.version: cocos2d-x 2.2.6
	cocos2d.x.compiled_with_profiler: false
	cocos2d.x.compiled_with_gl_state_cache: true
	gl.vendor: Apple Inc.
	gl.renderer: Apple Software Renderer
	gl.version: OpenGL ES 2.0 APPLE-10.3.0
	gl.max_texture_size: 4096
	gl.max_texture_units: 8
	gl.max_samples_allowed: 4
	gl.supports_PVRTC: true
	gl.supports_NPOT: true
	gl.supports_BGRA8888: false
	gl.supports_discard_framebuffer: true
	gl.supports_vertex_array_object: true
</dict>
2015-03-18 14:06:58.671 jsoncpp[9116:172241] cocos2d: surface size: 1136x640


然后就彻底无语了,然后最后也不知道哪设置错了

所以最后只能重新下载了一个,当然也下载了一个cocos2d-x的2.2.6版本的用了

那个情况谁知道可以说下

Last modification:January 1st, 1970 at 08:00 am
如果看了这个文章可以让你少加会班,可以请我喝杯可乐
已打赏名单
微信公众号

Leave a Comment