From 8554733a88a19b19637be4b03b0e570e6dc75be9 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Mon, 16 Jul 2012 23:12:22 -0400 Subject: Document public API --- README.md | 83 +++++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 51 insertions(+), 32 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 26d61a3..349e2ce 100644 --- a/README.md +++ b/README.md @@ -4,44 +4,54 @@ ## Introduction -This is a C-language AMQP client library for use with AMQP servers -speaking protocol versions 0-9-1. +This is a C-language AMQP client library for use with v2.0+ of the +[RabbitMQ](http://www.rabbitmq.com/) broker. - - - - - Announcements regarding the library are periodically made on the -RabbitMQ mailing list and on the RabbitMQ blog. +rabbitmq-discuss mailing list: - - - - -API Documentation (rather incomplete at this point) can be found: -- ## Latest Stable Version -The latest stable version of rabbitmq-c is v0.3.0 and can be downloaded from: -https://github.com/alanxz/rabbitmq-c/archive/rabbitmq-c-v0.3.0.zip +The latest stable version of rabbitmq-c is v0.4.0. A complete list of changes +can be found in the [Change Log](ChangeLog.md) + +The v0.4.0 source tarball can be downloaded from: + -## Building and installing using CMake +API documentation for v0.4.0 can viewed here: + -The rabbitmq-c library is built using CMake v2.6+ (http://www.cmake.org) on all -platforms. +## Getting started -The library itself requires no external dependancies. +### Building and installing -*OPTIONALLY*: A set of command line tools used to interact with the broker are -included and require the Popt library (http://freecode.com/projects/popt). -A matching set of man pages have been written in DocBook format and need -the XmlTo (https://fedorahosted.org/xmlto/) utility to function correctly. +#### Prereqs: +- [CMake v2.6 or better](http://www.cmake.org/) +- A C compiler (GCC 4.4+, clang, and MSVC are test. Other compilers may also + work) +- *Optionally* [OpenSSL](http://www.openssl.org/) v0.9.8+ to enable support for + connecting to RabbitMQ over SSL/TLS +- *Optionally* [POpt](http://freecode.com/projects/popt) to build some handy + command-line tools. +- *Optionally* [XmlTo](https://fedorahosted.org/xmlto/) to build man pages for + the handy command-line tools +- *Optionally* [Doxygen](http://www.stack.nl/~dimitri/doxygen/) to build + developer API documentation. -On most systems the commands to build rabbitmq-c are: +After downloading and extracting the source from a tarball to a directory. +([see above][Latest Stable Version]), the commands to build rabbitmq-c on most +systems are: mkdir build && cd build cmake .. - cmake --build . + cmake --build [--config Release] . + +The --config Release flag should be used in multi-configuration generators e.g., +Visual Studio or XCode. It is also possible to point the CMake GUI tool at the CMakeLists.txt in the root of the source tree and generate build projects or IDE workspace @@ -49,26 +59,35 @@ the source tree and generate build projects or IDE workspace Installing the library and optionally specifying a prefix can be done with: cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. - cmake --build . --target install + cmake --build . [--config Release] --target install More information on CMake can be found on its FAQ (http://www.cmake.org/Wiki/CMake_FAQ) Other interesting flags that can be passed to CMake: -* `BUILD_EXAMPLES` - builds the example code -* `BUILD_TOOLS` builds some command line tools for interacting with the broker -* `BUILD_TOOLS_DOCS` is enabled and XmlTo is found -* `BUILD_SHARED_LIBS` - build rabbitmq-c as a shared library -* `BUILD_STATIC_LIBS` - build rabbitmq-c as a static library -## Building and installing using autotools +* `BUILD_EXAMPLES=ON/OFF` toggles building the examples. ON by default. +* `BUILD_SHARED_LIBS=ON/OFF` toggles building rabbitmq-c as a shared library. + ON by default. +* `BUILD_STATIC_LIBS=ON/OFF` toggles building rabbitmq-c as a static library. + OFF by default. +* `BUILD_TESTS=ON/OFF` toggles building test code. ON by default. +* `BUILD_TOOLS=ON/OFF` toggles building the command line tools. By default + this is ON if the build system can find the POpt header and library. +* `BUILD_TOOLS_DOCS=ON/OFF` toggles building the man pages for the command line + tools. By default this is ON if BUILD_TOOLS is ON and the build system can + find the XmlTo utility. +* `ENABLE_SSL_SUPPORT=ON/OFF` toggles building rabbitmq-c with SSL support. By + default this is ON if the OpenSSL headers and library can be found. +* `ENABLE_THREAD_SAFETY=ON/OFF` toggles OpenSSL thread-safety. By default this + is ON +* `BUILD_API_DOCS=ON/OFF` - toggles building the Doxygen API documentation, by + default this is OFF + +#### autotools For legacy purposes, a GNU autotools based build system is also maintained. The required utilities you need are autoconf v2.59+, automake v1.9+, libtool v2.2+, and pkg-config. -From a fresh tarball you will need to run reconf: - - autoreconf -i - Then the standard autotools build procedure will build rabbitmq-c: ./configure -- cgit v1.2.1 From 5dc23cc52a147d3a9db3fced2a3ab5019fb1c0c3 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Tue, 13 Aug 2013 16:59:53 -0700 Subject: Updating version numbers for release of v0.4.0 --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 349e2ce..16eceac 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,15 @@ rabbitmq-discuss mailing list: ## Latest Stable Version -The latest stable version of rabbitmq-c is v0.4.0. A complete list of changes -can be found in the [Change Log](ChangeLog.md) +The latest stable release of [rabbitmq-c is v0.4.0](https://github.com/alanxz/rabbitmq-c/releases/tag/v0.4.0). +A complete list of changes can be found in the [Change Log](ChangeLog.md) The v0.4.0 source tarball can be downloaded from: - -API documentation for v0.4.0 can viewed here: + + +API documentation for v0.4.0 can viewed from: + ## Getting started -- cgit v1.2.1 From eca2999c6d2cff644847b5fee9f9ec0c22702b98 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Sun, 25 Aug 2013 20:42:28 -0700 Subject: Prep for v0.4.1 release --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 16eceac..faf1b62 100644 --- a/README.md +++ b/README.md @@ -16,14 +16,14 @@ rabbitmq-discuss mailing list: ## Latest Stable Version -The latest stable release of [rabbitmq-c is v0.4.0](https://github.com/alanxz/rabbitmq-c/releases/tag/v0.4.0). +The latest stable release of [rabbitmq-c is v0.4.1](https://github.com/alanxz/rabbitmq-c/releases/tag/v0.4.1). A complete list of changes can be found in the [Change Log](ChangeLog.md) -The v0.4.0 source tarball can be downloaded from: +The v0.4.1 source tarball can be downloaded from: - + -API documentation for v0.4.0 can viewed from: +API documentation for v0.4.0+ can viewed from: -- cgit v1.2.1 From fc167b5ed0ccda0d1623cd9abf951c03f43a4a28 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Tue, 14 Jan 2014 20:57:17 -0800 Subject: Update README.md Include more completely instructions on how to build with autotools. --- README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'README.md') diff --git a/README.md b/README.md index faf1b62..c5d7700 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ utilities you need are autoconf v2.59+, automake v1.9+, libtool v2.2+, and pkg-c Then the standard autotools build procedure will build rabbitmq-c: + autoreconf -i ./configure make make install -- cgit v1.2.1 From 2ee29e52766b79902a1af62b7fcca86833cfd48e Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Wed, 29 Jan 2014 22:10:23 -0800 Subject: Preparation for v0.5.0 release --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c5d7700..53f1074 100644 --- a/README.md +++ b/README.md @@ -16,16 +16,16 @@ rabbitmq-discuss mailing list: ## Latest Stable Version -The latest stable release of [rabbitmq-c is v0.4.1](https://github.com/alanxz/rabbitmq-c/releases/tag/v0.4.1). +The latest stable release of [rabbitmq-c is v0.5.0](https://github.com/alanxz/rabbitmq-c/releases/tag/v0.5.0). A complete list of changes can be found in the [Change Log](ChangeLog.md) -The v0.4.1 source tarball can be downloaded from: +The v0.5.0 source tarball can be downloaded from: - + -API documentation for v0.4.0+ can viewed from: +API documentation for v0.5.0+ can viewed from: - + ## Getting started -- cgit v1.2.1