[pdal] Bug: Compile on Windows

Nicolas Mantelier nicolas.mantelier at spaceyes.fr
Mon May 27 03:32:12 PDT 2013


Hello Evry body

I finaly build PDAL with vs 2010 i have some bug issue

 

First :

Project Pdal don't configure with cmake with embedded boost 

Need to specify: set(Boost_FILESYSTEM_LIBRARY ) cause it was use before
initialization

 

Second:

set(PDAL_OUTPUT_LIB_DIR ${PDAL_BINARY_DIR}/${LIB_INSTALL_DIR})

set(PDAL_OUTPUT_BIN_DIR ${PDAL_BINARY_DIR}/${BIN_INSTALL_DIR})

Was use before initialization 

Need to specify:

set (PDAL_BINARY_DIR ${CMAKE_BINARY_DIR})

set (LIB_INSTALL_DIR "lib")

set (BIN_INSTALL_DIR "bin")

 

For better anderstanding: I modify PATH FOR LIB and BIN destination

if(WIN32)

  foreach(config ${CMAKE_CONFIGURATION_TYPES})

    string(TOUPPER ${config} CONFIG)

    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CONFIG} "${PDAL_OUTPUT_LIB_DIR}")

    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CONFIG} "${PDAL_OUTPUT_BIN_DIR}")

    # ---[ Windows requires DLLs (shared libraries) to be installed in the
same directory as executables

    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CONFIG} "${PDAL_OUTPUT_LIB_DIR}")

 endforeach(config)

And same with link

if (WIN32)

    set(Boost_LIBRARIES "${PDALBOOST_LIB_NAME}.lib")

                foreach(config ${CMAKE_CONFIGURATION_TYPES})

                               string(TOUPPER ${config} CONFIG)

 
link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CONFIG}})

                endforeach(config)

 

Last:

With Option 

LIBxml2,GDAL,GTIFF,ICONV,LASZIP

There is error in XMLSchema.cpp with include

#include <unistd.h>

#include <strings.h>

#include <xlocale.h>

#include <sys/uio.h>

 

I fix it with but I don't know if it is correct

#if _WIN32

#include <io.h>

#include <string.h>

#include <winsock2.h>

#else

#include <unistd.h>

#include <strings.h>

#endif

 

Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20130527/e6ad7ce1/attachment.html>


More information about the pdal mailing list