[pdal] Configuring PDAL basic core library on Unix

Rory Sutton s_rory at bellsouth.net
Sun May 12 14:52:51 PDT 2013


Attempting to configure the basic core PDAL libraries on Unix according to the instructions on the PDAL website, I've encountered a problem.  XML2 seems to be a dependency of pcinfo and the build fails if it is not switched on.

rjs at ubuntu:~/pdal$ mkdir makefiles
rjs at ubuntu:~/pdal$ cd makefiles
rjs at ubuntu:~/pdal/makefiles$ ../rjs-min-config.sh
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- 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
-- 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
-- Setting PDAL build type - Debug
-- Looking for include file pthread.h
-- Looking for include file 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  
-- Using embedded boost tree
-- libxml2 not selected or not found, pcinfo will not be build
-- Using boost lib: pdalboost
CMake Error at apps/CMakeLists.txt:85 (install):
  install TARGETS given target "pcinfo" which does not exist in this
  directory.

Turning on XML2 gets the build configuration done without error, but the next step, running "make" on it, bombs on Colorization.cpp:

[ 63%] Building CXX object src/CMakeFiles/pdal.dir/filters/Colorization.cpp.o
In file included from /home/rjs/pdal/src/filters/Colorization.cpp:35:0:
/home/rjs/pdal/src/../include/pdal/filters/Colorization.hpp:158:40: warning: non-static reference ‘const pdal::filters::Colorization& pdal::filters::iterators::sequential::Colorization::m_stage’ in class without a constructor [-Wuninitialized]
In file included from /home/rjs/pdal/boost/boost/thread/condition_variable.hpp:16:0,
                 from /home/rjs/pdal/boost/boost/thread/pthread/shared_mutex.hpp:14,
                 from /home/rjs/pdal/boost/boost/thread/shared_mutex.hpp:21,
                 from /home/rjs/pdal/boost/boost/thread/detail/thread_group.hpp:9,
                 from /home/rjs/pdal/boost/boost/thread/thread.hpp:26,
                 from /home/rjs/pdal/boost/boost/thread.hpp:13,
                 from /home/rjs/pdal/src/../include/pdal/ThreadEnvironment.hpp:41,
                 from /home/rjs/pdal/src/../include/pdal/GlobalEnvironment.hpp:39,
                 from /home/rjs/pdal/src/filters/Colorization.cpp:42:
/home/rjs/pdal/boost/boost/thread/pthread/condition_variable.hpp:28:51: warning: redundant redeclaration of ‘void pdalboost::this_thread::interruption_point()’ in same scope [-Wredundant-decls]
In file included from /home/rjs/pdal/boost/boost/thread/thread.hpp:22:0,
                 from /home/rjs/pdal/boost/boost/thread.hpp:13,
                 from /home/rjs/pdal/src/../include/pdal/ThreadEnvironment.hpp:41,
                 from /home/rjs/pdal/src/../include/pdal/GlobalEnvironment.hpp:39,
                 from /home/rjs/pdal/src/filters/Colorization.cpp:42:
/home/rjs/pdal/boost/boost/thread/detail/thread.hpp:597:32: warning: previous declaration of ‘void pdalboost::this_thread::interruption_point()’ [-Wredundant-decls]
/home/rjs/pdal/src/filters/Colorization.cpp: In member function ‘virtual pdal::StageSequentialIterator* pdal::filters::Colorization::createSequentialIterator(pdal::PointBuffer&) const’:
/home/rjs/pdal/src/filters/Colorization.cpp:190:80: error: no matching function for call to ‘pdal::filters::iterators::sequential::Colorization::Colorization(const pdal::filters::Colorization&, pdal::PointBuffer&)’
/home/rjs/pdal/src/filters/Colorization.cpp:190:80: note: candidates are:
In file included from /home/rjs/pdal/src/filters/Colorization.cpp:35:0:
/home/rjs/pdal/src/../include/pdal/filters/Colorization.hpp:124:16: note: pdal::filters::iterators::sequential::Colorization::Colorization()
/home/rjs/pdal/src/../include/pdal/filters/Colorization.hpp:124:16: note:   candidate expects 0 arguments, 2 provided
/home/rjs/pdal/src/../include/pdal/filters/Colorization.hpp:124:16: note: pdal::filters::iterators::sequential::Colorization::Colorization(const pdal::filters::iterators::sequential::Colorization&)
/home/rjs/pdal/src/../include/pdal/filters/Colorization.hpp:124:16: note:   candidate expects 1 argument, 2 provided
/home/rjs/pdal/src/filters/Colorization.cpp: At global scope:
/home/rjs/pdal/src/filters/Colorization.cpp:200:1: error: prototype for ‘pdal::filters::iterators::sequential::Colorization::Colorization(const pdal::filters::Colorization&, pdal::PointBuffer&)’ does not match any in class ‘pdal::filters::iterators::sequential::Colorization’
In file included from /home/rjs/pdal/src/filters/Colorization.cpp:35:0:
/home/rjs/pdal/src/../include/pdal/filters/Colorization.hpp:124:16: error: candidates are: pdal::filters::iterators::sequential::Colorization::Colorization(const pdal::filters::iterators::sequential::Colorization&)
/home/rjs/pdal/src/../include/pdal/filters/Colorization.hpp:124:16: error:                 pdal::filters::iterators::sequential::Colorization::Colorization()
/home/rjs/pdal/src/filters/Colorization.cpp: In member function ‘virtual pdal::StageSequentialIterator* pdal::filters::Colorization::createSequentialIterator(pdal::PointBuffer&) const’:
/home/rjs/pdal/src/filters/Colorization.cpp:191:1: warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [src/CMakeFiles/pdal.dir/filters/Colorization.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/pdal.dir/all] Error 2
make: *** [all] Error 2

I'm new to PDAL and cmake, so this is probably due to some oversight or misunderstanding on my part.  I'm on Ubuntu 13.04 now, but this behavior was identical on Ubuntu 12.10.  Any clue will probably be rewarded by further questions.




More information about the pdal mailing list