Version 9 (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.

Required Tooling:

  • CMake 2.6
  • Python 2.7
  • Perl 5.12

Optional Tooling:

  • Nasm 2.10

Before you begin:

  • Make sure all paths are ok.
    cmake --version
    python -V
    perl -v
    nasm -v
    

Library Requirements:

  • boost 1.45.0
  • Google Protocol Buffers

Library Optional Requirements:

  • crypto++ 5.6.1
  • lua 5.1.4
  • openssl 1.0.0c
  • Google Break Pad

Unpack and install/build/* the various dependencies.

Setup variables

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%

Boost

# Build w32 libs
.\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


# Build x64 libs
.\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 out32\*.lib %TARGET_LIB_x86_DIR%

# Setup X64 libraries
perl Configure VC-WIN64A
ms\do_win64a
nmake -f ms\ntdll.mak clean
nmake -f ms\ntdll.mak install
copy out32\*.lib %TARGET_LIB_x64_DIR%

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