[rabbitmq-discuss] building SimpleAmqpClient

Eric J. Holtman eric at holtmans.com
Fri Mar 2 12:55:34 GMT 2012


On 3/1/2012 10:59 PM, Alan Antonuk wrote:

> 
> *For finding Rabbitmq-c* I wrote a FindRabbitmqc.cmake (in the Modules
> directory).
> 
> It searches for the amqp.h file in:
> ${Rabbitmqc_DIR}/include
> 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:
> ${Rabbitmq_DIR}/lib
> 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.
> 


I tried that:

C:\rabbit-c\simpleamqpclient-build>dir %Rabbitmqc_INCLUDE_DIR%\amqp.h
 Volume in drive C has no label.
 Volume Serial Number is 60C2-C1FC

 Directory of c:\rabbit-c\rabbitmq-c\librabbitmq

02/15/2012  03:00 PM            14,097 amqp.h
               1 File(s)         14,097 bytes
               0 Dir(s)  36,886,913,024 bytes free

so, amqp.h is in the right place.

C:\rabbit-c\simpleamqpclient-build>dir %Rabbitmqc_LIBRARY%\rabbitmq.*
 Volume in drive C has no label.
 Volume Serial Number is 60C2-C1FC

 Directory of c:\rabbit-c\rabbitmq-c-build\librabbitmq\Debug

02/22/2012  01:15 PM           108,544 rabbitmq.dll
02/15/2012  05:03 PM             9,383 rabbitmq.exp
02/22/2012  01:15 PM           265,216 rabbitmq.idb
02/22/2012  01:15 PM           386,320 rabbitmq.ilk
02/15/2012  05:03 PM            16,132 rabbitmq.lib
02/22/2012  01:15 PM           815,104 rabbitmq.pdb
               6 File(s)      1,600,699 bytes
               0 Dir(s)  36,886,913,024 bytes free

.dll/.lib in the right place:


C:\rabbit-c\simpleamqpclient-build>cmake ..\SimpleAmqpClient
-- Building for: Visual Studio 9 2008
-- Check for working C compiler using: Visual Studio 9 2008
-- Check for working C compiler using: Visual Studio 9 2008 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 9 2008
-- Check for working CXX compiler using: Visual Studio 9 2008 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.47.0
-- Found the following Boost libraries:
--   chrono
--   system
Rabbitmqc_INCLUDE_DIR=Rabbitmqc_INCLUDE_DIR-NOTFOUND
Rabbitmqc_LIBRARY=Rabbitmqc_LIBRARY-NOTFOUND
CMake Error at Modules/LibFindMacros.cmake:74 (message):
  Required library Rabbitmqc NOT FOUND.

  Install the library (dev version) and try again.  If the library is
already
  installed, use ccmake to set the missing variables manually.
Call Stack (most recent call first):
  Modules/FindRabbitmqc.cmake:19 (LIBFIND_PROCESS)
  CMakeLists.txt:12 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!






Still fails.

I'm wondering if this is even worth the effort.  (Not your wrapper,
just the cmake process).

Once I've gotten the C library itself to build (using python et al
to build the framing files), I'm tempted to just extract the .c and
.h files I need into a new Visual Studio project, and go from there.

I understand the concept of cmake (trying to get a platform independent
delivery base), but at this point, for a library with only really
10 .c and .h files, I've got at least 4 directories, the .vcproj files
have tons of -I directives, and......


Anyway, after seeing the trace above, if you have any clues, I'd
appreciate it.



More information about the rabbitmq-discuss mailing list