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. The ugly hack is not portable and the decision Ubuntu/Debian made was the right one (cf http://code.google.com/p/googletest/wiki/FAQ#Why_is_it_not_recommended_to_install_a_pre-compiled_copy_of_Goog). They just need to update their CMake :) On Fri, Nov 23, 2012 at 7:53 PM, Wim Meeussen wrote: > 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 wrote: > >> Please have a look at : >> https://launchpad.net/ubuntu/+source/gtest/+changelog >> (especially the change for 1.6.0-1ubuntu2) >> This is a known issue on Ubuntu: >> https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/969891 >> Catkin solves this problem as follows: >> https://github.com/ros/catkin/blob/master/cmake/test/gtest.cmake >> >> On Fri, Nov 23, 2012 at 5:22 PM, Wim Meeussen wrote: >> >>> >>>> The libgtest-dev package did get installed. Here is the full console >>>> output: >>>> >>>> >>>> http://build.willowgarage.com/job/prerelease_groovy_unique_identifier_precise_amd64/1/console >>>> >>>> >>> >>> 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 >>> >>> >>> >>> Wim Meeussen >>> CTO, hiDOF Inc. >>> 650-529-4522 >>> http://hidof.com >>> >>> _______________________________________________ >>> Ros-release mailing list >>> Ros-release@code.ros.org >>> https://code.ros.org/mailman/listinfo/ros-release >>> >>> >> > > > -- > Wim Meeussen > CTO, hiDOF Inc. > 650-529-4522 > http://hidof.com >