Cocos2d - 找不到jsondocument.h文件

问题描述 投票:3回答:2

我使用cocos2d框架创建了一个手机游戏。问题是当我试图编译ios平台时,我得到了这个错误。

In file included from /Users/MNurdin/Documents/Game/WTP/frameworks/js-bindings/bindings/manual/chipmunk/js_bindings_chipmunk_manual.cpp:26:
In file included from /Users/MNurdin/Documents/Game/WTP/frameworks/js-bindings/bindings/proj.ios_mac/../../cocos2d-x/extensions/cocos-ext.h:16:
In file included from /Users/MNurdin/Documents/Game/WTP/frameworks/js-bindings/bindings/proj.ios_mac/../../cocos2d-x/extensions/assets-manager/AssetsManager.h:32:
/Users/MNurdin/Documents/Game/WTP/frameworks/js-bindings/bindings/proj.ios_mac/../../cocos2d-x/extensions/assets-manager/Manifest.h:36:10: fatal error: 'json/document.h' file not found
#include "json/document.h"

我完全按照这个教程从A到Z,在终端运行这个命令来编译我的项目。

cocos compile -p ios

我在终端运行这个命令来编译我的项目。http:/cocos2d-x.orgdocsmanualframeworkhtml5v2cocos-consoleen。

ios json cocos2d-js
2个回答
2
投票

这只是一个问题,如果你使用的是github的源代码,我假设你从github获得项目时缺少了额外的步骤。

在ReadMe中写道。

Github说明

如果你从github下载我们的github仓库,你将需要做一些额外的工作。

  • 运行 frameworks/js-bindings/cocos2d-x/download-deps.py 下载Cocos2d-x的外部依赖性。
  • 运转 tools/cocos2d-console/download-bin.py 来下载一些cocos2d-console插件的bin文件,比如Google Closure Compiler和JSCCompiler。

0
投票

看起来这个子项目完全缺少Manifest.h中引用的jsondocument.h文件,我试图对include做一个简单的注释,但这引起了错误,我相信这与缺少头有关。 我认为应该提交一个与这个子项目(Cocos2d_libs)相关的错误。

© www.soinside.com 2019 - 2024. All rights reserved.