Really thanks a lot... At last I succeed to compile your pattern project for Android in VS-2015, even debug works! (but very slow...) Next I tried to migrate my project:
Q-1: Can your 3.13.1-pattern be added into your previous "vscocosandroidsamplesdkbox" pattern for 3.12+SDK - to use 3.13.1 VS project with SDK function?
Q-2: If I'm not mistaken, @nite said it is possible to create Cocos2dx based app for win32, using google-play-services; if so, then @IanHu, when could we have the same pattern sets to create google-play-services app for win32? ...if that's possible.
Q-3: Looks like I've missed "editor-support" folder in your
-- fixed Looks like I do not need it anymore; wonder why.
Q-4: Also "size_t" and "malloc" can't be found in my project; but
"$(VS_NdkRoot)\platforms\android-19\arch-arm\usr\include" is added ->
"C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r11c\platforms\android-19\arch-arm\usr\include" - what am I doing wrong during the migration of my project? I used same cpp+h files to compile for win32 (in VS-2015) and for android (from command prompt).
-- fixed by adding into the cpp file
#include "malloc.h" - I wonder why it was not need in win32 project version...
Q-5: In your "Cocos2dcpp.vcxproj" I see
$(VS_NdkRoot)\platforms\android-19\arch-arm\usr\include; Creating empty project that gives me double ".h" files in "Cocos2dcpp (android-19)" "External Dependencies" tree-list, for example:
c:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r11c\platforms\android-19\arch-arm\usr\include\machine\_types.h - is it ok?
Step-6: A pre-last milestone for me was to realize, what I really need to replace pattern files+folders in
Cocos2d/res tree-list to my files+folders.
Q-7: @IanHu, I have a big question for you about the apk release version build (selecting "Release" in VS): there appear
CocosVisualStudio.apk file in
ARM\Release only (or in
ARM\Debug only - if "Debug" is selected in VS). Release apk is 1.2 Mb smaller than debug. But:
7.A. I still can start "Release" apk version in VS to debug it on device (step-by-step or with breakpoints);
7.B. Google Play do not accept that 1.2 Mb smaller "Release" apk, saying it is in debug mode; Also SHA1 is different than in my previous apk, released with command-prompt.
7.C. Release apk can be build without ".keystore" file - so builder does not use it in Release mode;
7.D. apk files sizes - in megabytes:
command prompt: 6.5-release, 7.5-debug;
Visual Studio: 7.9-release, 9.1-debug;