If I use #include <network/HttpClient.h> in the cpp I’m trying to use HttpClient in, it’s fine on Mac/iOS but the android build_native.py tells me the file or directory doesn’t exist.
I tried adding #include “network/HttpClient.h” etc. to cocos2d.h which, again, was fine in xcode but threw up the same “the file or directory doesn’t exist” at any mention of the network folder.
I tried adding HttpClient etc. to Classes/ but then had issues accessing curl by any means.
This included adding the following lines to my Android.mk in proj.android/jni:
LOCAL_WHOLE_STATIC_LIBRARIES = curl_static_prebuilt
$
Is there something obvious I’m missing or perhaps a workaround to this issue?
Extra Info: This is a C+ multi-platform project made using ‘create_project.py’ on OSX 10.9.1 and I’m using the terminal for building etc.
also i have tried to use vs2012 ,get the following error:
fatal error C1083: 无法打开包括文件:“network/HttpClient.h”: No such file or directory