[rabbitmq-discuss] [rabbitmq-c] linking libraries for cross compiling

Roberto Pagliari roberto at canary.is
Tue Jan 14 20:07:58 GMT 2014


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[2]: *** [librabbitmq/librabbitmq.so.1.1.1] Error 1
    make[1]: *** [librabbitmq/CMakeFiles/rabbitmq.dir/all] Error 2
    make: *** [all] Error 2

I tried to use LINK_LIBRARIES in the CMakeLists but didn't work...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140114/8ca136f1/attachment.html>


More information about the rabbitmq-discuss mailing list