Cocos2dx 2.x + Windows + ADT Bundle configuration, cocos2dxadt
Yesterday we solved the configuration of cocos2dx 3. x + Windows + ADT Bundle. Today we will solve the configuration of cocos2dx 2. x.
In general, the configuration of 2.x is relatively troublesome, but once it is solved, it will be smooth. It takes a lot of time for me to write the content, and I don't know whether the person who wrote the article has verified the content. I have not found any configuration from 0 to the end.
In the following steps, only the steps are listed. I will give a small number of textures for the 2.x configuration, but they are all key textures.
Add the directory information of JDK, NDK, and AndroidSDK to Windows environment variables;
Copy the proj. android File Created by the create-android-project.bat to the proj. android directory in the game, and overwrite it;
Open eclipse in the ADT Bundle;
Use the Import function in Eclipse to Import the created proj. android directory to Eclipse;
Start to create C ++ Builder in Eclipse:Click the two buttons at the red box,
The first Browse File System... button to select the ndk-build.cmd File in the NDK directory;
The second Browser Workspace... button is used to select the project just imported in Eclipse;
Click "New..." in the pop-up window, and write Name and Value in the pop-up window. Enter NDK_MODULE_PATH and Value in the Name column.
X: \ cocos2d-2.2.4; x: \ cocos2d-2.2.4 \ cocos2dx \ platform \ third_party \ android \ prebuilt
Note that the above drive letter needs to be set to the drive letter stored in the cocos2dx directory. The cocos2dx version also needs to be modified to the Root Path of the cocos2dx currently in use.
Click "OK" and Select the newly created NDK_MODULE_PATH Variable in the Select Variable Window:
Click "OK ".
Click the "Specify Resources..." button. In the displayed window, check the jni directory under the project directory to complete all the configurations. Now let's Build the entire project and try again!
Problems with COCOS2DX packaging android
What is cygwin compiled by you?
Which version is based on Cocos2dx, 2x or 3x?
This is developed by an open-source community and is not developed by any company.
Go to its homepage and check the bottom line.
"Cocos2D-x open source developer community"