Skip to content

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

@QAbot-zh

Description

@QAbot-zh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions