Cocos2d-x : Can't compile

0 votes
Hello,

I am a beginner with Appwrap and Cocos2d-x 3.1.
I added Appwrap folder into my project and I tried to compile it. I got some errors with "#include curl/curl.h".

How to avoid that ?

Thank you.
asked Jun 1, 2014 in AppWarp by Manu (20 points)

1 Answer

0 votes
 
Best answer

Hi,

You need to define path for "curl/curl.h". Please refer SDK ReadMe.

Thanks.

 

answered Jun 2, 2014 by rajeev.etc (1,660 points)
selected Jun 2, 2014 by Manu
Thank you for the quick reply. It worked for me on iOs with new ReadMe.

However for Android, I added in Android.mk : $(call import-module,cocos2d/external/curl/prebuilt/android/{ARCH}/libcurl)

Then I ran the command : ./build_native.py
I got the error : Cannot find module with tag 'cocos2d/external/curl/prebuilt/android/{ARCH}/libcurl' in import path  

What should I do ?
In "cocos2d/external/curl/prebuilt/android/{ARCH}/libcurl",  {ARCH} stand for architecture you are using for your app. Cocos2dx supports three archs that you can find at path "cocos2d/external/curl/prebuilt/android". This folder has armeabi / armeabi-v7a / x86. You just need to replace {ARCH} with any of these three  architecture names that suites best in your case.
hi,
i do the same line you by change {ARCH} to armeabi but i still got the same error, could you give me other solution
Thanks
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...