Box2d in cocos2d-1.0.1-x-0.13.0-beta version

Hello guys!

I’m trying to use the new version with a new project with box2d.
I made this changes:

LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static box2d_static

$(call import-module,CocosDenshion/android) $(call import-module,cocos2dx) $(call import-module,Box2D)

The box2d files are compiled but when the app starts, it closes suddenly.
Am I making any mistake?

Thanks.

Do you successfully build your app? If not then try add $(LOCAL_PATH)/…/…/… to LOCAL_C_INCLUDES

Yeah. The app built sucessfully, but when it starts, it breaks.

Hello, Jefferson Pita, I have already tested on my android device Nexus S, and the application run without any problem.Can you offer a simplest demo to reproduce the issue?

Now, only generate one .so, so you should not load other .so in your java file.
You can check that if you try to other .so.

More error information is appreciated.

I’m testing with a “HelloWorld with Box2D” that is working in “0.11” version.
I’m pretty sure that it is something that I’m missing in Android.mk or in java class.

I didn’t change anything in java class. Should I?
Look at Android.mk:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := game_shared

LOCAL_MODULE_FILENAME := libgame

LOCAL_SRC_FILES := helloworld/main.cpp …/…/Classes/AppDelegate.cpp …/…/Classes/HelloWorldScene.cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/…/…/Classes $(LOCAL_PATH)/…/…/ $(LOCAL_PATH)/…/…/Box2D

LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static box2d_static

include $(BUILD_SHARED_LIBRARY)

$(call import-module,CocosDenshion/android) $(call import-module,cocos2dx) $(call import-module,Box2D)

Thanks guys!

Now I figured it out.

I changed:

$(LOCAL_PATH)/…/…/Box2D

to

$(LOCAL_PATH)/…/…/…/Box2D

And everything went very well!