Compi rabbitmq-c

480 views
Skip to first unread message

Lydia

unread,
Nov 4, 2015, 10:23:34 AM11/4/15
to rabbitmq-users
I am having tough time compiling the ampq library from https://github.com/alanxz/rabbitmq-c,, facing multiple issues.
Can you provide me a sequential set of steps to be followed to successfully compile RabbitMqC ?
After solving couple of issues the latest set of issue hit is as follows(when compiling in Visual studio 2008 R2):

         Error 7 fatal error C1189: #error :  "poll() or select() is needed to compile rabbitmq-c"  ....

Michael Klishin

unread,
Nov 4, 2015, 10:25:45 AM11/4/15
to rabbitm...@googlegroups.com, Lydia
On 4 November 2015 at 18:23:37, Lydia (lido...@gmail.com) wrote:
> Can you provide me a sequential set of steps to be followed to
> successfully compile RabbitMqC ?
> After solving couple of issues the latest set of issue hit is as
> follows(when compiling in Visual studio 2008 R2):
>
> Error 7 fatal error C1189: #error : "poll() or select() is needed
> to compile rabbitmq-c”

The error message suggests that librabbitmq-c depends on operating system
APIs only available on Linux, *BSD, and OS X. In other words, Windows may or may not be
a supported target. 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Alan Antonuk

unread,
Nov 4, 2015, 2:59:59 PM11/4/15
to rabbitm...@googlegroups.com
rabbitmq-c does work on Win32 (winsock2 provides select()).


If this still isn't working, could you describe what you're currently doing?

-Alan



--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send an email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lydia

unread,
Nov 5, 2015, 1:02:00 AM11/5/15
to rabbitmq-users
Thanks Alan.
I found that if I disable SSL then it works fine(I see the bin,lib and include directories created in E:\Lydia\2015\Project\Increment\).
Listing the steps I followed below.
 
  0. Download the ZIP file(from https://github.com/alanxz/rabbitmq-c.) and unzip it.
  1 cd  "E:\Lydia\2015\Project\" (to the directory where its unzipped)
  2 mkdir build
  3 cd build
  4 cmake .. -DENABLE_SSL_SUPPORT=False
  5 cmake --build .
  6 cmake -DCMAKE_INSTALL_PREFIX=E:\Lydia\2015\Project\Increment\ ..
  7 cmake --build . --target install
 
Looks like something messed up there.  Any suggestions on steps to install openSSL.

Alan Antonuk

unread,
Nov 5, 2015, 9:42:06 PM11/5/15
to rabbitm...@googlegroups.com
Try installing OpenSSL binaries from here: https://slproweb.com/products/Win32OpenSSL.html, note you'll need the non-lite version as the headers and link-libraries are required for building rabbitmq-c.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages