internals:windows:libs:libcurl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
internals:windows:libs:libcurl [2009/05/13 08:51] – update doc, ssh2 support, ipv6, sspi3 pajoye | internals:windows:libs:libcurl [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Available prebuilt libraries ===== | ===== Available prebuilt libraries ===== | ||
- | All prebuilt libraries are available | + | All prebuilt libraries are available |
===== Requirements ===== | ===== Requirements ===== | ||
- | * CURL sources, patched, available in [[http://pecl2.php.net/downloads/php-windows-builds/ | + | * CURL sources, patched, available in [[https://github.com/winlibs/cURL|here]] |
* OpenSSL binaries and development files | * OpenSSL binaries and development files | ||
* Libssh2 binaries and development files | * Libssh2 binaries and development files | ||
Line 18: | Line 18: | ||
===== Configuration ===== | ===== Configuration ===== | ||
- | If you did not use the patched sources, you will need to manually add SSH2 support in the Makefile(s) (vc6 and vc9) as well as than enabling SSPI and IPV6. | + | See https:// |
- | To enable IPV6 add the following | + | Example release build command |
- | <code C> | + | |
- | /* Define if you want to enable IPv6 support */ | + | |
- | #define ENABLE_IPV6 | + | |
- | </ | + | |
- | Uncomment the WINDOWS_SSPI line in the Makefile: | + | |
- | <code bash> | + | |
- | WINDOWS_SSPI = 1 | + | Note that php is always using a dynamic openssl runtime. Even when using WITH_SSL=static, openssl dlls are required. |
- | </ | + | |
- | + | ||
- | Add a new configuration to compile curl with SSH2 support (I only define what we need for php, ssl as dll, zip static). | + | |
- | + | ||
- | Add the SSH cflag after the CFLAGSSSL definition (line 99): | + | |
- | <code bash> | + | |
- | CFLAGSSSH | + | |
- | ... | + | |
- | SSH2LIBSDLL | + | |
- | SSH2LIBS | + | |
- | </ | + | |
- | + | ||
- | Add the new configuration: | + | |
- | <code bash> | + | |
- | ###################### | + | |
- | # release-ssh2-ssl-dll-zlib | + | |
- | + | ||
- | !IF " | + | |
- | TARGET | + | |
- | DIROBJ | + | |
- | LFLAGSSSH = "/ | + | |
- | LFLAGSZLIB = "/ | + | |
- | LFLAGSSSL = "/ | + | |
- | LNK | + | |
- | CC = $(CCNODBG) $(RTLIB) $(CFLAGSSSL) $(CFLAGSZLIB) $(CFLAGSLIB) | + | |
- | CFGSET | + | |
- | !ENDIF | + | |
- | </ | + | |
- | ===== Compilation | + | |
- | + | ||
- | To build the library, go to the lib directory and call the makefile with the desired options: | + | |
- | + | ||
- | <code bash> | + | |
- | cd C: | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | Example for a Visual C++ 2005 (VC9): | + | |
- | + | ||
- | Compilation x64, release | + | |
- | <code bash> | + | |
- | nmake /f Makefile.vc9 cfg=release-ssl-zlib ZLIB_PATH=c: | + | |
- | </ | + | |
- | + | ||
- | Compilation x86, release | + | |
- | <code bash> | + | |
- | nmake /f Makefile.vc9 cfg=release-ssl-zlib ZLIB_PATH=c: | + | |
- | </ | + | |
- | + | ||
- | Compilation x86, Debug | + | |
- | <code bash> | + | |
- | nmake /f Makefile.vc9 cfg=debug-ssl-zlib ZLIB_PATH=c: | + | |
- | </ | + | |
- | + | ||
- | Compilation x64, Debug | + | |
- | <code bash> | + | |
- | nmake /f Makefile.vc9 cfg=debug-ssl-zlib ZLIB_PATH=c: | + | |
- | </ | + |
internals/windows/libs/libcurl.1242204675.txt.gz · Last modified: 2017/09/22 13:28 (external edit)