<div dir="ltr">Hi Andrew,<div><br></div><div>Ah damn. Thanks for the info. </div><div>Cheers</div><div>Chris</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br style="color:rgb(102,102,102)"></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 15 November 2017 at 16:52, Andrew Joseph <span dir="ltr"><<a href="mailto:ap.joseph@live.com" target="_blank">ap.joseph@live.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="">> <span style="font-family:"Sans Serif";font-size:12px;white-space:pre-wrap">I've turned that as an error:</span></span><div><br>Thanks, much appreciated -that will probably save at least 10 people from sitting at a coffee shop at 3am, recompiling anxiously for the 100th time, pulling out what is left of their hair, subsisting on stale pizza and wondering why they chose a career in programming! <br></div><div>I suppose in the future, I should pay more attention to the configure output when debugging rather than proceeding directly to make && make install -one of the downsides of utilizing new features with docker automated builds.<span class=""><br><br><div style="font-size:12.8px">> I wonder if this is at all related to my issues and why changing proj4 versions makes no difference....</div></span><div style="font-size:12.8px"><span class="">> Is <span style="background-color:rgb(221,255,221);color:rgb(0,0,0);font-family:monospace;font-size:11px">--without-fgdb</span> the correct way to disable this feature so I can test?<br><br></span>Chris,</div><div><br><span style="font-size:12.8px">It would only be related if you installed the ESRI Filegeodatabase driver located here <a href="https://github.com/Esri/file-geodatabase-api" target="_blank">https://github.com/Esri/<wbr>file-geodatabase-api</a> -NOT the built in OpenFileGDB driver. I installed this using the following commands:</span><div><span style="font-size:12.8px">FGDB_DIR=FileGDB_API-64gcc51</span></div><div><span style="font-size:12.8px">FGDB_DOWNLOAD=FileGDB_API_1_5_<wbr>1-64gcc51.tar.gz</span></div><div><span style="font-size:12.8px">cd /tmp</span></div><div><span style="font-size:12.8px">wget -q -O /tmp/${FGDB_DOWNLOAD} <a href="https://github.com/Esri/file-geodatabase-api/raw/master/FileGDB_API_1.5.1/$%7BFGDB_DOWNLOAD%7D" target="_blank">https://github.com/Esri/file-<wbr>geodatabase-api/raw/master/<wbr>FileGDB_API_1.5.1/${FGDB_<wbr>DOWNLOAD}</a></span></div><div><span style="font-size:12.8px">tar -C /tmp -xzf /tmp/${FGDB_DOWNLOAD}</span></div><div><span style="font-size:12.8px">cd /tmp/${FGDB_DIR}</span></div><div><span style="font-size:12.8px">cp lib/* /usr/local/lib</span><br></div><div><span style="font-size:12.8px">cp include/* /usr/local/include</span></div>ldconfig<br><br><span style="font-size:12.8px">If you installed similarly, --without-fgdb wouldn't fix the issue since the proj4 culprit lib is still present and will still malevolently conflict. On my Ubuntu 16.04 setup, this actually failed only when ogr_fdw (a postgis extension that uses gdal) was utilized -not on GDAL itself. </span><br><span style="font-size:12.8px">Using --with-static-proj4=<PATH(<wbr>usually either /usr or /usr/local)> when configuring GDAL fixed the issue for me.<br></span><br></div><div>If you want to ensure you have proj4 installed properly, they provide a convenient Dockerfile that shows all necessary instructions here <a href="https://github.com/OSGeo/proj.4/blob/master/Dockerfile" target="_blank">https://github.com/OSGeo/proj.<wbr>4/blob/master/Dockerfile</a></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 15, 2017 at 4:20 PM, Chris Marsh <span dir="ltr"><<a href="mailto:chris.marsh@usask.ca" target="_blank">chris.marsh@usask.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div dir="ltr">As I have been unable to solve my strange proj4 related issues  as per
<div><a href="https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2FFailed-to-initialize-PROJ-4-with-quot-quot-td5338323.html&data=02%7C01%7Cap.joseph%40live.com%7C9f986c0f58864e9a2b8208d52c772391%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636463812560164450&sdata=eQ7ooxEyUi8VKau1g1PoH0j5bMv5RJbCHYjG09EhzPo%3D&reserved=0" target="_blank">http://osgeo-org.1560.x6.nabbl<wbr>e.com/Failed-to-initialize-<wbr>PROJ-4-with-quot-quot-<wbr>td5338323.html</a><br>
</div>
<div><br>
</div>
<div>I wonder if this is at all related to my issues and why changing proj4 versions makes no difference....</div>
<div>Is <span style="background-color:rgb(221,255,221);color:rgb(0,0,0);font-family:monospace;font-size:11px">--without-fgdb</span> the correct way to disable this feature so I can test?</div>
<div><br>
</div>
<div>Cheers</div>
<div>Chris</div>
<div class="gmail_extra">
<div>
<div class="m_-3153778258845633424m_6367120659816855234gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><br style="color:rgb(102,102,102)">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote"><div><div class="m_-3153778258845633424h5">On 15 November 2017 at 15:19, Even Rouault <span dir="ltr">
<<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-3153778258845633424h5">
<u></u>
<div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal">
<span>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
 </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
> To save others from this hellish debugging process, it might be worth</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
> either checking for the FGDB libraries and throwing an error if GDAL is</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
> configured without --wtih-static-proj4=location or setting that option by</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
> default.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
 </p>
</span>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
./configure should already output a warning about that situation at the end:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
<a href="https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrac.osgeo.org%2Fgdal%2Fchangeset%2F37668&data=02%7C01%7Cap.joseph%40live.com%7C9f986c0f58864e9a2b8208d52c772391%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636463812560164450&sdata=%2ByXDabdw%2Bq6Bi6aj5igcX34jjt%2BMQZqPbGwT9aSN1tA%3D&reserved=0" target="_blank">https://trac.osgeo.org/gdal/ch<wbr>angeset/37668</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
I've turned that as an error:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
<a href="https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrac.osgeo.org%2Fgdal%2Fchangeset%2F40724&data=02%7C01%7Cap.joseph%40live.com%7C9f986c0f58864e9a2b8208d52c772391%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636463812560164450&sdata=D6LRzrOENG1QvtvjZbv1HVCcDmCftKjubMOyTUZHb3A%3D&reserved=0" target="_blank">https://trac.osgeo.org/gdal/ch<wbr>angeset/40724</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
 </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
Spatialys - Geospatial professional services</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
<a href="https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.spatialys.com&data=02%7C01%7Cap.joseph%40live.com%7C9f986c0f58864e9a2b8208d52c772391%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636463812560164450&sdata=cfWFzwWzROa9AkRDD9r3DkLW4kHno%2BbhYzIpeB%2FTLJk%3D&reserved=0" target="_blank">http://www.spatialys.com</a></p>
</div>
<br></div></div>
______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgdal-dev&data=02%7C01%7Cap.joseph%40live.com%7C9f986c0f58864e9a2b8208d52c772391%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636463812560164450&sdata=ixqckFmzRKh2jFZ2YcfytIc0sTIWm%2FcZSmZvAomt9M0%3D&reserved=0" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/gdal-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>

</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>