简体   繁体   中英

Cannot set up the Android Cocos2d-x development environment on Windows 7

I am using this tutorial to set up an Android development environment. But when I import folder C:\\cocos2d-x-2.2.0\\samples\\Cpp\\HelloCpp\\proj.android I see:

**** Clean-only build of configuration Default for project HelloCpp ****

 clean 

Cannot run program "": Launching failed
Error: Program "" is not found in PATH

PATH=[C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\cygwin64\bin\;D:\Projects\cpp\adt-bundle-windows-x86_64\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\;D:\Projects\cpp\adt-bundle-windows-x86_64\adt-bundle-windows-x86_64-20131030\sdk\tools\]

**** Build Finished ****

What is wrong? What does Eclipse want to do. I am completely new to Android development and also Eclipse. Please help.

If you are using cocos2d-x 2.2 then follow following steps:

  1. Install cygwin as mention in your given turorial you should install the following software packages through cygwin

autoconf, automake, binutils, gcc-core, gcc-g++, gcc4-core, gcc4-g++, gdb, pcre, pcre-dev

  1. Give the path of you c:/cygwin/bin in the environment variable
  2. You have to also install CDT for your eclipse(If it is not and if you are using adt-bundle then need not to install)
  3. You have to also download ndk-r8d/r8e or any one
  4. Now Import your project in the eclipse
  5. Now you go to your project properties and go to code analysis(in the C/C++ analysis) and select the use project property and then unchecked the syntax and semantics error

  6. Now in your project open build_native.sh give the path of ndk_rook like this

    NDK_ROOT="D:\\android-ndk-r8d"

Now you can run your project..........

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM