[pdal] PDAL 1.2 compilation on Windows
Jérôme Chatillon
j.chatillon at aerodata-surveys.com
Thu Jul 7 03:03:16 PDT 2016
Hi,
So, if I understand you right, it would be possible to compile PDAL 1.2 with Visual Studio 2015 64bits (MSVC++ 14.0, _MSC_VER=1900) using the dependencies libraries provided by OSGE04W64 ?
I didn't dare to try fearing the famous message: "error: LNK2038: mismatch detected for _MSC_VER"...
If not, I need to have all dependencies compile with Visual Studio 2015 64bits (MSVC++ 14.0, _MSC_VER=1900), Right ? Is it me or it's a hell of a job ? :'(
Jerome
-----Original Message-----
From: pdal [mailto:pdal-bounces at lists.osgeo.org] On Behalf Of pdal-request at lists.osgeo.org
Sent: 02 July 2016 21:00
To: pdal at lists.osgeo.org
Subject: pdal Digest, Vol 55, Issue 1
Send pdal mailing list submissions to
pdal at lists.osgeo.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/pdal
or, via email, send a message with subject or body 'help' to
pdal-request at lists.osgeo.org
You can reach the person managing the list at
pdal-owner at lists.osgeo.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of pdal digest..."
Today's Topics:
1. Re: PDAL 1.2 compilation on Windows (Mateusz Loskot)
2. Re: PDAL 1.2 compilation on Windows (Kristian Evers)
----------------------------------------------------------------------
Message: 1
Date: Fri, 1 Jul 2016 21:12:58 +0200
From: Mateusz Loskot <mateusz at loskot.net>
To: Kristian Evers <kreve at sdfe.dk>
Cc: "pdal at lists.osgeo.org" <pdal at lists.osgeo.org>
Subject: Re: [pdal] PDAL 1.2 compilation on Windows
Message-ID:
<CABUeae_9bgWRU-Xx58QVDeTmCVDVnr5wz9MCRKu-f+ScOj2ttQ at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
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
------------------------------
Message: 2
Date: Fri, 1 Jul 2016 21:55:04 +0000
From: Kristian Evers <kreve at sdfe.dk>
To: "pdal at lists.osgeo.org" <pdal at lists.osgeo.org>
Subject: Re: [pdal] PDAL 1.2 compilation on Windows
Message-ID:
<2E885BB293AF0448A0181138489E9A0E79E6473F at S000014.PROD.SITAD.DK>
Content-Type: text/plain; charset="Windows-1252"
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
------------------------------
Subject: Digest Footer
_______________________________________________
pdal mailing list
pdal at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pdal
------------------------------
End of pdal Digest, Vol 55, Issue 1
***********************************
More information about the pdal
mailing list