Hi,
I feel really stupid for asking this…
I went through the whole site searching for how to add curl to my proj.android and still don’t get it ;(
I’m compiling using:
C:\Tmp\MyCurl\proj.android>cocos compile -p android -ap android-25
And get:
jni/…/…/Classes/HelloWorldScene.cpp:9:23: fatal error: curl/curl.h: No such file or directory
#include "curl/curl.h
I guess I have to add ‘something’ to jni/Android.mk…
What I tried:
- looking at cpp-test example: there is no mention of curl in Android.mk… I know it works, but as to why - magic…
- adding $(call import-module,curl/prebuilt/android)
Can someone explain what is the proper way of adding curl (and I guess other libraries) to Android.mk? That is include files and libraries.
Is there some documentation on how to do this? I guess this is basic stuff and a wiki wouldn’t hurt.
I’m willing to do a write-up for other poor souls.