728x90
반응형
- curl 소스 코드를 다운로드 받는다.
-
압축파일을 푼다.
-
경로 이동
cd curl-버전\winbuild
- Visual Stidio Command Prompt 실행
- 이때, 32비트 인지 64 비트인지 확인하여 실행하여야 합니다.
- 명령어 실행
- LIB(*.lib) 로 빌드하는 방법
nmake /f Makefile.vc mode=static
- DLL(*.dll) 로 빌드하는 방법
nmake /f Makefile.vc mode=dll
- 기타 옵션 (nmake /f Makefile.vc mode= )
VC=<6,7,8,9,10,11,12,14,15> - VC versions
WITH_DEVEL=<path> - Paths for the development files (SSL, zlib, etc.)
Defaults to sibbling directory deps: ../deps
Libraries can be fetched at https://windows.php.net/downloads/php-sdk/deps/
Uncompress them into the deps folder.
WITH_SSL=<dll or static> - Enable OpenSSL support, DLL or static
WITH_NGHTTP2=<dll or static> - Enable HTTP/2 support, DLL or static
WITH_MBEDTLS=<dll or static> - Enable mbedTLS support, DLL or static
WITH_CARES=<dll or static> - Enable c-ares support, DLL or static
WITH_ZLIB=<dll or static> - Enable zlib support, DLL or static
WITH_SSH2=<dll or static> - Enable libSSH2 support, DLL or static
WITH_PREFIX=<dir> - Where to install the build
ENABLE_SSPI=<yes or no> - Enable SSPI support, defaults to yes
ENABLE_IPV6=<yes or no> - Enable IPv6, defaults to yes
ENABLE_IDN=<yes or no> - Enable use of Windows IDN APIs, defaults to yes
Requires Windows Vista or later
ENABLE_WINSSL=<yes or no> - Enable native Windows SSL support, defaults to yes
GEN_PDB=<yes or no> - Generate Program Database (debug symbols for release build)
DEBUG=<yes or no> - Debug builds
MACHINE=<x86 or x64> - Target architecture (default is x86)
CARES_PATH=<path to cares> - Custom path for c-ares
MBEDTLS_PATH=<path to mbedTLS> - Custom path for mbedTLS
NGHTTP2_PATH=<path to HTTP/2> - Custom path for nghttp2
SSH2_PATH=<path to libSSH2> - Custom path for libSSH2
SSL_PATH=<path to OpenSSL> - Custom path for OpenSSL
ZLIB_PATH=<path to zlib> - Custom path for zlib
- 32비트는 MODE=x86, 64비트는 MODE=x64 사용
- 나머지 옵션은 기본값을 사용하여도 무방함
728x90
반응형
'C C++' 카테고리의 다른 글
Bitsery : header 전용 C++ 이진 직렬화 라이브러리 (0) | 2020.01.25 |
---|---|
C++ std::any (0) | 2019.08.22 |
Serial (KMDF) sample driver's DriverEntry routine (0) | 2019.01.17 |
[StackOverflow][Re] Create PDF document for printing in Qt from template (0) | 2018.10.22 |
curl & libcurl 7.62.0 for Visual Studio 2017 (0) | 2018.10.06 |