[pdal] Compile error with master

Howard Butler howard at hobu.co
Sun May 1 07:35:11 PDT 2016


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



More information about the pdal mailing list