[rabbitmq-discuss] [rabbitmq-c] linking libraries for cross compiling
alan.antonuk at gmail.com
Tue Jan 14 20:59:28 GMT 2014
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.
On Tue, Jan 14, 2014 at 12:07 PM, Roberto Pagliari <roberto at canary.is>wrote:
> I'm building rabbitmq-c for ARM. I exported the library by running :
> export LD_LIBRARY_PATH=path_to_library_folder
> but I'm still getting this error. Somehow, cmake does not find it.
> $ cmake --build . --target install
> Linking C shared library librabbitmq.so
> /usr/lib/x86_64-linux-gnu/libssl.so: file not recognized: File format
> not recognized
> collect2: ld returned 1 exit status
> make: *** [librabbitmq/librabbitmq.so.1.1.1] Error 1
> make: *** [librabbitmq/CMakeFiles/rabbitmq.dir/all] Error 2
> make: *** [all] Error 2
> I tried to use LINK_LIBRARIES in the CMakeLists but didn't work...
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss