[pdal] Bug: Compile on Windows

Howard Butler hobu.inc at gmail.com
Tue May 28 06:48:17 PDT 2013


On May 27, 2013, at 5:32 AM, Nicolas Mantelier <nicolas.mantelier at spaceyes.fr> wrote:

> 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

Hmm, I thought this was working. I'll investigate because I'm going to switch the embedded Boost build to be the default. Can you file a ticket?

>  
> 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)

The WIN32 Boost linkage should simply be against the libpdalboost.a that is created from the boost/ directory of the PDAL tree. If we're not doing that, something is misconfigured in our CMake setup. Please file a ticket on this and I'll take a look.

>  
> 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'll fix this too, I don't think anyone had configured the XML stuff on windows yet. Can you file a ticket?

>  
> 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
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pdal



More information about the pdal mailing list