Version 3 (modified by mickem, 2 years ago) (diff)

--

Building the 0.4.x branch

Since I just got a new machine I figured I'd write this quick summary if anyone else is interested in setting this up.

Tooling:

  • CMake 2.6
  • Python 2.7
  • Perl 5.12(?)
  • Nasm 2.10(?)

Before you begin:

  • Make sure all paths are ok.
    nasm -h
    ccmake -h
    python -V
    perl -h
    

Requirrements:

  • boost 1.45.0
  • crypto++ 5.6.1
  • lua 5.1.4
  • openssl 1.0.0c

Unpack and install/build/* the various dependencies.

BOost:

set TARGET_DIR=d:\source\
set SOURCE_DIR=d:\source\lib\
set TOOLS_DIR=d:\source\tools\

set TARGET_LIB_DIR=%TARGET_DIR%\lib
set TARGET_LIB_x86_DIR=%TARGET_LIB_DIR%\x86
set TARGET_LIB_x64_DIR=%TARGET_LIB_DIR%\x64
set TARGET_LIB_ia64_DIR=%TARGET_LIB_DIR%\ia64

set TARGET_INC_DIR=%TARGET_DIR%\include
set PATH=%PATH%;%TOOLS_DIR%


.\bjam --toolset=msvc --prefix=%TARGET_DIR% --includedir=%TARGET_INC_DIR% --libdir=%TARGET_LIB_x86_DIR% runtime-link=static link=static clean
.\bjam --toolset=msvc --prefix=%TARGET_DIR% --includedir=%TARGET_INC_DIR% --libdir=%TARGET_LIB_x86_DIR% runtime-link=static link=static install


.\bjam --toolset=msvc --prefix=%TARGET_DIR% --includedir=%TARGET_INC_DIR% --libdir=%TARGET_LIB_x64_DIR% address-model=64 runtime-link=static link=static clean
.\bjam --toolset=msvc --prefix=%TARGET_DIR% --includedir=%TARGET_INC_DIR% --libdir=%TARGET_LIB_x64_DIR% address-model=64 runtime-link=static link=static install

Open SSL

# Setup W32 libraries

perl Configure VC-WIN32
ms\do_nasm
nmake -f ms\nt.mak clean
nmake -f ms\nt.mak install
xcopy /Y out32dll\*.lib %TARGET_LIB_x86_DIR%

# Setup X64 libraries

# Copy header files
xcopy /s inc32\*.* %TARGET_INC_DIR%