Build libcurl (Visual Studio 2008 Express)
How to build libcurl with OpenSSL support for win32 with MSVC 9
See CURLDIR/docs/INSTALL for help
This description assumes OpenSSL libeay32.lib and ssleay32.lib in
C:\lib\OpenSSL\out32dll
an header in
C:\lib\OpenSSL\inc32
and the MS Platform SDK [1] installed in
C:\Program Files\Microsoft Platform SDK
libcurl 7.19.4
Released on the 3rd of March 2009
VC9 makefiles are now included
tested with OpenSSL 0.9.8j
- download and unzip curl-7.19.4.tar.gz
- cmd.exe
- cd c:\lib\curl-7.19.4
- "C:\...\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
- set OPENSSL_PATH=c:\lib\openssl
- set WINDOWS_SDK_PATH=C:\Program Files\Microsoft Platform SDK
- cd lib
- nmake /f makefile.vc9 CFG=release-dll-ssl-dll (compiles with MD)
- nmake /f makefile.vc9 CFG=release-dll-ssl-dll RTLIBCFG=static (compiles with MT)
- find libcurl_imp.lib, libcurl.dll in lib\release-dll-ssl-dll
- repeat with debug and get libcurld_imp.lib, libcurld.dll
libcurl 7.19.3
fails with msvc9 for some reasons
libcurl 7.18.2
Works with curl-7.18.2 and openssl-0.9.8j
- download and unzip curl-7.18.2.tar.gz
- cmd.exe
- cd c:\lib\curl-7.18.2
- "C:\...\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
- set OPENSSL_PATH=c:\lib\openssl
- open lib\makefile.vc8 and remove bufferoverflowu.lib from WINLIBS
- cd lib
- nmake /f makefile.vc8 CFG=release-dll-ssl-dll (compiles with MD)
- nmake /f makefile.vc8 CFG=release-dll-ssl-dll RTLIBCFG=static (compiles with MT)
- find libcurl_imp.lib, libcurl.dll in lib\release-dll-ssl-dll
- repeat with debug and get libcurld_imp.lib, libcurld.dll
Links
- Microsoft ® Windows Server® 2003 R2 Platform SDK Web Install
- Download libcurl
- Using The libcurl C Interface
Diskussion
Sende ein Kommentar, Frage, Korrekturen, Beschimpfungen...
doxapp c++
Zur Übersicht
home