I have problems in using “CCHttpClient”, and I have some questions here: (All my question is on cocos2d-x 2.0.2 version.)
- Is there a problem on XCode project templates ?
Because I can’t use CCHttpClient in my project without modify, to use this network extension I need to add something to my project. They are:
add “libcurl.a” library.
copy the “network” folder into my project.
add “/libs/cocos2dx/platform/third_party/ios” into header search path.
Do you really design for this??
or you have miss some thing in XCode templates?
- How can I use “extensions/network” normally on android?
I have tried the “testCpp/ExtensionsTest/NetworkTest”, and it works fine on my android devices.
But it does’t work on my project, I have did the follow things.
modify Android.mk add : LOCAL_STATIC_LIBRARIES := curl_static_prebuilt
I can build the project without error, but I can’t receive response using CCHttpClient, seems it doesn’t work at all.
Please help me, thank you in advance.