vs2010编译poco1.6.1

安装步骤:
 
1. 下载源码包。在POCO的官方网站下载最新的POCO源码包。http://pocoproject.org/download/index.html
 
2.解压源码包。下载的文件名是“poco-1.6.1.zip”,将其解压在F:\POCO目录下。
 
3.编译库文件。开始菜单–Microsoft Visual Studio 2010–Visual Studio Tools—Visual Studio Command Prompt 打开命令行窗口。cd命令进入poco根目录,F:\POCO\poco-1.6.1。输入命令:build_vs100回车。
此步骤,根据自己VS版本,选择对应的命令提示符窗口 


4.等待编译完成,约五分钟。
 
5.设置环境变量。POCO_HOME F:\POCO\poco-1.6.1 
6.添加Include目录。打开工程属性页,在“Configuration Properties -> C/C++ -> General -> Additional Include Directories”栏目中添加“$(POCO_HOME)\Foundation\include”,确认并应用该设置。
 
7.添加lib链接库。打开属性页,在“Configuration Properties -> Linker -> General -> Additional Library Directories”栏目中添加lib目录路径$(POCO_HOME)\lib。在“Configuration Properties -> Linker -> Input -> Additional Dependencies”中添加应用程序需要用到的lib文件。
 
8.更改输出路径,以便项目生成的应用程序能够调用DLL文件。打开工程属性,将“Configuration Properties -> General -> Output Directory”改为“$(POCO_HOME)\bin”;将“Configuration Properties -> Debugging -> Working Directory”改为“$(OutDir)”。

9.OK.

如果需要使用VS2015编译poco库,也使用同样的方式编译。VS2015输入命令为build_vs140


更加详细的编译说明可以查看readme文件

补充说明:

1.根据自己所需要模块,可以编辑文件components 适当删除不需要的模块

2.有些模块是需要依赖OpenSSL  、ODBC、MySQL Client,安装好这些更改buildwin.cmd文件的对应路径

3.如果需要编译X64的版本,那么VS命令提示符选择X64进入编译即可。


  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
(注:若需要下载帮助文档,请搜索poco-1.6.1-all-doc) 本资源介绍:Introduction The POCO C++ Libraries are a collection of open source C++ class libraries that simplify and accelerate the development of network-centric, portable applications in C++. The libraries integrate perfectly with the C++ Standard Library and fill many of the functional gaps left open by it. Their modular and efficient design and implementation makes the POCO C++ Libraries extremely well suited for embedded development, an area where the C++ programming language is becoming increasingly popular, due to its suitability for both low-level (device I/O, interrupt handlers, etc.) and high-level object-oriented development. Of course, POCO is also ready for enterprise-level challenges. POCO Libraries POCO consists of four core libraries, and a number of add-on libraries. The core libraries are Foundation, XML, Util and Net. Two of the add-on libraries are NetSSL, providing SSL support for the network classes in the Net library, and Data, a library for uniformly accessing different SQL databases. POCO aims to be for network-centric, cross-platform C++ software development what Apple's Cocoa is for Mac development, or Ruby on Rails is for Web development — a powerful, yet easy and fun to use platform to build your applications upon. POCO is built strictly using standard ANSI/ISO C++, including the standard library. The contributors attempt to find a good balance between using advanced C++ features and keeping the classes comprehensible and the code clean, consistent and easy to maintain.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值