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

gtest/gtest.h: no such file or directory #129

Open
QAbot-zh opened this issue Jul 26, 2019 · 2 comments
Open

gtest/gtest.h: no such file or directory #129

QAbot-zh opened this issue Jul 26, 2019 · 2 comments

Comments

@QAbot-zh
Copy link

According to the web url , http://doc.aldebaran.com/qibuild/advanced/guide/how_to_write_a_library.html, I download a fooproject from the url:
http://doc.aldebaran.com/qibuild/_downloads/fooproject.zip.
But when I use qibuild to compile it, I get the error :

[ 85%] Building CXX object libfoo/test/CMakeFiles/test_foo.dir/test_foo.cpp.o
/home/xxx/worktree/fooproject/libfoo/test/test_foo.cpp:1:25: fatal error: gtest/gtest.h: No such file or directory
 #include <gtest/gtest.h>
                         ^
compilation terminated.
...

Could you tell me how I can solve it?
I try to apt install libgtest-dev, but the problem still exists.

@victorpaleologue
Copy link

victorpaleologue commented Jul 26, 2019 via email

@QAbot-zh
Copy link
Author

@victorpaleologue
Thank you soooooo much!
Your suggestion fixes my problem , the project compiles successfully!

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