ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to install gtest

asked 2013-12-31 05:53:47 -0600

astrokenny gravatar image

updated 2013-12-31 06:02:56 -0600

According to the ros gtest wiki page (http://wiki.ros.org/gtest):

In ROS 1.0 (Box Turtle) and 1.2 (C Turtle), gtest is included as a ROS package. In later releases of ROS, it has been converted to a rosdep.

However, when I run the command:

$ rosdep install gtest

I get:

ERROR: Rosdep cannot find all required resources to answer your query
Missing resource gtest

The same thing happens if I run the command as root and with I all the variants I can think of (including g-test, googletest, and google-test). So how does one install gtest?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-12-31 06:26:14 -0600

tfoote gravatar image

rosdep takes ROS packages as arguments and installs their dependencies.

If you want to install gtest on Ubuntu:

sudo apt-get install libgtest-dev

I got the above native package name by using

rosdep resolve gtest

If you have a package, foo_package, with a dependency on gtest you can say:

rosdep install foo_package
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-12-31 05:53:47 -0600

Seen: 2,823 times

Last updated: Dec 31 '13