CrossApp在MAC下的环境

  • MAC下的环境搭建和设置要比Windows简单的多。所以第一篇首先尝试搭建一下MAC下的环境。过会儿去琢磨Windows的去=。=

  • 首先,要先下载CrossApp的工程,下载地址自然是9秒社区了传送门

  • 其次,下载Android所必备的adt-bundle-mac android-ndk-r9c 

  • (根据Cocos2d-x的经验,android-ndk必须使用r9c,好像10会出现一些错误。不知道CrossApp如何)

  • 由于MAC系统集成了java和python的环境,所以不需要对java和python进行配置,减去了很大的工作量啊~

  • 接下来我们需要将Android和CrossApp的配置到.bash_profile文件中,打开终端,键入pico .bash_profile,在打开的文本编辑器中粘贴如下内容:(请务必记得改为自己的路径!!)

  • [plain]  view plain copy
    1. export COCOS2DX_ROOT=/Users/archer/Desktop/CrossApp-0.3.5  
    2. export ANDROID_SDK_ROOT=/Users/archer/Desktop/cocoandroid/adt-bundle-mac-x86_64$  
    3. export ANDROID_NDK_ROOT=/Users/archer/Desktop/cocoandroid/android-ndk-r9c  
    4. export NDK_ROOT=/Users/archer/Desktop/cocoandroid/android-ndk-r9c  
    5. export PATH=$PATH:$ANDROID_NDK_ROOT  
    6. export PATH=$PATH:$ANDROID_SDK_ROOT  


    由于我之间在Cocos2d-x环境配置的时候已经加入过一些了,所以看起来有点乱。在粘贴完环境配置信息后,按Control+O 保存 然后按Control+X 退出即可。

  • http://www.iteye.com/problems/121246
    http://www.iteye.com/problems/121245
    http://www.iteye.com/problems/121243
    http://www.iteye.com/problems/121241
    http://www.iteye.com/problems/121240
    http://www.iteye.com/problems/121239
    http://www.iteye.com/problems/121238
    http://www.iteye.com/problems/121237
    http://www.iteye.com/problems/121236
    http://www.iteye.com/problems/121235
    http://www.iteye.com/problems/121234
    http://www.iteye.com/problems/121233
    http://www.iteye.com/problems/121232
    http://www.iteye.com/problems/121223
    http://www.iteye.com/problems/121224
    http://www.iteye.com/problems/121222
    http://www.iteye.com/problems/121221
    http://www.iteye.com/problems/121220
    http://www.iteye.com/problems/121219
    http://www.iteye.com/problems/121340
    http://www.iteye.com/problems/121339
    http://www.iteye.com/problems/121338
    http://www.iteye.com/problems/121337
    http://www.iteye.com/problems/121335
    http://www.iteye.com/problems/121334
    http://www.iteye.com/problems/121332
    http://www.iteye.com/problems/121331
    http://www.iteye.com/problems/121328
    http://www.iteye.com/problems/121327
    http://www.iteye.com/problems/121325
    http://www.iteye.com/problems/121324
    http://www.iteye.com/problems/121322
    http://www.iteye.com/problems/121320
    http://www.iteye.com/problems/121315
    http://www.iteye.com/problems/121311
    http://www.iteye.com/problems/121310
    http://www.iteye.com/problems/121306
    http://www.iteye.com/problems/121301
    http://www.iteye.com/problems/121299
    http://www.iteye.com/problems/121298
    http://www.iteye.com/problems/121295
    http://www.iteye.com/problems/121327
    http://www.iteye.com/problems/121325
    http://www.iteye.com/problems/121324
    http://www.iteye.com/problems/121322
    http://www.iteye.com/problems/121320
    http://www.iteye.com/problems/121315
    http://www.iteye.com/problems/121311
    http://www.iteye.com/problems/121310
    http://www.iteye.com/problems/121306
    http://www.iteye.com/problems/121301
    http://www.iteye.com/problems/121299
    http://www.iteye.com/problems/121298
    http://www.iteye.com/problems/121295
    http://www.iteye.com/problems/121294
    http://www.iteye.com/problems/121292
    http://www.iteye.com/problems/121290
    http://www.iteye.com/problems/121289
    http://www.iteye.com/problems/121287
    http://www.iteye.com/problems/121286
    http://www.iteye.com/problems/121284
    http://www.iteye.com/problems/121281
    http://www.iteye.com/problems/121280
    http://www.iteye.com/problems/121279
    http://www.iteye.com/problems/121277
    http://www.iteye.com/problems/121275
    http://www.iteye.com/problems/121274
    http://www.iteye.com/problems/121271
    http://www.iteye.com/problems/121269
    http://www.iteye.com/problems/121267
    http://www.iteye.com/problems/121265
    http://www.iteye.com/problems/121230
    http://www.iteye.com/problems/121229
    http://www.iteye.com/problems/121228
    http://www.iteye.com/problems/121227
    http://www.iteye.com/problems/121226
    http://www.iteye.com/problems/121226
    http://www.iteye.com/problems/121225

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。