- Download the latest liblas source code from http://www.liblas.org/download.html. Extract the files to a folder e.g. E:\Work\src\liblas-1.7.0\.
- On the Windows Desktop, select Start | All Programs | CMake 2.8 | CMake (cmake-gui).
The CMake application appears. - In the Where is the source code field, click Browse Source.
The Browse for Folder dialog box appears. - Select the folder where the liblas archive was extracted, e.g. E:\Work\src\libLAS-1.7.0\. Click OK.
- In the Where to build the binaries field, click Browse Build.
The Browse for Folder dialog box appears. - Select or create the folder where the Microsoft Visual Studio solution project files will be created e.g. E:\Work\src\libLAS-1.7.0\bin\. Click OK.
- Click Configure.
A prompt appears. - In the combo box, choose a generator for this project e.g. Visual Studio 10 Win64. Click Finish.
A Error message appears. - Close the message.
- In the list box, select Boost_INCLUDE_DIR. Then click the browse [...] button.
The Browse For Folder dialog box appears. - Choose the root folder containing Boost e.g. E:\Work\src\boost_1_52_0\. Click OK.
Note: the boost folder containing the header include files should be underneath the root folder. - Click Configure again.
The configuration files are created. - Click Generate.
The Microsoft Visual Studio project files are generated the specified destination build folder. - Close CMake.
- Run Microsoft Visual Studio 2010. Open up the libLAS.sln file.
- Press F7 to build all the projects.
The 64 bit liblas binaries are generated.
Monday, March 25, 2013
Build the basic liblas for 64 bit Windows (no GDAL and GeoTIFF support)
In order to build 64 bit Windows binaries of liblas, the header files and 64 bit binaries for Boost must be accessible by Microsoft Visual Studio. The CMake utility from http://www.cmake.org needs to be used to configure and generate the Microsoft Visual Studio project files for liblas. The following illustrates how I build the basic liblas 64 bit binaries (no GDAL or GeoTIFF support). Note that the 64-bit executables may not run successfully even though the compilation is successful depending on how the source code was written.
Labels:
64-bit,
libGeotiff,
liblas,
libTiff,
LiDAR,
point cloud,
programming,
Proj4
Subscribe to:
Post Comments (Atom)
1 comment:
I have successfully built with GDAL 64 bit binaries from http://www.gisinternals.com/sdk/ and Geotiff according to your instructions. Had to add chrono from Boost into CMake by hand. I will try to publish my relese win_x64 build for those in need.
Post a Comment