Compiler librairies externes
From Lanjwiki
Instructions pour compiler les outils externes suivants:
- iconv
- zlib
- libxml2
- libxslt
- xmlsec
- openssl
- curl
set SRC_PATH=c:\\src\\ext_libs
set ICONV_DIR=libiconv-1.9.1 set ZLIB_DIR=zlib121 set LIBXML_DIR=libxml2-2.6.22 set LIBXSLT_DIR=libxslt-1.1.15 set XMLSEC_DIR=xmlsec1-1.2.9 set OPENSSL_DIR=openssl-0.9.8b set CURL_DIR=curl-7.15.1
@rem prerequisites are: zlib and iconv must be already built
Compilation en Release
@echo Builing RELEASE set DEBUGON="debug=no" set OUT_PATH=%SRC_PATH%\\rel
@echo Building %LIBXML_DIR% cd %SRC_PATH%\\%LIBXML_DIR%\\win32 cscript configure.js %DEBUGON% zlib=yes prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib nmake -f Makefile.msvc nmake -f Makefile.msvc install
@echo Building %LIBXSLT_DIR% cd %SRC_PATH%\\%LIBXSLT_DIR%\\win32 cscript configure.js %DEBUGON% zlib=yes crypto=no prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib nmake -f Makefile.msvc nmake -f Makefile.msvc install
@echo Building %OPENSSL_DIR% cd %SRC_PATH%\\%OPENSSL_DIR% perl Configure VC-WIN32 ms\\do_nasm.bat nmake -f ms\
t.mak
nmake -f ms\
tdll.mak
@echo Building %XMLSEC_DIR% cd %SRC_PATH%\\%XMLSEC_DIR%\\win32 cscript configure.js %DEBUGON% static=no prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib nmake -f Makefile.msvc nmake -f Makefile.msvc install
@echo Building %CURL_DIR% cd %SRC_PATH%\\%CURL_DIR%\\lib set ZLIB_PATH=%SRC_PATH%\\%ZLIB_DIR% set OPENSSL_PATH=%SRC_PATH%\\%OPENSSL_DIR% @rem chemins sur 8 caracteres pour LIB et INCLUDE de "C:\\Program Files\\Microsoft SDK\\" @rem ajuster les valeurs en faisant: dir /X "C:\\Program Files\\Microsoft *" set INCLUDE=c:\\PROGRA~1\\MIFD68~1\\INCLUDE;%INCLUDE% set LIB=c:PROGRA~1\\MIFD68~1\\LIB;%LIB% set CFG=debug-dll-ssl-dll-zlib-dll del /Q debug-dll-ssl-dll-zlib-dll\\*.* nmake -f Makefile.vc6
Compilation en Debug
@echo Builing DEBUG set DEBUGON="debug=yes" set OUT_PATH=%SRC_PATH%\\dbg
Et pour OpenSSL:
perl Configure VC-WIN32 # compilation of with debug symbols (for nt.mak and ntdll.mak) sed 's/nasm VC-WIN32/debug nasm VC-WIN32/' do_nasm.bat > do_nasm_debug.bat ms\\do_nasm_debug.bat nmake ...