Some cocos2d-x libraries not being found by the android compilier -


I have included coco-ext.h in one of my header files and added extension namespace. However, when I go to the terminal and try to compile for Android, Visual Studio does not have any problems with the code, however, it searches successfully and says that the file can not be included in the file. Do I need to keep a file somewhere? Or add it to Android.mk?

I'm running cocos2d-x 3.0r2 with code in C ++

Thank you.

If someone else has to face this problem, check this page:

Its meat is to include the header at the top of your file:

  #include "extensions / cocos-ext.h"   

Then Android in the jni folder. Add extension to the MIC file:

  LOCAL_WHOLE_STATIC_LIBRARIES: = cocos2dx_static LOCAL_WHOLE_STATIC_LIBRARIES + = cocosdenshion_static LOCAL_WHOLE_STATIC_LIBRARIES + = box2d_static LOCAL_WHOLE_STATIC_LIBRARIES + = cocos_extension_static // Add to $ (BUILD_SHARED_LIBRARY) $ (Import-module, 2D call ) $ (Call Import-Module, Audio / Android) $ (Call Import-Module, Box 2D) $ (import-module, call extension) // Add it    < / html>

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -