aldebaran/qibuild

gtest/gtest.h: no such file or directory

Opened this issue · 2 comments

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
Thank you soooooo much!
Your suggestion fixes my problem , the project compiles successfully!