You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo apt-get install librabbitmq-dev
git clone https://github.com/alanxz/SimpleAmqpClient.git
cd SimpleAmqpClient
mkdir simpleamqpclient-build
cd simpleamqpclient-build
cmake ..
cmake --build .
then in my CMakeLists.txt file I added: target_link_libraries(my_project PRIVATE SimpleAmqpClient)
then ran cmake .. which ran ok.
added #include <SimpleAmqpClient/SimpleAmqpClient.h> to my cpp file and tried to build with cmake --build .. Got this error:
fatal error: SimpleAmqpClient/SimpleAmqpClient.h: No such file or directory
15 | #include <SimpleAmqpClient/SimpleAmqpClient.h>
The text was updated successfully, but these errors were encountered:
you must tell the compiler the path of the Dynamic library by invoking the command export LD_LIBRARY_PATH=/path/to/library
usually the path is /usr/local/lib but check what the right path on you system
I ran this on Ubuntu:
then in my CMakeLists.txt file I added:
target_link_libraries(my_project PRIVATE SimpleAmqpClient)
then ran
cmake ..
which ran ok.added
#include <SimpleAmqpClient/SimpleAmqpClient.h>
to my cpp file and tried to build withcmake --build .
. Got this error:The text was updated successfully, but these errors were encountered: