Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: SimpleAmqpClient/SimpleAmqpClient.h: No such file or directory #319

Open
ronytigo opened this issue May 23, 2023 · 1 comment

Comments

@ronytigo
Copy link

ronytigo commented May 23, 2023

I ran this on Ubuntu:

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>
@Aziz-repo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants