<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks Howard.<div class=""><br class=""></div><div class="">Removing he dependency on boost would be great. The only package I found in the rpm repositories is 1.41 which pdal says is too old. So I had to build it from sources and just picked up the latest (1.60) …</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">PDAL's configure-time GDAL detection needs to support GDAL 2.0. Software-wise, GDAL 2.0 should be no problem except for maybe some deprecation warnings. PDAL currently only supports 1.11.x., however. I will make a patch to fix this and let you know.</blockquote><br class=""></div><div class="">There may be something else. I just tried again after setting GDAL_HOME to 1.10, and I still fail the same way:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" class="">$ export GDAL_HOME=/opt/gdal/gdal-1.10</font></div><div class=""><font face="Menlo" class="">$ cmake ..</font></div><div class=""><font face="Menlo" class="">-- Boost version: 1.60.0</font></div><div class=""><font face="Menlo" class="">-- Found the following Boost libraries:</font></div><div class=""><font face="Menlo" class="">--   program_options</font></div><div class=""><font face="Menlo" class="">--   iostreams</font></div><div class=""><font face="Menlo" class="">--   filesystem</font></div><div class=""><font face="Menlo" class="">--   system</font></div><div class=""><font face="Menlo" class="">--   thread</font></div><div class=""><font face="Menlo" class="">-- Could NOT find GDAL (missing:  GDAL_INCLUDE_DIR) (Required is at least version "1.9.0")</font></div><div class=""><font face="Menlo" class="">CMake Error at cmake/gdal.cmake:12 (message):</font></div><div class=""><font face="Menlo" class="">  GDAL support is required</font></div><div class=""><font face="Menlo" class="">Call Stack (most recent call first):</font></div><div class=""><font face="Menlo" class="">  CMakeLists.txt:219 (include)</font></div><div class=""><br class=""></div></div><div class="">Looking at the code in FindGDAL.cmake and adding a bit of debugging, I see that it does find GDAL (sets GDAL_FOUND to TRUE), but it still uses the gdal-config from my default environment (i.e. version 2.0).</div><div class=""><br class=""></div><div class="">This block of code does not perform as expected:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" class="">    # Try to use GDAL_HOME location if specified</font></div><div class=""><font face="Menlo" class="">    IF(<b class="">$ENV{GDAL_HOME}</b>)</font></div><div class=""><font face="Menlo" class="">        SET(GDAL_CONFIG_PREFER_PATH</font></div><div class=""><font face="Menlo" class="">            "$ENV{GDAL_HOME}/bin" CACHE STRING "Search for gdal-config program in preferred location")</font></div><div class=""><font face="Menlo" class="">    ENDIF()</font></div></div><div class=""><br class=""></div><div class="">That is because of the incorrect way of testing environment variables. It should properly read:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" class="">    # Try to use GDAL_HOME location if specified</font></div><div class=""><font face="Menlo" class="">    IF(<b class=""><font color="#ff2600" class="">DEFINED ENV{GDAL_HOME}</font></b>)</font></div><div class=""><font face="Menlo" class="">        SET(GDAL_CONFIG_PREFER_PATH</font></div><div class=""><font face="Menlo" class="">            "$ENV{GDAL_HOME}/bin" CACHE STRING "Search for gdal-config program in preferred location")</font></div><div class=""><font face="Menlo" class="">    ENDIF()</font></div></div><div class=""><br class=""></div><div class="">Then GDAL_CONFIG_PREFEER_PATH gets correctly set.</div><div class=""><br class=""></div><div class="">Then again the real cause of the error is here:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" class="">        FIND_PATH(GDAL_INCLUDE_DIR</font></div><div class=""><font face="Menlo" class="">            gdal.h </font></div><div class=""><font face="Menlo" class="">            PATH_PREFIXES gdal</font></div><div class=""><font face="Menlo" class="">            PATHS</font></div><div class=""><font face="Menlo" class="">            ${GDAL_PREFIX}/include/gdal</font></div><div class=""><font face="Menlo" class="">            ${GDAL_PREFIX}/include</font></div><div class=""><font face="Menlo" class="">            /usr/local/include </font></div><div class=""><font face="Menlo" class="">            /usr/include)</font></div></div><div class=""><br class=""></div><div class="">None of the gdal builds I have come with the includes (gdal.h is nowhere to be found). All I have is the shared libraries (also for the plugins) and the command-line tools (and also the data bit).</div><div class=""><br class=""></div><div class="">Another point: the goal-config tool contains the configuration when and where gdal was built. In other words "gdal-config —libs” returns the location of the libraries as they were on the system where GDAL was built, and subsequently GDAL_LIBRARY is set to an invalid location too, definitely <b class="">not</b> the one used in the current GDAL installation.</div><div class=""><br class=""></div><div class="">Albert</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 28-Dec-2015, at 15:59, Howard Butler <<a href="mailto:howard@hobu.co" class="">howard@hobu.co</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><blockquote type="cite" class="">On Dec 28, 2015, at 8:22 AM, Albert Godfrind <<a href="mailto:albert.godfrind@oracle.com" class="">albert.godfrind@oracle.com</a>> wrote:<br class=""><br class="">I am trying to build the latest GDAL on Linux. The cmake stage fails like this:<br class=""><br class="">$ cmake -G "Unix Makefiles"  ../<br class="">-- Boost version: 1.60.0<br class=""></blockquote><br class="">/me groans. There's a boost 1.60 now? Consider this notice that it is a medium term goal of the PDAL project to eliminate its dependence on externally available Boost before its 2.0 release. Now that C++11 is quite stable just about everywhere, the impetus to reach for Boost for everything is not there anymore for PDAL. Their project release management leaves much to be desired, and because of it, packaging maintainers lag many versions behind current releases. <br class=""><br class=""><blockquote type="cite" class="">-- Could NOT find GDAL (missing:  GDAL_INCLUDE_DIR) (Required is at least version "1.9.0")<br class="">CMake Error at cmake/gdal.cmake:13 (message):<br class=""></blockquote><br class=""><blockquote type="cite" class="">I have gdal installed (version 2.0). It looks like it wants me to define GDAL_INCLUDE_DIR but to what location ? I tried setting up to the lib directory in my installation. I also tried defining GDAL_HOME and even GDAL_LIBRARY all to no effect.<br class=""></blockquote><br class=""><blockquote type="cite" class="">Any idea what I am doing wrong ?<br class=""></blockquote><br class="">PDAL's configure-time GDAL detection needs to support GDAL 2.0. Software-wise, GDAL 2.0 should be no problem except for maybe some deprecation warnings. PDAL currently only supports 1.11.x., however. I will make a patch to fix this and let you know.<br class=""><br class="">Howard<br class=""><br class="">_______________________________________________<br class="">pdal mailing list<br class=""><a href="mailto:pdal@lists.osgeo.org" class="">pdal@lists.osgeo.org</a><br class="">http://lists.osgeo.org/mailman/listinfo/pdal</div></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; line-height: normal; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">--<br class=""><a href="http://www.oracle.com" class=""><img alt="ORACLE" src="http://www.oracle.com/dm/design/images/oracle_sig_logo.gif" style="border-width: 0px; border-style: solid; width: 114px; height: 26px;" class=""></a><br class=""><font color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="2" class="">Albert Godfrind | Geospatial technologies | Tel: +33 4 93 00 80 67</font><span class="Apple-converted-space"> </span><font color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="2" class="">| Mobile: +33 6 09 97 27 23</font><span class="Apple-converted-space"> </span><font color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="2" class="">| Skype:<span class="Apple-converted-space"> </span><a href="skype:albert-godfrind" class="">albert-godfrind</a></font><br class=""><font color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="2" class=""><font color="#ff0000" class="">Oracle</font><span class="Apple-converted-space"> </span>Server Technologies<br class="">400 Av. Roumanille,</font><font color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span class="Apple-converted-space"> </span></font><font color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="2" class="">BP 309 </font><span class="Apple-converted-space"> </span><font color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="2" class="">|</font><span class="Apple-converted-space"> </span><font color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="2" class="">06906 Sophia Antipolis cedex<span class="Apple-converted-space"> </span></font><font color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="2" class="">|<span class="Apple-converted-space"> </span></font><font color="#666666" face="Verdana, Arial, Helvetica, sans-serif" size="2" class="">France<br class=""><a href="http://www.apress.com/9781590598993" class="">Everything you ever wanted to know about Oracle Spatial</a></font></div><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><span><a href="http://www.locationintelligence.net/dc/" style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline" style="color: rgb(71, 135, 255); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: underline;"></a></span></span></span></span></span></span></div></span></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>