0

我是 cocos2d-x 的新手。我开始设置开发环境。我下载了 cocos2d-x-2.1.5 zip 文件并解压。然后我双击 build-win32.bat,出现了这些行:

Build started 8/28/2013 9:08:01 AM.
 0>D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.sln : Solution file error      MSB5009: Erro
   r parsing the nested project section in solution file.

Build FAILED.

     D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.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.17929
[Microsoft .NET Framework, version 4.0.30319.18052]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 8/28/2013 9:08:01 AM.
 0>D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.sln : Solution file error     MSB5009: Erro
   r parsing the nested project section in solution file.

Build FAILED.

     D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.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 . . .

我正在使用 Windows 7 64bit 。谢谢!

4

1 回答 1

0

我找到了一个解决方案:

1.打开“cocos2d-win32.vc2010.sln”。

2.创建一个新项目。

3.删除步骤2的项目。

4.关闭.sln文件,点击保存。

在这些步骤之后,我的批处理文件运行良好。希望它对你有用。

于 2014-02-21T08:18:39.680 回答