<div dir="ltr">We should force gtest to be built non-shared to avoid any issues.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 17, 2019 at 1:26 PM Jim Klassen <<a href="mailto:klassen.js@gmail.com">klassen.js@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
I found the difference. <br>
<br>
The way to reproduce it is to call cmake with
"-DBUILD_SHARED_LIBS=ON -DWITH_TESTS=ON". Without
BUILD_SHARED_LIBS, gtest only builds a '.a' file under the lib
directory in the build directory which is fine. With
BUILD_SHARED_LIBS=ON, gtest also tries to build a .so in /src which
fails due to permissions. <br>
<br>
As PDAL builds shared libs by default anyway, the BUILD_SHARED_LIBS
option isn't necessary and can just be dropped from my build script.<br>
<br>
Thanks for the help and encouragement to sort this out.<br>
<br>
Jim<br>
<br>
<div class="gmail-m_5704208333824836718moz-cite-prefix">On 9/16/19 10:26 AM, Andrew Bell wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">I'll just suggest again that there's something
special about this environment, because this is not an issue on
other similar systems.</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Sep 16, 2019, 17:23
Howard Butler <<a href="mailto:howard@hobu.co" target="_blank">howard@hobu.co</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Sep 16, 2019, at 10:02 AM, Jim Klassen <<a href="mailto:klassen.js@gmail.com" rel="noreferrer" target="_blank">klassen.js@gmail.com</a>>
wrote:<br>
> After multiple attempts at rummaging around, I think the
culprit is in 'cmake/gtest.cmake'. I suspect that
${gtest_BINARY_DIR} is unset. Based on comments in
'vendor/gtest/CMakeLists.txt' it appears that it may also use
this variable internally.<br>
<br>
Interesting. We're definitely doing non-sudo builds on other
platforms. I wonder how gtest_BINARY_DIR is getting properly
set in those cases.<br>
<br>
Howard<br>
_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" rel="noreferrer" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote>
</div>
<br>
<fieldset class="gmail-m_5704208333824836718mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_5704208333824836718moz-quote-pre">_______________________________________________
pdal mailing list
<a class="gmail-m_5704208333824836718moz-txt-link-abbreviated" href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a>
<a class="gmail-m_5704208333824836718moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/pdal" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></pre>
</blockquote>
<br>
</div>
_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>