Code/Desktop

cURL 사용법

codens 2014. 6. 21. 04:51

cURL 설치, 빌드(컴파일)

소스 다운로드(Source code download)
http://curl.haxx.se/download.html
    -  프로젝트 로드 : cURL\curl-7.37.0-src\projects\Windows\VC6\cUrl.dsw
- 예제 - http://curl.haxx.se/libcurl/c/example.html


* zlib 빌드
http://www.zlib.net/
    - CMake 실행 : 소스폴더와 빌드폴더 지정
        - INSTALL_BIN_DIR ... 등의 폴더 설정등은 무시
        - Configure -> Generate ->
    - 지정한 빌드폴더에서 VC 프로젝트 로드


* OpenSSL 빌드
    - 설명 http://p-nand-q.com/programming/windows/building_openssl_with_visual_studio_2013.html
    - 소스 다운로드 - http://www.openssl.org/source/
    - ActivePerl 프로그램 설치 필요 - http://www.activestate.com/activeperl/downloads
   
- openssl소스폴더 에서 cmd.exe실행
        - 폴더 삭제 : tmp32dll , out32dll

- Visual Studio 환경변수 설정 bat 파일 실행
vc6의 경우 "C:\Program Files (x86)\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT"
    - ml.exe(Macro Assembler)가 없음, 그래서 힘듬 ㅠ.ㅠ
vs12의 경우 "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat"

- C:\Build-OpenSSL-VC-32 폴더 생성
- perl Configure VC-WIN32 --prefix=C:\Build-OpenSSL-VC-32

- ms\do_ms.bat
- nmake -f ms\ntdll.mak
- nmake -f ms\ntdll.mak install



//예제


반응형