There are a few basic requirements for cocos2d-x-2.2.3 to build the environment: (On my little laptop)
1. An operating system (Win7 or Ubuntu "tested only under these two systems");
2. In the Win7 need is VS2010 more than the version (I use the VS2012, although I do not want to use VS, but now I have no way to compile code without the IDE), in Ubuntu do not need, and then install a good VS2012, I did not install that VS2012.4 update is still OK;
3.Python Development Environment: (This is the same as normal configuration, all the way next to the Python installation directory (I use 2.7.x, therefore C:\Python27) added to the system path variable can be), so no longer repeat;
4. Open the directory where the cocos2d-x-2.2.3 is located, see the following
Did you see the batch file? Yes, that's it, double-click to run.
You probably would have seen that, too.
Please be patient and wait for the process (I will be half an hour each time, the machine sucks ~ ~)
I can't wait for this to end, but only if you see this.
Then you will succeed most of the (basic Windows7 is built up, Ubuntu under this directory under the direct make is good, I do not believe you see Makefile can't think of ~), but you have to learn to create a new project is not?
Create a new project below, in Win7 and Ubuntu under the cocos2d-x-2.2.3 directory into the Tools\project-creator directory, you can see a name of Create_ project.py's python script file, just like this
Open the command line in the current directory (don't say no, it is in the above address bar directly into the CMD can be opened in the current directory command line, do not use Ctrl+r to run again input cmd into the switch again, too troublesome, or you write a bat batch processing automatically in the current directory open also line, I will not) ;
Then enter create_project.py this file name at the command line, directly enter you can see how it is used, and then follow its instructions to enter it, using the CPP build process
You can also use LUA and JavaScript to build projects that contain LUA and JavaScript support (so that you don't have to include a header file yourself), the same configuration under Ubuntu, and the same script, But my Ubuntu14.10 must use the Python command plus the create_project.py file plus option to execute, with Windows7 directly enter the file name can be performed differently.
At this point we see that the last line on the output shows that the project has been created in this directory:
New Project has been created in this path:c:\cocos2d-x-2.2.3\tools\project-creator/. /.. /projects/helloworld
The project file is created under the directory of the C:\cocos2d-x-2.2.3\tools\project-creator directory on the top level of directory projects, open the directory under the name of the project to meet the following content:
Open the Proj.win32 directory, double-click the HelloWorld solution below, and you don't know what the solution is? Well, just like this:
Wait for VS2012 to open it, after that is the problem of compiling debugging, set HelloWorld to start the project (generally not open multiple projects this does not need to tune), and then compile debugging, (click the middle left of the interface toolbar The local debugger, do not AH);
Wait for the compilation to complete and appear:
Then, if you succeed, you can begin to develop the ~~~~~.
Ubuntu only need to go into the Proj.linux directory in order to run build.sh and makefile, then you can find in the generated bin directory under the debug HelloWorld executable files, similar effect, not the photos
Comprehensive, desktop development environment set up ~ ~
(3.x version is not available for the time being, so there is no discussion here.) )