Mittwoch, 26. Dezember 2012

libcurl

About

Libcurl is a multi-protocol file transfer library.

Website

http://curl.haxx.se/

Installation / Quickstart

1. Download Precompiled Library

Web: http://curl.haxx.se/download.html
Download: Section Win32 - Generic, libcurl from Günter Knauf

2. Extract and install files

bin -> %USERPROFILE%/bin
include/curl/ -> %USERPROFILE%/include/curl/
lib -> %USERPROFILE%/lib

3. Install Manpages under Cygwin

Run Cygwin's setup.exe
Install Packages: curl, libcurl-devel

4. Install Libopenssl under MinGW

Install packages with mingw-get (Requires elevated command prompt):
mingw-get --reinstall install msys-libopenssl
mingw-get --reinstall install msys-openssl


Go into msys directory and make symbolic links (needed for some programs that expect certain names):
libeay32.a -> libcrypto.a
libeay32.dll.a -> libcrypto.dll.a
libssl32.a -> libssl.a
libssl32.dll.a -> libssl.dll.a

Run these commands to make the symbolic links under Windows (elevated command prompt needed):
mklink libeay32.a libcrypto.a
mklink libeay32.dll.a libcrypto.dll.a
mklink libssl32.a libssl.a
mklink libssl32.dll.a libssl.dll.a



5. Compile a test program

Website: http://curl.haxx.se/libcurl/c/simple.html
Save the source listing as simple.c
Compile: gcc -Wall -o simple simple.c -lcurl -lcurldll

References

http://www.wagner.pp.ru/~vitus/articles/openssl-mingw.html
http://curl.haxx.se/

Keine Kommentare:

Kommentar veröffentlichen