1. OpenSSL을 빌드하기 위해선 activestate perl이 필요하다.
http://www.activestate.com/activeperl/
2. OpenSSL을 다운로드 받는다
3. 두개의 파일을 열어 유니코드로 저장한다
http://www.activestate.com/activeperl/
2. OpenSSL을 다운로드 받는다
http://www.openssl.org/source/
3. 두개의 파일을 열어 유니코드로 저장한다
OpenSSL\crypto\x509v3\v3_pcia.c
OpenSSL\crypto\x509v3\v3_pci.c
File -> Advanced Save Options
Unicode (UTF-8 with signature) - Codepage 65001 선택 후 저장
# .\crypto\x509v3\v3_pcia.c : error C2220: warnig treated as error ? no ‘object’ file generated
.\crypto\x509v3\v3_pcia.c : warnig C4819: The file contains a character that cannot be represented
in the current code page <cp949>. Save the file in Unicode format to prevent data loss
NMAKE : fatal error U1077:
‘”C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE”‘ : return code ’0×2′ stop 오류가 발생한다면
유니코드로 바꿨는지 확인하고, 각 파일 맨위의 주석을 삭제한다. (난 주석을 풀었더니 문제가 발생했다. 유니코드로만 바꿨었다.)
4. Visual Studio xxxx Command Prompt를 열고 OpenSSL폴더 위치에서
perl Configure VC-WIN32
ms\do_ms
static library 생성은 nmake -f ms\nt.mak
dll 생성은 nmake -f ms\ntdll.mak
# error C2220: warning treated as error - no 'object' file generated 오류가 발생하면
makefile을 열어 /WX를 /WX- 로 바꿔서 빌드한다.
5. 빌드 성공하면
C:\OpenSSL_Install\openssl-0.9.8j\out32 위치에서
..\ms\test 로 테스트해본다
out32 폴더에 lib 파일 2개가
inc32 폴더에 h 파일들이 생성됨.
'Develop' 카테고리의 다른 글
map less (0) | 2011.09.29 |
---|---|
bitTorrent 개발 (0) | 2011.08.04 |
awk, sed를 이용한 문자열 조작 예1 (0) | 2011.07.12 |
awk 기본 (0) | 2011.06.18 |
리스트 해석 (0) | 2011.04.10 |