title: jni/Android.mk:8:curlLib/packages/Android/Android.mk: No such file or directory
body: <p>I have never built curl with Android.</p>
  
  <p>Pre-requisites : I am using Android Studio 2.1.2 
  I am using NDK , non-experimental way
  I have Source code of the curl-7.49.1 library inside my jni folder in curlLib directory
  ExtLibCurl is folder/directory inside my application jni folder, which has source code downloaded from 
  <a href="https://android.googlesource.com/platform/external/curl/+/e6f2b03027b5feb92b30f5d47801ec3fabe9fd95" rel="nofollow">https://android.googlesource.com/platform/external/curl/+/e6f2b03027b5feb92b30f5d47801ec3fabe9fd95</a></p>
  
  <p>Can check Android.mk for cURL and other files there.</p>
  
  <p>Updating the files according to the comments in the question.</p>
  
  <p>Following is my Android.mk file</p>
  
  <pre><code>JNI_DIR := $(call my-dir)
  
  LOCAL_PATH:= $(JNI_DIR)
  include $(CLEAR_VARS)
  
  include $(LOCAL_PATH)/ExtLibCurl/Android.mk
  
  # Build main library as shared library.
  LOCAL_PATH := $(JNI_DIR)
  include $(CLEAR_VARS)
  
  LOCAL_C_INCLUDES := $(LOCAL_PATH)
  LOCAL_C_INCLUDES += $(LOCAL_PATH)/ExtLibCurl/include/curl
  LOCAL_C_INCLUDES += $(LOCAL_PATH)/ExtLibCurl/lib
  
  FILE_LIST += $(wildcard $(LOCAL_PATH)/ExtLibCurl/src/*.c)
  
  LOCAL_MODULE := ndksampleapp
  LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
  
  LOCAL_STATIC_LIBRARIES := ExtLibCurl
  
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>Application.mk </p>
  
  <pre><code>APP_ABI := all
  APP_STL    := gnustl_static
  APP_CFLAGS += -std=gnu++11
  APP_OPTIM  := debug
  LOCAL_CPP_FEATURES += exceptions
  
  NDK_TOOLCHAIN_VERSION := 4.9
  </code></pre>
  
  <p>Is my way of building curl's Android.mk is correct?</p>
  
  <p>when I do ndk-build in src\main path I am getting following error</p>
  
  <pre><code>    [arm64-v8a] Compile        : ndksampleapp &lt;= curlutil.c
  cc1.exe: warning: command line option '-std=gnu++11' is valid for C++/ObjC++ but not for C
  In file included from jni/ExtLibCurl/lib/strdup.h:24:0,
                   from jni/ExtLibCurl/src/setup.h:206,
                   from jni/ExtLibCurl/src/curlutil.c:23:
  jni/ExtLibCurl/lib/setup.h:120:28: fatal error: curl/curlbuild.h: No such file or directory
   #include &lt;curl/curlbuild.h&gt;
                              ^
  compilation terminated.
  make: *** [obj/local/arm64-v8a/objs-debug/ndksampleapp/ExtLibCurl/src/curlutil.o] Error 1
  </code></pre>
  
  <p>If I remove FILE_LIST += $(wildcard $(LOCAL_PATH)/ExtLibCurl/src/*.c) no cURL files are getting build.</p>