我试图在窗口上安装cocos2d-x,因为看到很多教程都说运行build_win32.bat没问题,除非遇到一些问题,比如“tests.exe不再工作”或“从文件中获取数据” (C:\ Windows \ system32 \ fps_images.png)失败了!“但是,这两种常见的东西都不会出现在我身上但是其他未知错误。谁能帮助我?下面是我的错误的控制台输出:
/*
* Check VC++ environment...
*/
/*
* Building cocos2d-x library binary, please wait a while...
*/
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.1008]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 12/9/2013 10:30:38.
C:\cocos2d-x-2.1.5\cocos2d-win32.vc2010.sln : Solution file error MSB5009: Erro
r parsing the nested project section in solution file.
Build FAILED.
C:\cocos2d-x-2.1.5\cocos2d-win32.vc2010.sln : Solution file error MSB5009: Er
ror parsing the nested project section in solution file.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.01
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.1008]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 12/9/2013 10:30:38.
C:\cocos2d-x-2.1.5\cocos2d-win32.vc2010.sln : Solution file error MSB5009: Erro
r parsing the nested project section in solution file.
Build FAILED.
C:\cocos2d-x-2.1.5\cocos2d-win32.vc2010.sln : Solution file error MSB5009: Er
ror parsing the nested project section in solution file.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.01
/*
* Check the cocos2d-win32 application "TestCpp.exe" ...
*/
The system cannot find the path specified.
/*
* Run cocos2d-win32 tests.exe and view Cocos2d-x Application Wizard for Visual
Studio User Guide.
*/
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - js
0 File(s) copied
File not found - tests
0 File(s) copied
File not found - MoonWarriors
0 File(s) copied
File not found - WatermelonWithMe
0 File(s) copied
File not found - Published files iOS
0 File(s) copied
Can't find the binary "TestCpp.exe", is there build error?
Press any key to continue . . .
答案 0 :(得分:0)
由于谷歌代码,Emscripten lib和WatermelonWithMe和CocosDragonJS资源的上传大小有限,因此无法发布安装包。
将下载的lib放入COCOS2DX_ROOT / external / emscripten
您应该按照以下步骤运行WatermelonWithMe和CocosDragonJS 下载WatermelonWithMe和CocosDragonJS的资源 http://api.viglink.com/api/click?format=go&key=9b4efad421c8b103b2c94b796db973b0&loc=http%3A%2F%2Fwww.cocos2d-x.org%2Fnews%2F134&subId=d654e26afef9085d79aba37dfe97be28&v=1&libId=ecb08019-ccd8-442e-ba80-3415ca773619&out=https%3A%2F%2Fgithub.com%2Fminggo%2Fcocos2d-js-tests%2Ftree%2Ffor-cocos2dx%2Fgames&ref=https%3A%2F%2Fwww.google.co.in%2F&title=Cocos2d-x%20%7C%20cocos2d-x-2.1.5%20released&txt=here&jsonp=vglnk_jsonp_138019214388811 将下载的资源放入样本/ Javascript /共享/游戏
答案 1 :(得分:0)
有一种解决方案适合我。 打开cocos2d-win32.vc2010.sln或cocos2d-win32.vc2012.sln,删除下面的代码: GlobalSection(NestedProjects)= preSolution 到此GlobalSection的末尾。