<div dir="ltr"><div>I tried to modify like this<br></div><div><br></div><div><div>cmake_push_check_state()</div><div>set(CMAKE_REQUIRED_LIBRARIES ${SOCKET_LIBRARIES})</div><div>if (WIN32)</div><div> check_symbol_exists(htonll Winsock2.h HAVE_HTONLL)</div>
<div>else (WIN32)</div><div> check_function_exists(htonll HAVE_HTONLL)</div><div>endif (WIN32)</div><div>cmake_pop_check_state()</div><div><br></div><div>check_library_exists(rt clock_gettime "time.h" CLOCK_GETTIME_NEEDS_LIBRT)</div>
<div>if (CLOCK_GETTIME_NEEDS_LIBRT)</div><div> set(LIBRT rt)</div><div>endif()</div><div><br></div><div><font color="#ff0000">SET(LINK_LIBRARIES path_to_ssl_folder/)</font></div></div><div><font color="#ff0000"><br></font></div>
<div><font color="#ff0000"><br></font></div><div class="gmail_extra"><br>but it is still pointing to x86 ssl lib...</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jan 14, 2014 at 3:59 PM, Alan Antonuk <span dir="ltr"><<a href="mailto:alan.antonuk@gmail.com" target="_blank">alan.antonuk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Make sure you're trying to link against the ARM version of libssl. You might need to look at the OPENSSL_LIBRARIES (or something like that) CMake variable and adjust it to point at the correct libssl.<div>
<br></div><div>-Alan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Tue, Jan 14, 2014 at 12:07 PM, Roberto Pagliari <span dir="ltr"><<a href="mailto:roberto@canary.is" target="_blank">roberto@canary.is</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>I'm building rabbitmq-c for ARM. I exported the library by running : </div>
<div><br></div><div>
export LD_LIBRARY_PATH=path_to_library_folder </div><div><br></div><div>but I'm still getting this error. Somehow, cmake does not find it. </div>
<div><br></div><div> $ cmake --build . --target install</div><div> Linking C shared library librabbitmq.so</div><div> /usr/lib/x86_64-linux-gnu/libssl.so: file not recognized: File format not recognized</div><div>
collect2: ld returned 1 exit status</div><div> make[2]: *** [librabbitmq/librabbitmq.so.1.1.1] Error 1</div><div> make[1]: *** [librabbitmq/CMakeFiles/rabbitmq.dir/all] Error 2</div><div> make: *** [all] Error 2</div>
<div><br></div><div>I tried to use LINK_LIBRARIES in the CMakeLists but didn't work...</div></div>
<br></div></div>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div></div>