博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C++使用RabbitMQ类库做客户端与RabbitMQ Server通讯,生成C++可调用的rabbimq.*.dll的过程...
阅读量:5351 次
发布时间:2019-06-15

本文共 1391 字,大约阅读时间需要 4 分钟。

Step:

  1. download the latest rabbitmq-c via: 
  2. follow the document, download the cmake tool, make sure the right version of cmake. 
  3. install the C compiler, if developed by VS2012, so set MSVC110=VS2012
  4. convert rabbitmq-c to C++ project via cmake command
    1. create "build" folder to rabbitmq-c root folder, then new bat file with below comman:
      REM -- create and put into /rabbitmq-c-0.9.0/build folder, then run the batREM -- -DENABLE_SSL_SUPPORT=OFF disable SSL feature, otherwise will occur ssl errorREM -- -G "Visual Studio 11 2012" , set the build environmentcmake .. -DENABLE_SSL_SUPPORT=OFF -G "Visual Studio 11 2012"pause

       

  5. open the C++ project generate in step 4, then build rabbitmq project with Release version
  6. rename the rabbitmq.*.dll to rabbitmq.1.dll, then replace to the target folder

 

Troubleshooting:

  1. "Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found suitable version "0.9.8h", minimum required is "0.9.8")"
    1. Solution1: add OPENSSL_ROOT_DIR command to bat file: -DOPENSSL_ROOT_DIR="C:\Users\zhengs\Downloads\openssl-0.9.8k_WIN32" https://stackoverflow.com/questions/16248775/cmake-not-able-to-find-openssl-library
    2. Solution2: Disable SSL suppport, add  "-DENABLE_SSL_SUPPORT=OFF" to command. https://github.com/conetix/librabbitmq

转载于:https://www.cnblogs.com/zhengshuangliang/p/10039337.html

你可能感兴趣的文章
复习一下js的prototype 属性
查看>>
爬虫-爬虫防屏蔽手段之代理服务器
查看>>
错误与异常
查看>>
MySql 之 FIND_IN_SET 和IN
查看>>
Http 数据操作
查看>>
java的安装环境配置详细步骤
查看>>
关于ibatis中mysql的@变量问题作用域、污染问题
查看>>
(转)本地ShareObject
查看>>
IO综合练习--文件切割和文件合并
查看>>
图说C++对象模型:对象内存布局详解
查看>>
asp.net学习之DataList控件
查看>>
.Net之路(十)控件篇
查看>>
Android学习笔记(一)——Activity简介 和 View
查看>>
PHP基础知识小测验
查看>>
免费资源下载:两套超棒的UI界面设计素材集
查看>>
仿IOS日期选择
查看>>
cnblogs第一天
查看>>
java线程的一些基础小知识
查看>>
NAT444技术简介
查看>>
textview 显示html方法解析
查看>>