[pdal] PDAL configuration using CMake

Stephen Pidgeon pidgeon13 at googlemail.com
Thu Nov 16 03:52:44 PST 2017


Hi All,

I am having some problems configuring PDAL and was hoping that someone
could give me a hand.

I am trying to configure a build using the hobu-windows.bat. I have
downloaded OSGeo4W and as far as I know all the required dependencies,
however when I run the batch file I am having some problems. I have
included the output from the cmd as a text file, but the errors I am
getting are as follows:

CMake Error at cmake/modules/FindNumPy.cmake:25 (STRING):

  STRING sub-command REPLACE requires at least four arguments.


Having looked at FindNumPy.cmake (also attached), it seems like there's
something wrong with NUMPY_OUTPUT? (Replace seems to think it doesn't exist
as an argument) In fact the comment on line 19 says that:

# WARNING: The variable PYTHON_EXECUTABLE is defined by the script
> FindPythonInterp.cmake


but I can't find FindPythonInterp.cmake anywhere. Could this be the
problem? The error that follows seems to stem from the same place, if
NUMPY_OUTPUT is the problem:

CMake Error at cmake/modules/FindNumPy.cmake:26 (LIST):
>   LIST GET given empty list
>

I'm not sure if my final error is connected at all (and suspect it isn't),
I haven't really been looking at it as I've been trying to sort them out in
order:

 -- Performing Test SQLITE3_HAS_LOAD_EXTENSION
> -- Performing Test SQLITE3_HAS_LOAD_EXTENSION - Failed
> -- Found SQLITE3: C:/OSGeo4W64/lib/sqlite3_i.lib
> CMake Error at cmake/sqlite.cmake:7 (message):
>   SQLite3 compiled without load extension, which is required.  Please
>   re-compile SQLite3 with load extension or ensure CMake is pointing at the
>   correct SQLite3 installation.


I have looked online for people having similar problems with CMake but
didn't find anything useful. I'm not sure exactly what I'm doing wrong, and
would really appreciate some help.

Best regards,

Stephen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20171116/20499fb1/attachment.html>
-------------- next part --------------
 Selecting Windows SDK version  to target Windows 10.0.14393.
-- The CXX compiler identification is MSVC 19.0.24215.1
-- The C compiler identification is MSVC 19.0.24215.1
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Deprecation Warning at cmake/policies.cmake:5 (cmake_policy):
  The OLD behavior for policy CMP0022 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  cmake/common.cmake:15 (include)
  CMakeLists.txt:12 (include)


-- Found GDAL: C:/OSGeo4W64/lib/gdal_i.lib (Required is at least version "1.9.0")
-- Found GeoTIFF: C:/OSGeo4W64/lib/geotiff_i.lib
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Found ZLIB: C:/OSGeo4W64/lib/zlib.lib (found version "1.2.8")
-- Found JSONCPP: C:/OSGeo4W64/lib/jsoncpp.lib (Required is at least version "1.6.2")
-- Found LibXml2: C:/OSGeo4W64/lib/libxml2.lib (found version "2.9.1")
-- Numpy output:
CMake Error at cmake/modules/FindNumPy.cmake:25 (STRING):
  STRING sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  cmake/python.cmake:16 (find_package)
  CMakeLists.txt:124 (include)


CMake Error at cmake/modules/FindNumPy.cmake:26 (LIST):
  LIST GET given empty list
Call Stack (most recent call first):
  cmake/python.cmake:16 (find_package)
  CMakeLists.txt:124 (include)


CMake Error at cmake/modules/FindNumPy.cmake:27 (LIST):
  LIST GET given empty list
Call Stack (most recent call first):
  cmake/python.cmake:16 (find_package)
  CMakeLists.txt:124 (include)


-- Found CURL: C:/OSGeo4W64/lib/libcurl.lib (found version "7.54.0")
-- Looking for include file execinfo.h
-- Looking for include file execinfo.h - not found
-- Found Hexer: C:/OSGeo4W64/lib/hexer.lib
-- Found Oracle: C:/OSGeo4W64/lib/oci.lib
-- Found PostgreSQL: C:/OSGeo4W64/include
-- Numpy output:
CMake Error at cmake/modules/FindNumPy.cmake:25 (STRING):
  STRING sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  cmake/python.cmake:16 (find_package)
  plugins/python/CMakeLists.txt:5 (include)


CMake Error at cmake/modules/FindNumPy.cmake:26 (LIST):
  LIST GET given empty list
Call Stack (most recent call first):
  cmake/python.cmake:16 (find_package)
  plugins/python/CMakeLists.txt:5 (include)


CMake Error at cmake/modules/FindNumPy.cmake:27 (LIST):
  LIST GET given empty list
Call Stack (most recent call first):
  cmake/python.cmake:16 (find_package)
  plugins/python/CMakeLists.txt:5 (include)


-- Performing Test SQLITE3_HAS_LOAD_EXTENSION
-- Performing Test SQLITE3_HAS_LOAD_EXTENSION - Failed
-- Found SQLITE3: C:/OSGeo4W64/lib/sqlite3_i.lib
CMake Error at cmake/sqlite.cmake:7 (message):
  SQLite3 compiled without load extension, which is required.  Please
  re-compile SQLite3 with load extension or ensure CMake is pointing at the
  correct SQLite3 installation.
Call Stack (most recent call first):
  plugins/sqlite/CMakeLists.txt:5 (include)


-- Configuring incomplete, errors occurred!
See also "C:/Users/stephenp/source/Repos/PDAL/CMakeFiles/CMakeOutput.log".
See also "C:/Users/stephenp/source/Repos/PDAL/CMakeFiles/CMakeError.log".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindNumPy.cmake
Type: application/octet-stream
Size: 1297 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20171116/20499fb1/attachment.obj>


More information about the pdal mailing list