poco下载地址:https://pocoproject.org/releases/poco-1.7.9/

版本环境:

Qt 版本 5.5.1

poco-1.9.0-all

准备工作:

1. 下载MSYS
使用mingw-get-setup.exe,安装MYSYS,只选择安装msys-base(mingw使用Qt中自带)

2. 配置
打开C:\MinGW\msys\1.0\msys.bat,在开头添加

set PATH=D:\Qt\Qt5.5.1\Tools\mingw492_32\bin:$PATH

3. 编译
1、进入poco的源码目录中,执行配置命令
./configure --minimal --config=MinGW --no-tests --no-samples   --shared --static --cflags=-std=c99

2、make

编译完成后的库在poco中的lib

输入./configure --help查看参数命令

usage: configure {options}
Configure the POCO C++ Libraries.Options:--helpDisplay this help screen.--config=<config_name>Use the given build configuration.Available configurations are:AIX                    Darwin64-clang         SH-Linux
ARM-Linux              Darwin64-clang-libc++  SSV-LINUX
Alpine                 DigiEL                 SmartOS-gcc
Android                ELDK                   SunOS
Angstrom               FreeBSD                SunOS-GCC
AppleTV                FreeBSD-Linux-compat   SunOS-SunForte
AppleTVSimulator       GCCEMBEDLINUX          SunOS-SunStudio
BeagleBoard            HP-UX                  SunOS-SunStudio11
CEGCCARM               Linux                  SunOS-stdcxx-x86_64
CYGWIN                 Linux-SolarisStudio    WatchOS
CygLinux               Linux-clang            WatchSimulator
Darwin                 MinGW                  Yocto
Darwin-clang           MinGW-CrossEnv         iPhone
Darwin-clang-libc++    NIOS2-Linux            iPhone-clang
Darwin32               OSF1                   iPhone-clang-libc++
Darwin32-clang         OpenPandora            iPhoneSimulator
Darwin32-clang-libc++  PPC-Linux              iPhoneSimulator-clang
Darwin64               QNX                    iPhoneSimulator-clang-libc++--prefix=<install_prefix>Use the given install directory for make install.Default is /usr/local.--no-prefixDo not use /usr/local as default install directory and do notdefine POCO_PREFIX.--stdcxx-base=<apache_stdcxx_install_prefix>If (and only if) the /e/3rd/poco-1.9.0-all/poco-1.9.0-all/build/config selected with --configuses the Apache stdcxx library, then apache_stdcxx_install_prefixspecifies the base directory where stdcxx is installed.--no-testsDo not build testsuites.--no-samplesDo not build samples.--minimalBuild only Foundation, XML, JSON, Util and Net.--typical (default)Build only Foundation, XML, JSON, Util, Net, Crypto, NetSSL, Data/SQLite and Zip.--everythingBuild everything.--no-wstringCompile with -DPOCO_NO_WSTRING.Useful if your C++ compiler does not support std::wstring(such as uClibc-based systems).--no-fpenvironmentCompile with -DPOCO_NO_FPENVIRONMENT.Useful if your C++ compiler has incomplete floating-point support(such as uClibc-based systems).--no-sharedmemoryCompile with -DPOCO_NO_SHAREDMEMORY.For systems that don't support shared memory API's,like uClibc-based Linux systems.--no-sharedlibsCompile with -DPOCO_NO_SHAREDLIBS.For systems that don't support shared library loading.--no-ipv6Compile with -DPOCO_NET_NO_IPv6.For systems that don't support IPv6.--sqlite-fts=<path>Compile with -DPOCO_DATA_SQLITE_FTS.Compile SQLite with Full Text Search support.--sqlite-thread-safe=<value>Compile with -DSQLITE_THREADSAFE=<value>.Valid values are:- 0 single-thread, no thread safety- 1 serial access, highest thread safety- 2 multi-threaded, without session sharing support--omit=<component>{,<component>}Do not build the specified component(s).Example: --omit=Data/MySQL,Data/ODBC,Zip--include-path=<path>Add search path for header files.--library-path=<path>Add search path for library files.--odbc-lib=<path>Specify the directory where ODBC library is located.--odbc-include=<path>Specify the directory where ODBC header files are located.--cflags=<flags>Pass additional flags to compiler.Example: --cflags=-wall--poquitoOmit a few features for smaller codesize when linkingstatically for embedded targets.--unbundledUse system-provided zlib, pcre, expat and sqlite instead ofbundled ones.--staticBuild static libraries. Overrides default mode, whichdepends upon target. Can be specified togetherwith --shared to build both.--sharedBuild shared libraries. Overrides default mode, whichdepends upon target. Can be specified togetherwith --static to build both.

相关参考:

参考1
参考2

qt 编译poco库相关推荐

  1. Ubuntu16.04编译poco库

    Ubuntu16.04编译poco库 概述 下载 编译 解压 编译 完整编译 部分编译 编译 安装 参考文章 概述 Poco C++库是一系列C++类库,类似Java类库,.Net框架,Apple的C ...

  2. QT编译boost库

    编译 windows 使用qtcreater编译boost 库命令:     bjam install stage --toolset=gcc --stagedir="./lib" ...

  3. Qt 编译动态库只生成dll没有lib文件

    背景描述: 库A开发最初是以静态库形式存在,随着时间推移项目功能逐渐增多,涉及库A的内容也增多.组内成员开发各有习惯,QtCreator和VS2015未作限制. 现象: VS2015编辑器下正常编译和 ...

  4. C++ Poco库的PC编译和交叉编译

    C++ Poco库的PC编译和交叉编译 flyfish 文章目录 C++ Poco库的PC编译和交叉编译 环境 源码下载地址 PC编译 编译依次执行 CMakeLists.txt文件配置 代码实现 P ...

  5. POCO库的下载和编译

    由于最近工作中项目的需求,项目需要实现Windows平台和Linux平台HTTP服务,最终选择QtCreator开发平台 + POCO来实现.所以就设计到POCO库的下载,编译. 1. POCO库的下 ...

  6. Qt,编译libcurl并且导入到库

    在MInGW环境下编译和使用libcurl静态库 libcurl 7.21以后的版本在Windows下的编译比较简单,自带了MinGW和VC环境的Makefile文件,首先去Curl官网下载源代码:h ...

  7. win10环境下VTK7.1的编译和Qt调用VTK的详细教程二(VS2013编译支持Qt的VTK库)

    本文主要用于编译支持Qt的VTK库,重点在于编译VTK库,供Qt调用. 第1步:新建一个文件夹:vtkDir 第2步:在该文件夹下新建两个文件夹vtk_bin.vtk_src 第3步:将下载好的VTK ...

  8. Qt下使用vs编译的库文件

    Qt下调用VS制作的静态库    1.制作静态库的编译器和Qt版本的编译器是一样     如果是使用Visual Studio 制作的静态库,比如使用Visual Studio 2013制作的,而要使 ...

  9. linux编译poco静态库,iOS——为Xcode编译POCO C++静态库

    一.POCO C++ library简介 POCO C++ library是一个C++编写的跨平台库,主要实现网络连接.数据库管理以及服务器,适用于跨平台.嵌入式. 二.为Xcode编译POCO C+ ...

最新文章

  1. lepus mysql 复制监控_sql_mode=ONLY_FULL_GROUP_BY 导致lepus监控mysql5.7报错
  2. linux查找技巧: find grep xargs linux系统信息查看大全
  3. python3.6安装pygame-python3.6 安装pygame
  4. SqlService 数据操作
  5. java 主题爬虫_主题爬虫 - 长颈鹿Giraffe - 博客园
  6. 编写MyLayer,2 锚点,3 精灵的创建,4 zorder
  7. oracle flex cluster,12c flex cluster小记(3)
  8. mysql 递归查找父节点_MYSQL递归查询所有父节点
  9. html中表格布局还是div布局,Table布局 VS Div+CSS布局,选哪个?
  10. 编写函数实现随机产生指定范围的整数的功能
  11. 典型传动机构的动力学模型
  12. c语言二维数组每行最小值,编写一个函数,用于计算具有n行和m列的二维数组中指定列的平均值以及数组各行的和的最小值。...
  13. 链表简介(二)——在单向链表中插入节点
  14. inster into java_SELECT INTO 和 INSERT INTO SELECT 两种表复制语句
  15. PHP报错 Module ‘openssl‘ already loaded in Unknown on line 0
  16. 正则全攻略使用手册,你确定不进来看看吗
  17. P2P终结者 操作用法(如何限速)
  18. 【3分钟带你学】Ajax
  19. 代谢组学分析平台都有什么仪器?
  20. 数学建模学习1.22——多元回归分析

热门文章

  1. 【资料】社交媒体——从社交到战场
  2. ​力扣解法汇总1447-最简分数
  3. 计算机小发明,第六届科技创新小发明设计大赛
  4. php中合并数组的函数是,PHP合并数组函数array_merge用法分析
  5. 思维导图提高阅读效率简单的方法是什么?分享高效阅读思维导图模板及绘制技巧
  6. [windows][操作系统]复制文件夹到桌面经常到跑左上角导致桌面图标位置错乱
  7. [驱动] HT1621M
  8. 【高并发】高并发秒杀系统架构解密,不是所有的秒杀都是秒杀!
  9. 前端 正则校验 手机号格式(电话和座机)
  10. COSONFT,全面赋能助力全球Web3“航海家”开辟“新航道”