Skip to content

cocos2d x 3.3rc2 000 run testCpp

David edited this page Jan 10, 2015 · 5 revisions

run testCpp

  • pc: xp + vs2010 + cocos2d-x-2.2.5

    • 由于我pc上按的是vs2010,所以我跑的2.2.5,过程很顺利。
  • pc: ubuntu10.04 + gcc4.8 + cocos2d-x-3.3rc2

  • android: ubuntu10.04 + android(adt-bundle-linux-x86_64-20140702 + android-ndk-r10c) + cocos2d-x-3.3rc2

    • 在android上跑testCpp要安装ant1.8,别的没什么了,过程很顺利。最后是apk下载地址。
    • sudo apt-get install ant1.8
    • cd cocos2d-x/build
    • python ./android-build.py cpp-empty-test -p 20
    • python ./android-build.py cpp-tests -p 20
    • CppTests-debug.apk下载 http://pan.baidu.com/s/1bncYtRL

后记

$ cd cocos2d-x/build
$ ./install-deps-linux.sh
$ cmake ..
$ make
$ bin/cpp-empty-test/cpp-empty-test
  • run new app
$ cd cocos2d-x
$ ./setup.py
$ source FILE_TO_SAVE_SYSTEM_VARIABLE
$ cocos new MyGame -p com.your_company.mygame -l cpp -d NEW_PROJECTS_DIR
$ cd NEW_PROJECTS_DIR/MyGame
$ cocos run -p linux
$ bin/MyGame
Clone this wiki locally