编译SmartFox2X C++ API

1.  编译Boost 

    1) $cd .\Core\BoostAsio\Windows

    2) $ ./bootstrap.bat

$ ./bootstrap.bat
Building Boost.Build engine

Bootstrapping is done. To build, run:

    .\b2

To adjust configuration, edit 'project-config.jam'.
Further information:

    - Command line help:
    .\b2 --help

    - Getting started guide:
    http://boost.org/more/getting_started/windows.html

    - Boost.Build documentation:
    http://www.boost.org/boost-build2/doc/html/index.html


    3) $ ./b2

...
The Boost C++ Libraries were successfully built!

The following directory should be added to compiler include paths:

    D:/SmartFoxServer/SFS2X_API_Cpp_v0.9.8/Core/BoostAsio/Windows

The following directory should be added to linker library paths:

    D:\SmartFoxServer\SFS2X_API_Cpp_v0.9.8\Core\BoostAsio\Windows\stage\lib

    4)  $ls Core/BoostAsio/Windows/stage/lib

$ ls stage/lib
libboost_chrono-vc110-mt-1_52.lib     libboost_date_time-vc110-mt-gd-1_52.lib  libboost_system-vc110-mt-1_52.lib     libboost_thread-vc110-mt-gd-1_52.lib
libboost_chrono-vc110-mt-gd-1_52.lib  libboost_regex-vc110-mt-1_52.lib         libboost_system-vc110-mt-gd-1_52.lib
libboost_date_time-vc110-mt-1_52.lib  libboost_regex-vc110-mt-gd-1_52.lib      libboost_thread-vc110-mt-1_52.lib

2.  $mkdir Deploy\VisualStudio2012\Debug

3. 编译SmartFoxClientApi\VS2012\SmartFoxClientApi.sln

    1) cd SmartFoxClientApi\VS2012;

    2) 使用VS2012打开SmartFoxClientApi.sln

    3) SmartFoxClientApi属性页/配置属性/配置属性/C/C++/常规/附加包含目录 中添加:

        $(ProjectDir)../../Core/BoostAsio/Windows/stage/lib

     4)直接编译即得

        ZLib\contrib\vstudio\vc11\x86\ZlibDllDebug\zlibwapi.dll

        SmartFoxClientApi\VS2012\Debug\SmartFoxClientApi.dll



你可能感兴趣的:(编译SmartFox2X C++ API)