<pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">I had done the exact same thing and added the workaround to the Jenkins setup preamble. This is the verbose output of what actually gets called:</pre>

<pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px"><br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">

<br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">/usr/bin/c++    -pthread -O2 -g    -L/tmp/install_dir/stack_overlay/unique_identifier/unique_id/lib CMakeFiles/test_unique_id.dir/tests/test_unique_id.cpp.o  -o ../bin/test_unique_id -rdynamic -L/opt/ros/groovy/lib -lroscpp -lboost_signals-mt -lboost_filesystem-mt -lrosconsole -lroscpp_serialization -lxmlrpcpp -lrostime -lboost_date_time-mt -lboost_system-mt -lboost_thread-mt -lpthread -lcpp_common -l/usr/lib/libgtest.a -Wl,-rpath,/opt/ros/groovy/lib 
<br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">/usr/bin/ld: cannot find -l/usr/lib/libgtest.a</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">

<br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px"><br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">

So somewhere rosmake is using "-l/usr/lib/libgtest.a" instead of "-L /usr/lib -lgtest". Any suggestions from a rosmake guru?</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">

<br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">Wim</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">

<br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px"><br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">

<br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px"><br></pre><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 24, 2012 at 10:02 AM, Brian Gerkey <span dir="ltr"><<a href="mailto:gerkey@osrfoundation.org" target="_blank">gerkey@osrfoundation.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Nov 23, 2012 at 7:53 PM, Wim Meeussen <<a href="mailto:wim@hidof.com">wim@hidof.com</a>> wrote:<br>


> I tried one of the (ugly) workarounds from the comments above:<br>
><br>
> cd /usr/src/gtest<br>
> sudo cmake CMakeLists.txt<br>
> sudo make<br>
> sudo cp *.a /usr/lib<br>
><br>
> This creates a static library /usr/lib/libgtest.a, but linking fails:<br>
><br>
> Linking CXX executable ../bin/test_unique_id<br>
>   /usr/bin/ld: cannot find -l/usr/lib/libgtest.a<br>
<br>
</div>FWIW, I've added that workaround to the setup preamble of Jenkins<br>
builds and it worked fine.  I'm surprised that the linker can't find<br>
the lib in your case.  I would turn on verbose linker output to figure<br>
out what's going on there.<br>
<span class="HOEnZb"><font color="#888888"><br>
    brian.<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Wim Meeussen<br>CTO, hiDOF Inc.<br>650-529-4522<br><a href="http://hidof.com" target="_blank">http://hidof.com</a><br>
</div>