以前安装过官方的Cocos2dx_v2.1.4,现在想用CocoStudio,于是下载了Cocos2dx_v2.1.4f,按照一般的思路去找install没找到,但是发现有一个makefile,貌似linux下常用到,于是执行./makefile,控制台输出一串“command not found”。还请在Mac下安装过的指点一二,多谢了饿!!!错误如下:
$ ./makefile
./makefile: line 1: PLATFORM: command not found
./makefile: line 3: define: command not found
./makefile: line 4: MAKE: command not found
./makefile: line 4: PLATFORM: command not found
./makefile: line 4: +: command not found
./makefile: line 5: MAKE: command not found
./makefile: line 5: PLATFORM: command not found
./makefile: line 5: +: command not found
./makefile: line 6: MAKE: command not found
./makefile: line 6: PLATFORM: command not found
./makefile: line 6: +: command not found
./makefile: line 7: MAKE: command not found
./makefile: line 7: PLATFORM: command not found
./makefile: line 7: +: command not found
./makefile: line 8: MAKE: command not found
./makefile: line 8: PLATFORM: command not found
./makefile: line 8: +: command not found
./makefile: line 9: MAKE: command not found
./makefile: line 9: PLATFORM: command not found
./makefile: line 9: +: command not found
./makefile: line 10: MAKE: command not found
./makefile: line 10: PLATFORM: command not found
./makefile: line 10: +: command not found
./makefile: line 11: MAKE: command not found
./makefile: line 11: PLATFORM: command not found
./makefile: line 11: +: command not found
./makefile: line 12: MAKE: command not found
./makefile: line 12: PLATFORM: command not found
./makefile: line 12: +: command not found
./makefile: line 13: MAKE: command not found
./makefile: line 13: PLATFORM: command not found
./makefile: line 13: +: command not found
./makefile: line 14: MAKE: command not found
./makefile: line 14: PLATFORM: command not found
./makefile: line 14: +: command not found
./makefile: line 15: endef: command not found
./makefile: line 17: all:: command not found
./makefile: line 18: call: command not found
./makefile: line 20: clean:: command not found
./makefile: line 21: call: command not found
./makefile: line 23: .PHONY:: command not found
:o貌似不用安装,直接运行python create_project.py -project MyGame -package com.liupeng.MyGame -language cpp就可以建立工程,下一步是在xcode里导入cocostudio导出的文件