Cocos2d-x APP_STL := c++_static problem on Android
Posted: Sat Dec 27, 2014 4:30 pm
Changing the line APP_STL := gnustl_static to APP_STL := c++_static in jni/Application.mk causes a strange problem in my project.
I discovered that the problem starts with j2b2World(Json::Value& worldValue, b2World* world) method in b2dJson.cpp
I guess there is a problem with this code block :
I need to use Google IAP plugin in cocos2d-x and a script called gameDevGuide.sh (in cocos2d/plugin/tools folder ) makes that change to Application.mk
I am using cocos2d-x 3.3 final and Android NDK r10.
What should I do to fix that problem ? Thanks in advance.
I discovered that the problem starts with j2b2World(Json::Value& worldValue, b2World* world) method in b2dJson.cpp
I guess there is a problem with this code block :
Code: Select all
int i = 0;
Json::Value bodyValue = worldValue["body"][i];
while ( !bodyValue.isNull() ) {
b2Body* body = j2b2Body(world, bodyValue);
readCustomPropertiesFromJson(body, bodyValue);
m_bodies.push_back(body);
m_indexToBodyMap[i] = body;
i++;
bodyValue = worldValue["body"][i];
}
I need to use Google IAP plugin in cocos2d-x and a script called gameDevGuide.sh (in cocos2d/plugin/tools folder ) makes that change to Application.mk
I am using cocos2d-x 3.3 final and Android NDK r10.
What should I do to fix that problem ? Thanks in advance.