How does the win10 system build the vs2015+cocos2d-x 3.9 development environment?

  

A lot of users have installed the official version of win10, but because they are too new to the new system, they will always encounter some problems during operation. Recently, some netizens reported that they want to build the vs2015+cocos2d-x 3.9 development environment tutorial under Win10, but the operation has not been successful for a long time, and there are more pits encountered during the installation process. What should I do? Xiaobian below will introduce you to the specific method.

First step: install vs2015

Software name:
microsoft visual studio 2015 official installation Chinese version
Software size:
2.6MB
update time:.
2015-07-21


1 Microsoft's official website to download vs2015 installed in ( Be sure to keep this installer, which you can use later to modify, repair, and uninstall vs). 2. Choose a custom installation (do not choose a typical installation, many tools are not installed for a typical installation). 3. Be sure to install the Windows 10 SDK, which is the option to check the yellow box below. (The latest vs will provide two win10 sdk versions).

4. Wait for the vs installation to complete.

Step 2: Install cocos2d-x3.9

1. Install pythona. Download and install python2.7.3.

b.Configuration Environment

Right-click <;Computer”, select “Properties"----">;Advanced System Settings>, in “Advanced” Under the tab, select "Environment Variables"!

Select <;Path” under “System Variables> and click the Edit button below:

In the pop-up Edit In the system variable & rdquo; dialog box edit “ variable value & rdquo;, add the Python installation path (D:\\Program Files (x86)\\Python27) after the "variable value", with the English semicolon (;) It is separated from the rest of the content.

Similarly, add .PY;.PYM to the variable value of "PATHEXT“.

c.Check if the installation is successful

Open the cmd console and type python. If the following prompt appears, the python installation is successful.

2. Run setup.py in cocos directory, set the corresponding environment variables such as android SDK, NDK, etc. 3. Create a new cocos project after setting. Step: Open terminal and run cocos.py script to create file < Br>

python cocos.py new HelloCpp -p com.coco2dx.org -l cpp -d ~/Desktop

Parameter Description:

· HelloCpp is the project name

· -p followed by the package name

· -l followed by the development language type, there are three types of cpp, lua, js

-d followed by the directory where the project is stored

4. Use vs to open proj.win10\\GamePlay.sln in the new project;

5. At this point, there may be many errors in compiling the project.

Workaround:

1) Reproject all projects under the project, including libbox2d, libbullet, librecast, libSpine, libCocos2d and the game itself to the appropriate SDKversion (my is the image) The previous version).

2) When you choose to run, you want to ×86 platform:

3)Running effect:

The above is about this summary. Win10 system how to build vs2015+cocos2d-x 3.9 development environment, we can refer to it, I hope to help everyone! Welcome everyone to continue to pay attention to other information!

Copyright © Windows knowledge All Rights Reserved