Let's wait for core people to answer but, as the person who fixed it for catkin, I believe there is no other way but have rosmake add a target for gtest (that will then be built before bulding the tests). it seems easy, I just don't know the internals of rosmake.
I tried one of the (ugly) workarounds from the comments above:cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
sudo cp *.a /usr/lib
This creates a static library /usr/lib/libgtest.a, but linking fails:
Linking CXX executable ../bin/test_unique_id /usr/bin/ld: cannot find -l/usr/lib/libgtest.a--On Fri, Nov 23, 2012 at 5:35 PM, Vincent Rabaud <vrabaud@willowgarage.com> wrote:
Please have a look at :(especially the change for 1.6.0-1ubuntu2)This is a known issue on Ubuntu:Catkin solves this problem as follows:https://github.com/ros/catkin/blob/master/cmake/test/gtest.cmakeOn Fri, Nov 23, 2012 at 5:22 PM, Wim Meeussen <wim@hidof.com> wrote:
The libgtest-dev package did get installed. Here is the full console output:There's more going on. I added the libgtest-dev package, but the library is still not found. Looking at the Ubuntu package, the library is not part of libgtest-dev <http://packages.ubuntu.com/precise/amd64/libgtest-dev/filelist>. The only Ubuntu package containing the libgtest.so is ugene <http://packages.ubuntu.com/search?searchon=contents&keywords=libgtest.so&mode=exactfilename&suite=precise&arch=any>, which is not really what we're looking for. So that leaves the question, where did we get install libgtest.so from in the past?Wim_______________________________________________
Ros-release mailing list
Ros-release@code.ros.org
https://code.ros.org/mailman/listinfo/ros-release