0

我试图在 window 上安装 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 . . .
4

2 回答 2

0

有一种解决方案对我有用。打开 cocos2d-win32.vc2010.sln 或 cocos2d-win32.vc2012.sln ,删除下面的代码: GlobalSection(NestedProjects) = preSolution到这个 GlobalSection 的末尾。

于 2013-09-27T11:17:50.740 回答