1/28/2023 0 Comments Android ndk r10b downloadNext, you can port the C project under Windows to the Android project.ġ. Solution: Change to the decompression directory path D:/apache-ant-1.7.1/bin Reason: path does not recognize %ANT_HOME% The path is the unzip directory such as D:/apache-ant-1.7.1Įrror prompt:'ant' is neither an internal command nor an external command. Unzip and create a new variable ANT_HOME on the D drive. Set the corresponding environment variables according to the prompts:ĭ:\Cocos\adt-bundle-windows-x86_64-20140702\sdk (Note! It is the sdk subdirectory)ĭ:\Cocos\apache-ant-1.9.6\bin (Note! It is the bin subdirectory)Īt this point, the configuration of the software and environment is complete. Run cmd in administrator mode, enter/Cocos\Cocos2d-x\cocos2d-x-3.10 directory, Next, run the configuration tool of Cocos2d-x 3.10 and let Cocos configure the environment variables. The SDK, NDK, and ANT have been decompressed above. Same as above, do not configure environment variables yet. Apache-ANT installationĭecompress the downloaded compressed package to a directory such as D:\Cocos\apache-ant-1.9.6. Android NDK installationĭecompress the downloaded compressed package to a directory such as D:\Cocos\android-ndk-r10e, as above, do not configure environment variables yet. After all the components are installed, use the Cocos configuration tool to configure them together. Do not configure the environment variables of the SDK. Unzip the downloaded compressed package directly to a directory such as D:\Cocos\adt-bundle-windows-x86_64-20140702. In the system variable Add the following content before the value of Path: %JAVA_HOME%\bin (Note: the semicolon here cannot be omitted) Here, the JDK installation is complete.Ĭlick "Start" -> "Run" -> enter: cmd command, enter in the CMD window: java -version, theįollowing interface appears, it means the installation is successful: %JAVA_HOME%\lib (Note: the dot indicates the current directory and cannot be omitted) New environment variable: CLASSPATH value. New environment variable: JAVA_HOME value: D:\Program Files/ Java\jdk1.7.0 Run the JDK installation package, select the installation location and wait for the JDK to be installed automatically. Software installation and environment configuration So please go here to get the Baidu network disk address of the above Android components: ģ. If you build in a 32-bit environment, please download the corresponding 32-bit version yourself.Īndroid NDK (the NDK r10b version has a bug after a certain snow test, please download the r9d or r10e version) The software required in this article is 64-bit. If the Cocos2d-x environment has just been built, you can enter the/Cocos2d-x\cocos2d-x-3.10\build folder under the cocos installation directory and double-click cocos2d -win32.sln, will start the test project under Windows that opens Cocos2d-x with VS to ensure that it can be compiled and run normally. Operating system :Windows 10 Professional 圆4Įnsure that the Cocos2d-x project in the current environment can be compiled and run normally in VS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |