<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>