下载
git://github.com/bagder/curl.git
openssl
openssl编译
for linux or mingw
./buildconf
./configure --with-ssl="$PREFIX"
make
for andorid
./buildconf
../configure --prefix=$PREFIX \
CC=${CROSS_PREFIX}gcc \
--disable-shared \
--enable-static \
--with-ssl="$PREFIX"\
CFLAGS="-march=armv7-a -mfpu=neon --sysroot=${PLATFORM}" \
CPPFLAGS="-march=armv7-a -mfpu=neon --sysroot=${PLATFORM}" \
--host=arm-linux-androideabi \
make install
for msvc
从开始菜单 -> visual studio 2013-> visual studio tools -> VS2013 x86 本机工具命令提示。进入vs编译环境。
再进入curl源码根目录,执行下面命令:
buildconf.bat
cd winbuild
nmake /f Makefile.vc mode=static VC=12
生成的库位于源码根目录的 builds 下
