On Fri, Jul 9, 2021 at 12:39 PM rahul.sin...@morganstanley.com
<rahul.sin...@morganstanley.com> wrote:
> Building qpid-proton is fine without Ruby. However, when I try to build 
> qpid-cpp-1.39.0, cmake gives below error -
>
> CMake Error at src/CMakeLists.txt:87 (message):
>   Can't locate ruby, needed to generate amqp 0-10 framing code.
>
> Though I need it for AMQP 1.0.
> I use the same install folder as I did for qpid proton. Also, I exported the 
> PKG_CONFIG_PATH.
>
> Once I add Ruby module, then it works happily and later on detects that AMQP 
> 1.0 is enabled.

Unfortunately building the 0-10 code is not optional at present.
However if the generated code is there then it doesn't need to be
regenerated. (You would still get an error, but that could be disabled
with the attached patch). So if you had to build somewhere that didn't
have ruby you could bundle up and reuse source generated from
somewhere you do have ruby. Or if you want to remove it after
generation, you could do that also.
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index fe6309010..de8097b63 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -83,9 +83,9 @@ mark_as_advanced(QPID_AMQP_SPEC)
 if (NOT QPID_AMQP_SPEC)
   message(FATAL_ERROR "Can't find amqp 0-10 spec for framing code generation")
 endif (NOT QPID_AMQP_SPEC)
-if (NOT RUBY_EXECUTABLE)
-  message(FATAL_ERROR "Can't locate ruby, needed to generate amqp 0-10 framing code.")
-endif (NOT RUBY_EXECUTABLE)
+#if (NOT RUBY_EXECUTABLE)
+#  message(FATAL_ERROR "Can't locate ruby, needed to generate amqp 0-10 framing code.")
+#endif (NOT RUBY_EXECUTABLE)
 
 set(specs ${QPID_AMQP_SPEC})
 set(regen_amqp OFF)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to