internals:windows:libs:libcurl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
internals:windows:libs:libcurl [2011/04/06 10:59] – external edit 127.0.0.1internals: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 in the php-libs [[http://pecl2.php.net/downloads/php-windows-builds/php-libs/|repositories]]+All prebuilt libraries are available as part of the [[http://windows.php.net/downloads/php-sdk/|PHP SDK]]
  
 ===== Requirements ===== ===== Requirements =====
  
-  * CURL sources, patched, available in  [[http://pecl2.php.net/downloads/php-windows-builds/source/libcurl-7.19.4-source.zip|here]]+  * 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://github.com/pierrejoye/curl/blob/master/winbuild/BUILD.WINDOWS.txt
  
-To enable IPV6 add the following line to lib/config-win32.h (on line 179, before HAVE_SELECT): +Example release build command line:
-<code C> +
-/* Define if you want to enable IPv6 support */ +
-#define ENABLE_IPV6 +
-</code>+
  
-Uncomment the WINDOWS_SSPI line in the Makefile: +  nmake /f Makefile.vc mode=static VC=9 WITH_DEVEL=D:\repo\curl_deps WITH_SSL=static WITH_ZLIB=static WITH_SSH2=static ENABLE_WINSSL=no USE_IDN=no GEN_PDB=yes DEBUG=no 
-<code bash> +   
-WINDOWS_SSPI = 1 +Note that php is always using dynamic openssl runtimeEven when using WITH_SSL=staticopenssl dlls are required.
-</code> +
- +
-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   /DHAVE_LIBSSH2 /DHAVE_LIBSSH2_H /DLIBSSH2_WIN32 /DLIBSSH2_LIBRARY /DUSE_LIBSSH2 +
-... +
-SSH2LIBSDLL libssh2.lib +
-SSH2LIBS    libssh2_a.lib +
-</code> +
- +
-Add the new configuration: +
-<code bash> +
-###################### +
-# release-ssh2-ssl-dll-zlib +
- +
-!IF "$(CFG)" == "release-ssh2-ssl-dll-zlib" +
-TARGET   = $(LIB_NAME).lib +
-DIROBJ   = $(CFG) +
-LFLAGSSSH = "/LIBPATH:$(DEPS_PATH)\lib" +
-LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)" +
-LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32dll" +
-LNK      $(LNKLIB) $(WINLIBS) $(SSLLIBS) $(ZLIBLIBS)  $(SSH2LIBS) $(LFLAGSSSL) $(LFLAGSZLIB) $(LFLAGSSSH) /out:$(DIROBJ)\$(TARGET) +
-CC       $(CCNODBG) $(RTLIB) $(CFLAGSSSL) $(CFLAGSZLIB) $(CFLAGSLIB)  $(CFLAGSSSH) /I$(DEPS_PATH)/include/libssh2 +
-CFGSET   = TRUE +
-!ENDIF +
-</code> +
-===== Compilation ===== +
- +
-To build the library, go to the lib directory and call the makefile with the desired options: +
- +
-<code bash> +
-cd C:\php-sdk\libs_build\vc9\x86\curl-7.19.4\lib +
-</code> +
- +
- +
-Example for Visual C++ 2008 (VC9): +
- +
-Compilation x64, release +
-<code bash> +
-nmake /f Makefile.vc9 cfg=release-ssl-zlib ZLIB_PATH=c:\phpbuilds\2k5\x64\deps OPENSSL_PATH=c:\phpbuilds\2k5\x64\deps MACHINE=x64 +
-</code> +
- +
-Compilation x86release +
-<code bash> +
-nmake /f Makefile.vc9 cfg=release-ssl-zlib ZLIB_PATH=c:\phpbuilds\2k5\x86\deps OPENSSL_PATH=c:\phpbuilds\2k5\x86\deps +
-</code> +
- +
-Compilation x86, Debug +
-<code bash> +
-nmake /f Makefile.vc9 cfg=debug-ssl-zlib ZLIB_PATH=c:\phpbuilds\2k5\x86\deps OPENSSL_PATH=c:\phpbuilds\2k5\x86\deps +
-</code> +
- +
-Compilation x64, Debug +
-<code bash> +
-nmake /f Makefile.vc9 cfg=debug-ssl-zlib ZLIB_PATH=c:\phpbuilds\2k5\x64\deps OPENSSL_PATH=c:\phpbuilds\2k5\x64\deps MACHINE=x64 +
-</code>+
internals/windows/libs/libcurl.1302087566.txt.gz · Last modified: 2017/09/22 13:28 (external edit)