cocos2d-js 打包exe问题

鄱湖听风 2018-11-14 09:33:02
我已经下了vs2017,并且安装了windows sdk,但是还是报错。
我输入的命令是cocos compile -p win32
出现了一大段未能加载项目文件。未能找到路径,无法打开包括文件
不知道是什么原因。。。
下面是具体过程,有点长,希望大家能看完
编译模式:debug
正在编译...
要求的 VS 版本:[2013, 2015, 2017]
正在执行:'"D:\vs2017\Common7\IDE\devenv.com" "E:\game\frameworks\runtime-src\proj.win32\game.sln" /Build "Debug" /Project "game"'


Microsoft Visual Studio 2017 版本 15.0.28307.53。
版权所有 (C) Microsoft Corp。保留所有权利。
E:\game\frameworks\cocos2d-x\external\Box2D\proj.win32\libbox2d.vcxproj : error : 未能加载项目文件。未能找到路径“E:\game\frameworks\cocos2d-x\external\Box2D\proj.win32\libbox2d.vcxproj”的一部分。 E:\game\frameworks\cocos2d-x\external\Box2D\proj.win32\libbox2d.vcxproj


1>------ 已启动生成: 项目: libSpine, 配置: Debug Win32 ------
2>------ 已启动生成: 项目: librecast, 配置: Debug Win32 ------
1>Animation.c
1>AnimationState.c
1>AnimationStateData.c
1>Array.c
1>Atlas.c
1>AtlasAttachmentLoader.c
1>Attachment.c
1>AttachmentLoader.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\AnimationStateData.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\AnimationState.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\Animation.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\atlas.c(32): fatal error C1083: 无法打开包括文件: “ctype.h”: No such file or directory
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\Attachment.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\Array.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\AtlasAttachmentLoader.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\attachmentloader.c(32): fatal error C1083: 无法打开包括文件: “stdio.h”: No such file or directory
2>DebugDraw.cpp
2>DetourDebugDraw.cpp
2>DetourCrowd.cpp
2>DetourLocalBoundary.cpp
2>DetourObstacleAvoidance.cpp
2>DetourPathCorridor.cpp
2>DetourPathQueue.cpp
2>DetourProximityGrid.cpp
2>e:\game\frameworks\cocos2d-x\external\recast\detour\detourmath.h(10): fatal error C1083: 无法打开包括文件: “math.h”: No such file or directory (编译源文件 ..\DebugUtils\DetourDebugDraw.cpp)
2>e:\game\frameworks\cocos2d-x\external\recast\detourcrowd\detourcrowd.cpp(20): fatal error C1083: 无法打开包括文件: “string.h”: No such file or directory
2>e:\game\frameworks\cocos2d-x\external\recast\debugutils\debugdraw.cpp(20): fatal error C1083: 无法打开包括文件: “string.h”: No such file or directory
2>e:\game\frameworks\cocos2d-x\external\recast\detourcrowd\detourlocalboundary.cpp(19): fatal error C1083: 无法打开包括 文件: “float.h”: No such file or directory
2>e:\game\frameworks\cocos2d-x\external\recast\detour\detourmath.h(10): fatal error C1083: 无法打开包括文件: “math.h”: No such file or directory (编译源文件 ..\DetourCrowd\DetourObstacleAvoidance.cpp)
2>e:\game\frameworks\cocos2d-x\external\recast\detourcrowd\detourpathcorridor.cpp(19): fatal error C1083: 无法打开包括文件: “string.h”: No such file or directory
2>e:\game\frameworks\cocos2d-x\external\recast\detourcrowd\detourpathqueue.cpp(19): fatal error C1083: 无法打开包括文件: “string.h”: No such file or directory
1>Bone.c
2>e:\game\frameworks\cocos2d-x\external\recast\detourcrowd\detourproximitygrid.cpp(19): fatal error C1083: 无法打开包括 文件: “string.h”: No such file or directory
2>DetourTileCache.cpp
2>DetourTileCacheBuilder.cpp
2>DetourAlloc.cpp
2>DetourCommon.cpp
2>DetourNavMesh.cpp
2>DetourNavMeshBuilder.cpp
2>DetourNavMeshQuery.cpp
2>DetourNode.cpp
1>BoneData.c
1>BoundingBoxAttachment.c
1>ClippingAttachment.c
1>Color.c
1>Event.c
1>EventData.c
2>e:\game\frameworks\cocos2d-x\external\recast\detour\detourmath.h(10): fatal error C1083: 无法打开包括文件: “math.h”: No such file or directory (编译源文件 ..\Detour\DetourCommon.cpp)
1>extension.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\BoundingBoxAttachment.c)
1>IkConstraint.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\BoneData.c)
1>IkConstraintData.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\Color.c)
2>e:\game\frameworks\cocos2d-x\external\recast\detour\detournavmesh.cpp(19): fatal error C1083: 无法打开包括文件: “float.h”: No such file or directory
2>e:\game\frameworks\cocos2d-x\external\recast\detour\detournavmeshbuilder.cpp(19): fatal error C1083: 无法打开包括文件: “stdio.h”: No such file or directory
2>e:\game\frameworks\cocos2d-x\external\recast\detour\detourmath.h(10): fatal error C1083: 无法打开包括文件: “math.h”: No such file or directory (编译源文件 ..\DetourTileCache\DetourTileCache.cpp)
2>e:\game\frameworks\cocos2d-x\external\recast\detour\detournavmeshquery.cpp(19): fatal error C1083: 无法打开包括文件: “float.h”: No such file or directory
2>e:\game\frameworks\cocos2d-x\external\recast\detour\detouralloc.cpp(19): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory
2>e:\game\frameworks\cocos2d-x\external\recast\detour\detourassert.h(29): fatal error C1083: 无法打开包括文件: “assert.h”: No such file or directory (编译源文件 ..\Detour\DetourNode.cpp)
2>e:\game\frameworks\cocos2d-x\external\recast\detour\detourmath.h(10): fatal error C1083: 无法打开包括文件: “math.h”: No such file or directory (编译源文件 ..\DetourTileCache\DetourTileCacheBuilder.cpp)
1>Json.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\Bone.c)
1>MeshAttachment.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\extension.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\Event.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\EventData.c)
1>PathAttachment.c
1>PathConstraint.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\IkConstraint.c)
1>PathConstraintData.c
1>PointAttachment.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\ClippingAttachment.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\IkConstraintData.c)
1>RegionAttachment.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\json.c(38): fatal error C1083: 无法打开包括文件: “stdio.h”: No such file or directory
1>Skeleton.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\MeshAttachment.c)
1>SkeletonBinary.c
1>SkeletonBounds.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\PathAttachment.c)
1>SkeletonClipping.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\PathConstraint.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\PointAttachment.c)
1>SkeletonData.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\PathConstraintData.c)
1>SkeletonJson.c
1>Skin.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\skeleton.c(32): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\skeletonbinary.c(32): fatal error C1083: 无法打开包括文件: “stdio.h”: No such file or directory
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\RegionAttachment.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\SkeletonBounds.c)
1>Slot.c
1>SlotData.c
1>TransformConstraint.c
1>TransformConstraintData.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\SkeletonClipping.c)
1>Triangulator.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\Skin.c)
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\skeletonjson.c(32): fatal error C1083: 无法打开包括文件: “stdio.h”: No such file or directory
1>VertexAttachment.c
1>VertexEffect.c
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\skeletondata.c(32): fatal error C1083: 无法打开包括文件: “string.h”: No such file or directory
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file or directory (编译源文件 ..\Slot.c)
2>已完成生成项目“librecast.vcxproj”的操作 - 失败。
1>e:\game\frameworks\cocos2d-x\cocos\editor-support\spine\extension.h(129): fatal error C1083: 无法打开包括文件: “stdlib.h”: No such file o
...全文
171 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
鄱湖听风 2018-11-15
  • 打赏
  • 举报
回复

鄱湖听风 2018-11-14
  • 打赏
  • 举报
回复
我的文件夹就叫game,没有用中文。大神求帮助啊,小白真的不知道是怎么回事

721

社区成员

发帖
与我相关
我的任务
社区描述
Cocos2d-x相关内容讨论专区
社区管理员
  • Cocos2d-x
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧