在Windows上建立节俭服务7 [英] Building thrift service on Windows 7

查看:171
本文介绍了在Windows上建立节俭服务7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了什么?

我使用Microsoft Visual Studio 2010

I'm using Microsoft Visual Studio 2010

1)我下载的libevent-2.0.16稳定(的下载),我已经把它到D:\\源

1) I downloaded libevent-2.0.16-stable ( download ) and I have put it to D:\sources

2)我已经下载boostPro 1.47(从 http://www.boostpro.com/download/)和我已经安装了它到D:\\程序,选择BoostPro计算为镜,检查的Visual C ++为10.0编译器,并且变种:

2) I have downloaded boostPro 1.47 ( from http://www.boostpro.com/download/ ) and I have installed it into D:\programs, selecting BoostPro Computing as mirror, checking Visual C++ 10.0 as Compiler, and as variants:


  • 多线程

  • Multithreaded

多线程调试

多线程,静态运行

多线程调试,运行时的静态

Multithreaded debug, static runtime

3)然后,我曾与颠覆下载,从这里 节俭来源到D:\\ \\源节俭

3) Then I have downloaded with SubVersion, thrift sources from here to D:\sources\thrift

4)好了,现在我到D:\\ \\源节俭\\ lib目录\\ CPP和我开了libthrift.vcxproj用MSVC ++ 10,包括提高资源和库(D:\\程序\\提升\\ boost_1_47 \\和D:\\程序\\提升\\ boost_1_47 \\ LIB \\),我已经成功地编译了。

4) Ok, now I went to D:\sources\thrift\lib\cpp and I opened libthrift.vcxproj with MSVC++ 10, included boost sources and libs ( D:\programs\boost\boost_1_47\ and D:\programs\boost\boost_1_47\lib\ ) and I have compiled it successfully.

5)我的他的编译器

6)我做了一个新的项目到MSVC ++ 10,挂钩升压和节俭库&放大器;消息人士透露,之前产生的,我提出的发电机CPP目录(之前节俭编译器生成和删除* .skeleton.cpp文件)到项目,和的的作为的main.cpp并成功编译它。

6) I have made a new project into MSVC++ 10, linked boost and thrift libs & sources, before generated, I have moved gen-cpp dir ( generated with Thrift Compiler before, and deleting *.skeleton.cpp files ) into the project, and this as main.cpp and compiled it successfully.

如果你还没有找到任何提振lib中,你可以从的这里

If you haven't found any boost lib, you can download them from here.

现在,有什么不对?
似乎一切都只是完美的,但是,当我开始我的应用程序...
屏幕截图
PS:第二行意思是调用WSAStartup不执行或调用WSAStartup的错误

NOW, what's wrong? it seems all just perfect, but, when I start my application... PS: second line means "WSAStartup was not performed or WSAStartup's error".

任何想法?

推荐答案

通过这个补丁储蓄工作完全靠窗户!

With this patch Thrift works completely on windows!

这篇关于在Windows上建立节俭服务7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆