Hi,
I have created a Cocos2d-X game using the version 3.10 and Visual Studio and now I would like to test it on Android and iOS.
The problem is that when I execute the command: cocos compile -p android I get the following errors during the build:
At global scope:
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make.exe: Leaving directory `C:/MyGame/proj.android'
Error running command, return code: 2.
I’ve tried to do is addind all of my source and header files to the CMakeLists.txt file and removing the HelloWorldScene files from it.
Is there anything else that I should configure on this file? Do I have to configure my project in Eclipse before running the compilation?
The funny thing is that if I run the cocos compile -p android command again I get another error:
Android NDK: WARNING: APP_PLATFORM android-21 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make.exe: Entering directory `C:/MyGame/proj.android'
[armeabi] Gdbserver : [arm-linux-androideabi-4.9] libs/armeabi/gdbserver
make.exe: *** No rule to make target `jni/../../Classes/HelloWorldScene.cpp', needed by `obj/local/armeabi/objs-debug/co
[armeabi]c Gdbsetup :o libs/armeabi/gdb.setups2dcpp_shared/__/__/Classes/HelloWorldScene.o'
. Stop.
make.exe: *** Waiting for unfinished jobs....
make.exe: Leaving directory `C:/MyGame/proj.android'
Error running command, return code: 2.
Which seems strange, since I have removed the HelloWorldScene files and its reference from the CMakeLists.txt.
