yetuweiba
yetuweiba

Reputation: 241

How to Build curl with NDK 10rd in windows

I am new to NDK, Now I want to build curl with NDK 10rd in windows 7. I download curl's code at[https://github.com/bagder/curl].

I have tried and searched many ways. But It does not work.

The error info is :

E:/study/thrid_lib/curl-master//jni/src/setup.h:41:25: fatal error: curl_config.h: No such file or directory
 #include "curl_config.h"

INFO: My curl 's path is "E:/study/thrid_lib/curl-master/jni". Using cmd into this path and typing "ndk-build",then error will appear.

At last, thanks.

Upvotes: 0

Views: 2131

Answers (2)

yetuweiba
yetuweiba

Reputation: 241

I have solved this problem.The details are below:

  1. Put the curl(My curl's version is 7.42.1) into the jni folder.
  2. Download the file(http://mtterra.com/files/curltest.tar.gz) and extracting it.
  3. Copy the curl_config.h to the curl/lib.
  4. Copy the Android.mk to the jni folder.
  5. Run ndk-build in cmd.

That 's all. If you have anythings confused, feel free to contact me.

Upvotes: 2

Alex Cohn
Alex Cohn

Reputation: 57193

The instructions explain how to cross-compile curl with a standalone toolchain.

As in many similar cases, you may find it easier to launch Linux in a VirtualBox and compile the library there, rather than to struggle with cygwin or mingw.

Upvotes: 0

Related Questions