[pdal] PDAL 1.2 compilation on Windows

Kristian Evers kreve at sdfe.dk
Fri Jul 1 14:55:04 PDT 2016


Sure, a PR would be lovely, but since I never got to a point where that would make sense i didn't do one :) Since then I haven't had the time and motivation to carry one with this. 

Regarding the "Visual Studio compiled with C++ libraries", I must been very frustrated at the time and written the completely wrong word. What I meant was "make sure to check off C++ libraries when installing Visual Studio". I forgot to do that at first, and was confused by the missing C++ abilities.

The rest of your comments should make it easier to succeed with windows compilation. If I ever give a go again I'll make sure to write a new version of the windows build instructions.

/Kristian
________________________________________
Fra: Mateusz Loskot [mateusz at loskot.net]
Sendt: 1. juli 2016 21:12
Til: Kristian Evers
Cc: pdal at lists.osgeo.org
Emne: Re: [pdal] PDAL 1.2 compilation on Windows

On 30 June 2016 at 13:10, Kristian Evers <kreve at sdfe.dk> wrote:
> Generally the windows build documentation could use a big overhaul.

I'm sure PR would be very welcomed. Meanwhile,...

> 1. Minor details:
>     a. There’s no ’gdal-dev’ package at this time in OSGeo4W64.

developers may refer to which builds using VS2015 and OSGeo4W64
https://github.com/PDAL/PDAL/blob/master/appveyor.yml
Specifically, line 46 shows list of essential packages:

- C:\temp\osgeo4w-setup.exe -q -k -r -A -s
http://download.osgeo.org/osgeo4w/ -a x86_64 -P
boost-devel,eigen,gdal,geos,hexer,iconv,laszip,libgeotiff,libpq,libtiff,libxml2,nitro,pcl,points2grid,proj,python-numpy,zlib
-R %OSGEO4W_ROOT% > NUL

Notice, it is gdal, not gdal-dev.

> 2. No problem
>
> 3. Some problems:
>     a. mkdir PDAL\build
>     b. Remember to initialize vsvars32.bat

No need, if you launch the proper command prompt, for example
"VS2015 x64 Native Tools Command Prompt"

>     c. call ./cmake/examples/hobu-windows.bat
>     d. No CXX and C compiler: Need to make sure that Visual Studio is compiled with C++ libraries!

"Visual Studio is compiled with C++ libraries!" that sounds a bit
confusing to me.


>    f.  Boost libraries in OSGeo4W64 does not work with VS2015. Most recent boost does not play well with cmake. Boost 1.59 seems to be the best option.

This should not be an issue, see appveyor.yml and the actual builds:
https://ci.appveyor.com/project/hobu/pdal
Besides, PDAL hosts copy of required Boost libraries in pdal/vendor/pdalboost


> And that’s as far as I got at the time. It might not be relevant anymore, but I'm sharing it here in case it helps someone.

Thanks for that indeed, but PR would be a better fit.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net


More information about the pdal mailing list