Robotics StackExchange | Archived questions

GTest not found

Hi!

I am trying to get my project to work with GTest. It is with ROS fuerte. I added the following line to the CMakeLists:

rosbuild_add_gtest(test/model test/model.cpp)

While building the project i get the error:

[rosbuild] Including /opt/ros/fuerte/share/roslisp/rosbuild/roslisp.cmake
CMake Warning at /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:595 (message):
  GTest not found; C++ tests will fail to build.
Call Stack (most recent call first):
  /opt/ros/fuerte/share/ros/core/rosbuild/private.cmake:124 (rosbuild_add_gtest_build_flags)
  /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:625 (_rosbuild_add_gtest)
  CMakeLists.txt:34 (rosbuild_add_gtest)

This not only happens when i build my own package but also when i try to build a fuerte package.. I have Ubuntu Version 10.04 and libgtest is installed in /usr/lib and /usr/include.

Do you have any advice?

Thanks!

Jonas

Asked by Jonas Koenemann on 2012-06-11 06:23:55 UTC

Comments

Answers

Did you install libgtest-dev?

sudo apt-get install libgtest-dev

Asked by Lorenz on 2012-06-11 08:41:54 UTC

Comments

yes: ~$ dpkg -s libgtest-dev Package: libgtest-dev Status: install ok installed

Asked by Jonas Koenemann on 2012-06-11 15:05:43 UTC