-
Notifications
You must be signed in to change notification settings - Fork 1
Build_SnStore
Kaiyang Lv(Kevin Lui) edited this page Jun 7, 2014
·
4 revisions
- follow the instruction http://www.deltavsoft.com/RCFProto/distro/unix/cpp.html
- Install protocol buffer compiler
- Install boost: sudo apt-get install libboost-all-dev
- Generate protocol buffer files
- cd src/RCFProto
- make
- set Define
- RCF_USE_ZLIB
- RCF_USE_OPENSSL
- USEDEBUG(enable internel debug information)
- include
- cpp/src
- cpp/src/RCF/include
- cpp/src/RCF/src/RCF
- link libraries
- pthread
- protobuf
- dl
- RCFProto
- boost_system
- boost_thread
- set build option
- client – test.cpp
- server – server.cpp
follow the instruction for windows
View->Property Pages
- VC++ Directories
- Include Directories:
boost_1_55_0;protobuf-2.5.0\src;RCFProto-src-1.0.0.1\cpp\src;RCFProto-src-1.0.0.1\cpp\src\RCF\include;RCF-2.0.1.100\src\RCF
- Linker
- General-Additional Library Directories:
protobuf-2.5.0\vsprojects\Debug
- Input-Additional Dependencies:
protobuf-2.5.0\vsprojects\Debug\libprotobuf.lib
Q:’WinSock.h has already been include’ or ‘XX redefine’ etc.
A: C/C++-Preprocessor-Preprocessor Definitions: WIN32_LEAN_AND_MEAN