1 Star 0 Fork 141

李浩秦 / evpp

forked from zieckey / evpp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
quick_start_windows_with_visualstudio.md 2.70 KB
一键复制 编辑 原始数据 按行查看 历史
zieckey 提交于 2017-07-29 15:55 . Add evthrift, thrift test codes

Quick Start of using VS2015

Compile evpp from source code on Windows using Microsoft Visual Studio 2015

Install compiling tool chain

Prerequisites:

Install dependent libraries by using vcpkg

Use vcpkg to install libevent,glog,gtest,gflags.

for win_x32:
D:\git\vcpkg>vcpkg install gflags
D:\git\vcpkg>vcpkg install glog
D:\git\vcpkg>vcpkg install openssl
D:\git\vcpkg>vcpkg install libevent
D:\git\vcpkg>vcpkg install thrift
for win_x64:
D:\git\vcpkg>vcpkg install gflags:x64-windows
D:\git\vcpkg>vcpkg install glog:x64-windows
D:\git\vcpkg>vcpkg install openssl:x64-windows
D:\git\vcpkg>vcpkg install libevent:x64-windows
D:\git\vcpkg>vcpkg install thrift:x64-windows

Download the source code of evpp

$ git clone https://github.com/Qihoo360/evpp
$ cd evpp
$ git submodule update --init --recursive

Compile evpp

Using the default vs solution file:

$ start vsprojects/libevpp.sln
... # here yo can use Visual Studio 2015 to compile the whole evpp project

Or, we can use CMake to compile the whole projects on WIDNOWS command line console (This does not work on unix shell):

for win_x32:
D:\git\evpp>md build
D:\git\evpp>cd build
D:\git\evpp\build>cmake -DCMAKE_TOOLCHAIN_FILE=your_vcpkg_path/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 14 2015" ..
D:\git\evpp\build>start safe-evpp.sln
for win_x64:
D:\git\evpp>md build
D:\git\evpp>cd build
D:\git\evpp\build>cmake -DCMAKE_TOOLCHAIN_FILE=your_vcpkg_path/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 14 2015 Win64" ..
D:\git\evpp\build>start safe-evpp.sln

Run the unit tests

$ cd vsprojects/bin/Debug/
$ ./libevpp-test.exe

Use evpp as a library

If you just want to use evpp as a library, you can use vcpkg to install evpp:

 D:\git\vcpkg>vcpkg install evpp

That will install evpp in your local machine. And then, you can use evpp in you own applications.

C++
1
https://gitee.com/landv_admin/evpp.git
git@gitee.com:landv_admin/evpp.git
landv_admin
evpp
evpp
master

搜索帮助