<div style="background-color:transparent">Hi Mike,</div><div style="background-color:transparent"><br></div><div style="background-color:transparent">I am trying to compile the mpg-config file, I set the parameter as follows:</div>
<div style="background-color:transparent">****************************************************************************************</div><div style="background-color:transparent"><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">@echo off</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br></font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: Pick your architecture, 32 or 64 bits </font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set COMPILER="Visual Studio 10 Win64"</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set COMPILER="Visual Studio 10"</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br></font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: Pick your build type</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set BUILD_TYPE=Release</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set BUILD_TYPE=Debug</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br></font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: Set some useful path variables</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: "utils" is where you might have libraries installed, like Boost</font></div><div style="background-color:transparent">
<font class="Apple-style-span" color="#009900">:: "dev" is where you build things yourself, like PDAL and laszip</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set UTILS_DIR=c:\utils</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set DEV_DIR=c:\dev</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br></font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: Where is your OSGeo4W installed?</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set OSGEO4W_DIR=C:\OSGeo4W</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br></font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: Where is boost installed?</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set BOOST_DIR=C:\boost\boost_1_47</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br>
</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: Where are the GLUT libs installed?</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: (only needed if you want to build pcview)</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set FREEGLUT_DIR=%DEV_DIR%\<a href="http://freeglut-2.6.0-3.mp">freeglut-2.6.0-3.mp</a></font></div><div style="background-color:transparent">
<font class="Apple-style-span" color="#009900">set GLUT_DIR=%DEV_DIR%\<a href="http://freeglut-2.6.0-3.mp">freeglut-2.6.0-3.mp</a></font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br>
</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: Where is LASZIP? (can be either from OSGeo4W or your own build tree)</font></div><div style="background-color:transparent">
<font class="Apple-style-span" color="#009900">rem set LASZIP_LIBRARY=%OSGEO4W_DIR%\laszip\laszip.lib</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">rem set LASZIP_INCLUDE_DIR=%OSGEO4W_DIR%\laszip\include</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set LASZIP_LIBRARY=%DEV_DIR%\laszip\bin\Debug\Debug\laszip.lib</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set LASZIP_INCLUDE_DIR=%DEV_DIR%\laszip\include</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br></font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br></font></div><div style="background-color:transparent">
<font class="Apple-style-span" color="#009900">:: Where is LIBLAS? (can be either from OSGeo4W or your own build tree)</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">rem set LIBLAS_LIBRARY=%OSGEO4W_DIR%\lib\liblas.lib</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">rem set LIBLAS_INCLUDE_DIR=%OSGEO4W_DIR%\include</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set LIBLAS_LIBRARY=%DEV_DIR%\liblas\bin\Debug\Debug\liblas.lib</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set LIBLAS_INCLUDE_DIR=%DEV_DIR%\liblas\include</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br>
</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br></font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: Where is your PDAL build tree?</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set PDAL_DIR=%DEV_DIR%\pdal</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br>
</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: Where are the OCI libraries installed?</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">set ORACLE_HOME=%OSGEO4W_DIR%</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br></font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: (not needed?)</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">rem set PDAL_SWIG_BOOST_HOME=%BOOST_DIR%</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><br>
</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: If you set the above stuff correctly, then you should only need to</font></div><div style="background-color:transparent">
<font class="Apple-style-span" color="#009900">:: modify the "WITH" (on/off) settings in the following CMAKE invocation.</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">::</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: For most people, you should have these turned ON:</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: GDAL</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: GEOTIFF</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: ORACLE</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: LASZIP</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: LIBXML2</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: and these turned OFF:</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: LIBLAS</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: FREEGLUT</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900">:: SWIG_CSHARP</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900">cmake -G %COMPILER% ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DBOOST_INCLUDEDIR=%BOOST_DIR% ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DWITH_GDAL=ON ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DWITH_GEOTIFF=ON ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DWITH_ORACLE=ON ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DWITH_LASZIP=OFF ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DWITH_LIBLAS=OFF ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DWITH_FREEGLUT=OFF ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DWITH_LIBXML2=ON ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DWITH_SWIG_CSHARP=ON ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DFREEGLUT_LIBRARY=%FREEGLUT_DIR%\lib\freeglut.lib ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DFREEGLUT_INCLUDE_DIR=%FREEGLUT_DIR%\include ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DGLUT_LIBRARY=%FREEGLUT_DIR%\lib ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DGLUT_INCLUDE_DIR=%FREEGLUT_DIR%\include ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DTIFF_INCLUDE_DIR=%OSGEO4W_DIR%\include ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DTIFF_LIBRARY=%OSGEO4W_DIR%\lib\libtiff_i.lib ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DGEOTIFF_INCLUDE_DIR=%OSGEO4W_DIR%\include ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DGEOTIFF_LIBRARY=%OSGEO4W_DIR%\lib\geotiff_i.lib ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DGDAL_INCLUDE_DIR=%OSGEO4W_DIR%\include ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DGDAL_LIBRARY=%OSGEO4W_DIR%\lib\gdal_i.lib ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DORACLE_INCLUDE_DIR=%OSGEO4W_DIR%\include ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DORACLE_OCI_LIBRARY=%OSGEO4W_DIR%\lib\oci.lib ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DLASZIP_INCLUDE_DIR=%LASZIP_INCLUDE_DIR% ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DLASZIP_LIBRARY=%LASZIP_LIBRARY% ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DLIBLAS_INCLUDE_DIR=%LIBLAS_INCLUDE_DIR% ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DLIBLAS_LIBRARY=%LIBLAS_LIBRARY% ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DLIBXML2_LIBRARIES=%OSGEO4W_DIR%\lib\libxml2.lib ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DLIBXML2_INCLUDE_DIR=%OSGEO4W_DIR%\include ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"><span class="Apple-tab-span" style="white-space:pre">        </span>-DICONV_LIBRARY=%OSGEO4W_DIR%\lib\iconv.lib ^</font></div><div style="background-color:transparent">
<font class="Apple-style-span" color="#009900"><span class="Apple-tab-span" style="white-space:pre">        </span>-DICONV_INCLUDE_DIR=%OSGEO4W_DIR%\include ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> -DCMAKE_VERBOSE_MAKEFILE=OFF ^</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#009900"> %PDAL_DIR%</font></div>
<div>******************************************************************************</div><div>however, I don't know whether it has been successfully compiled? here is the information copy from the DOS command line:</div>
</div><div style="background-color:transparent"><br></div><div style="background-color:transparent">&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&</div>
<div style="background-color:transparent"><div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">c:\dev\PDAL>mpg-config.bat</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">-- Searching for GDAL 1.6.0+ library</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">-- NOTE: Required version is not checked - to be implemented</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">-- Searching for GeoTIFF 1.2.5+ library</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">-- Found GeoTIFF version: 1.3.0</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">CMake Error at CMakeLists.txt:271 (include):</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff"> include called with wrong number of arguments. Include only takes one</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff"> file.</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">-- Found Swig version</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">-- Enabling swig for csharp</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">-- Searching for Oracle + OCI client library</font></div>
<div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">-- Enable PDAL unit tests to build - done</font></div><div style="background-color:transparent"><font class="Apple-style-span" color="#3333ff">-- Configuring incomplete, errors occurred!</font></div>
</div><div style="background-color:transparent">&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&</div>
<div style="background-color:transparent"><br></div><div style="background-color:transparent">Could you please help me on this?</div><div style="background-color:transparent"><br></div><div style="background-color:transparent">
Regards,</div><div style="background-color:transparent"><br></div><div style="background-color:transparent">Ping</div><br>