[pdal] PDAL 1.2 compilation on Windows

Mateusz Loskot mateusz at loskot.net
Fri Jul 1 12:12:58 PDT 2016


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