开发者

Cocos2D file not found?

开发者 https://www.devze.com 2023-04-04 04:52 出处:网络
I downloaded cocos2d, the latest version. I added the folders \'cocos2d\' \'cocosdenshion\' \'external\' \'cocoslive\' and \'experimental\' to my project folder, then I dragged them to my project with

I downloaded cocos2d, the latest version. I added the folders 'cocos2d' 'cocosdenshion' 'external' 'cocoslive' and 'experimental' to my project folder, then I dragged them to my project without clicking add to destination group project button.

But when I build the project, I get an error: 'vorbis/ivorbiscodec.h' file not found in ivorbisfile_example.c on this line:

#include <vorbis/ivorbiscodec.h>

If I comment it out, then this line has the same type of warning:

#include <vorbis/ivorbisfile.h>

I can't comment that out otherwise there is like 50 errors!

Anyway, I look in the hierarchy of folder and the file is indeed there. I am not sure what the vorbis/ part is but the file ivorbiscodec.h is indeed in the project and in finder of the projects folder.

开发者_JAVA百科

I deleted the Box2D and Chipmunk folders in the external folder in finder and in the project if that makes any difference.

Does anyone have any idea why I am getting this error?

Thanks!


Just to make something sure: Did you check 'Copy items to destinations group's folder (if needed)'?

Cocos2D file not found?

I deleted the Box2D and Chipmunk folders in the external folder in finder and in the project if that makes any difference.

This statement then makes a lot of sense, because the files couldn't be located and it would throw the errors.

(You could also right click the files inside Xcode and hit Show in Finder to verify their existence.


But on a side note: Cocos2D comes with a install-templates.sh script that you can use to natively include some Cocos2D project templates in Xcode. I would recommend you to do that and create Cocos2D projects from inside Xcode as follows:

Cocos2D file not found?

0

精彩评论

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

关注公众号