当我使用eclipse去编译Cocos2dx里的proj.android工程时下面的控制台报错:
cc1plus.exe: error: unrecognized command line option "-std=c++11"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make: *** [obj/local/armeabi/objs/cocos2dcpp_shared/hellocpp/main.o] Error 1
而当我想在命令行使用cocos compile -p android来直接把这个工程编译成Android程序时:
中间报了这样的一段错误:
'C:\windows\system32\java.exe' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
无效路径
系统找不到指定的路径。
......
系统找不到指定的路径。
ERROR: SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
......
cc1plus.exe: error: unrecognized command line option "-std=c++11"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: error: unrecognized command line option "-std=c++11"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/hellocpp/main.o] Error
......
[javac] Compiling 27 source files to F:\HelloCC\proj.android\bin\classes
[javac] 注: 某些输入文件使用或覆盖了已过时的 API。
[javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
......
Your application may crash when using c++ 11 regular expression with NDK_TOOLCHA
IN_VERSION 4.8