[pdal] Compile error with master

Stefan Ziegler stefan.ziegler.de at gmail.com
Sun May 1 09:02:29 PDT 2016


libjsoncpp-dev is installed (1.7.2-1) and seems to be found.

cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_PLUGIN_HEXBIN=ON
-DBUILD_PLUGIN_P2G=ON -DBUILD_PLUGIN_PGPOINTCLOUD=ON
-DBUILD_PLUGIN_PYTHON=ON -DBUILD_PLUGIN_SQLITE=ON -DWITH_APPS=ON
-DWITH_GEOTIFF=ON -DWITH_LASZIP=ON -DWITH_COMPLETION=ON

-- The CXX compiler identification is GNU 5.3.1
-- The C compiler identification is GNU 5.3.1
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- 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: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found GDAL: /usr/lib/libgdal.so (Required is at least version "1.9.0")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version
"7.47.0")
-- Found JSONCPP: /usr/lib/x86_64-linux-gnu/libjsoncpp.so (Required is at
least version "1.6.2")
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version
"2.9.3")
-- Found Hexer: /usr/local/lib/libhexer.so
-- Found P2G: /usr/local/lib/libpts2grd.so
-- Found PostgreSQL: /usr/include/postgresql
-- Found SQLITE3: /usr/lib/x86_64-linux-gnu/libsqlite3.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for one of the modules 'spatialite>=4.2.0'
-- Found PythonInterp: /usr/bin/python (found version "2.7.11")
-- 
-- The following features have been enabled:

 * PDAL application , the PDAL command line application
 * Bash completion , completion for PDAL command line
 * Hexbin plugin , determine boundary and density of a point cloud
 * PostgreSQL PointCloud plugin , read/write PostgreSQL PointCloud objects
 * SQLite plugin , read/write SQLite objects
 * Python plugin , add features that depend on python
 * Unit tests , PDAL unit tests

-- The following OPTIONAL packages have been found:

 * GeoTIFF (required version >= 1.3.0)
 * Curl
 * JSONCPP (required version >= 1.6.2)
 * PkgConfig
 * LibXml2
 * P2G

-- The following RECOMMENDED packages have been found:

 * LASzip
   Provides LASzip compression
   Provides LASzip compression

-- The following REQUIRED packages have been found:

 * GDAL (required version >= 1.9.0)
   Provides general purpose raster, vector, and reference system support
 * GEOS (required version >= 3.3)
   Provides general purpose geometry support
 * ZLIB
   Compression support in BPF
 * Hexer
 * PostgreSQL
 * SQLite3
 * Threads , The thread library of the system
 * PythonInterp
 * PythonLibs
 * NumPy (required version >= 1.5)

-- The following features have been disabled:

 * CPD plugin , run Coherent Point Drift on two datasets
 * GeoWave plugin , Read and Write data using GeoWave
 * Greyhound plugin , read points from a Greyhound server
 * Icebridge plugin , read data in the Icebridge format
 * Matlab plugin , write data to a .mat file
 * MrSID plugin , read data in the MrSID format
 * NITF plugin , read/write LAS data wrapped in NITF
 * PCL plugin , provides PCL-based readers, writers, filters, and kernels
 * RiVLib plugin , read data in the RXP format

-- Configuring done
-- Generating done
-- Build files have been written to: /home/stefan/sources/pdal/build


regards
Stefan

On Sun, May 1, 2016 at 4:35 PM, Howard Butler <howard at hobu.co> wrote:

> Can you clear your cmake cache and re-run? PDAL master uses a library
> called arbiter to support convenient fetching of files from S3 and Dropbox.
> Arbiter depends on libjsoncpp-dev, which is either available systemwide, or
> a version embedded with PDAL is used.
>
> I presume you don't have libjsoncpp-dev installed, but there is something
> incorrect with the detection of this scenario to switch on the use of the
> embedded version. Can we see your CMake detection phase output?
>
> Howard
>
>
> > On May 1, 2016, at 7:31 AM, Stefan Ziegler <stefan.ziegler.de at gmail.com>
> wrote:
> >
> > Now "arbiter" makes some problems:
> >
> > [  2%] Building CXX object
> vendor/arbiter/CMakeFiles/pdal_arbiter.dir/arbiter.cpp.o
> > In file included from
> /home/stefan/sources/pdal/vendor/arbiter/arbiter.cpp:43:0:
> > /home/stefan/sources/pdal/vendor/arbiter/arbiter.hpp:298:61: error:
> ‘Json’ does not name a type
> >      static std::unique_ptr<Fs> create(HttpPool& pool, const
> Json::Value& json);
> >                                                              ^
> > /home/stefan/sources/pdal/vendor/arbiter/arbiter.hpp:298:72: error:
> expected unqualified-id before ‘&’ token
> >      static std::unique_ptr<Fs> create(HttpPool& pool, const
> Json::Value& json);
> >
> > /home/stefan/sources/pdal/vendor/arbiter/arbiter.hpp:298:72: error:
> expected ‘)’ before ‘&’ token
> > /home/stefan/sources/pdal/vendor/arbiter/arbiter.hpp:298:72: error:
> static member function ‘static std::unique_ptr<arbiter::drivers::Fs>
> arbiter::drivers::Fs::create(...)’ cannot have ref-qualifier
> > /home/stefan/sources/pdal/vendor/arbiter/arbiter.hpp:298:72: error:
> expected ‘;’ at end of member declaration
> > /home/stefan/sources/pdal/vendor/arbiter/arbiter.hpp:298:74: error:
> ‘json’ does not name a type
> >      static std::unique_ptr<Fs> create(HttpPool& pool, const
> Json::Value& json);
> >
> > etc. etc.
> >
> > /home/stefan/sources/pdal/vendor/arbiter/arbiter.cpp:3046:1: error:
> expected ‘}’ at end of input
> >  } // namespace arbiter
> >  ^
> > vendor/arbiter/CMakeFiles/pdal_arbiter.dir/build.make:62: recipe for
> target 'vendor/arbiter/CMakeFiles/pdal_arbiter.dir/arbiter.cpp.o' failed
> > make[2]: *** [vendor/arbiter/CMakeFiles/pdal_arbiter.dir/arbiter.cpp.o]
> Error 1
> > CMakeFiles/Makefile2:3788: recipe for target
> 'vendor/arbiter/CMakeFiles/pdal_arbiter.dir/all' failed
> > make[1]: *** [vendor/arbiter/CMakeFiles/pdal_arbiter.dir/all] Error 2
> > Makefile:160: recipe for target 'all' failed
> > make: *** [all] Error 2
> >
> >
> > regards
> > Stefan
> >
> >
> >
> > On Sat, Apr 30, 2016 at 10:13 AM, Stefan Ziegler <
> stefan.ziegler.de at gmail.com> wrote:
> > Disabling in CMakeCache.txt or by cmake does not work. Still the same
> error:
> >
> > -- checking for one of the modules 'spatialite>=4.2.0'
> > CMake Error at
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
> (message):
> >   Could NOT find Nitro (missing: NITRO_LIBRARIES NITRO_INCLUDE_DIR)
> (Required
> >   is at least version "2.6")
> > Call Stack (most recent call first):
> >   /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
> (_FPHSA_FAILURE_MESSAGE)
> >   cmake/modules/FindNitro.cmake:73 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> >   cmake/nitro.cmake:5 (find_package)
> >   tools/nitfwrap/CMakeLists.txt:2 (include)
> >
> >
> > -- Configuring incomplete, errors occurred!
> > See also "/home/stefan/sources/pdal/build/CMakeFiles/CMakeOutput.log".
> > See also "/home/stefan/sources/pdal/build/CMakeFiles/CMakeError.log".
> >
> > Isn't there also an error on line 75 in src/CMakeList.txt? The closing
> double brackets?
> >
> > regr
> >
> > On Fri, Apr 29, 2016 at 5:14 PM, Andrew Bell <andrew.bell.ia at gmail.com>
> wrote:
> > On Fri, Apr 29, 2016 at 9:39 AM, Stefan Ziegler <
> stefan.ziegler.de at gmail.com> wrote:
> > Hi
> >
> > can anybody give a hint a about "nitro". I get some cmake errors:
> >
> > Are you processing NITF files?  If not, you can just turn it off in
> CMakeCache.txt with:
> >
> > BUILD_PLUGIN_NITF:BOOL=OFF
> >
> > Otherwise you can get NITRO from:
> >
> > https://github.com/hobu/nitro
> >
> > --
> > Andrew Bell
> > andrew.bell.ia at gmail.com
> >
> >
> > _______________________________________________
> > pdal mailing list
> > pdal at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/pdal
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20160501/19f4bb1f/attachment-0001.html>


More information about the pdal mailing list