[rabbitmq-discuss] building SimpleAmqpClient
alan.antonuk at gmail.com
Fri Mar 2 04:59:00 GMT 2012
I use CMake's FindBoost.cmake module to find the boost libraries on the
system. You can get a detailed description of all of the relavent
variables you can set using the following command:
$ cmake --help-module FindBoost
Variables that you'll want to consider setting:
Boost_ADDITIONAL_VERSIONS - to whatever version of boost you have installed.
Boost_USE_STATIC_LIBS - if you built boost statically (it defaults to
BOOST_DIR - the path to wherever you put your built boost library, if it
isn't some place the compiler will find itself (LIB and LIBDIR variables
You can also set Boost_DEBUG and Boost_DETAILED_FAILURE_MSG variables to
see how cmake is failing to find boost.
*For finding Rabbitmq-c* I wrote a FindRabbitmqc.cmake (in the Modules
It searches for the amqp.h file in:
Then your system paths
If it doesn't pick it up automatically you set Rabbitmqc_INCLUDE_DIR to the
directory containing the amqp.h file by hand.
It searches for the rabbitmq library (librabbitmq.a/librabbitmq.so on *nix
rabbitmq.lib/.dll on windows) in:
Then your system include paths
If it doesn't pick it up automatically, you can set Rabbitmqc_LIBRARY to
the filename of the library by hand.
Hope that helps.
On Thu, Mar 1, 2012 at 1:31 PM, Eric J. Holtman <eric at holtmans.com> wrote:
> On 3/1/2012 10:59 AM, Eric J. Holtman wrote:
> > I cannot get this to build. I'm trying to run it under
> > windows.
> > cmake fails with:
> OK, fixed that (not finding right boost) by clearing
> out the build directory and re-running cmake.
> Now I can't figure out the right incantation for
> finding the rabbitqmc libraries.
> What am I supposed to set Rabbitmqc_INCLUDE_DIR and
> Rabbitmqc_LIBRARY to?
> I've tried all sorts of different things, I can't get
> cmake to find my compiled/installed version.
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss