[pdal] PDAL Compilation error

Ludovic Granjon ludovic.granjon at u-bourgogne.fr
Wed Mar 25 00:27:08 PDT 2015


Hi
This is the result :

Using built-in specs.
COLLECT_GCC=/usr/bin/c++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' 
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs 
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.7 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes 
--enable-gnu-unique-object --enable-plugin --enable-objc-gc 
--with-arch-32=i586 --with-tune=generic --enable-checking=release 
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)

Thanks

Ludovic

Le 24/03/2015 16:29, Andrew Bell a écrit :
> What's the result of /usr/bin/c++ -v ?
>
> On Tue, Mar 24, 2015 at 10:25 AM, Ludovic Granjon 
> <ludovic.granjon at u-bourgogne.fr 
> <mailto:ludovic.granjon at u-bourgogne.fr>> wrote:
>
>     Hi
>     Thanks for your reply
>     Matthew, it doesn't work for me
>     When I launch your cmake command I have
>
>     CMake Warning:
>       Manually-specified variables were not used by the project:
>         std
>
>     and make doesn't work
>
>     Andrew, in CMakeCache.txt I have /usr/bin/c++ and I think it's the
>     4.7.2-1 version but I'm not sure
>
>     Thanks a lot
>
>     Ludovic
>
>
>     Le 24/03/2015 16:14, Andrew Bell a écrit :
>>     Yes, but C++11 support should be turned on automatically in the
>>     build process. What is the compiler/version on your system?  You
>>     can look in CMakeCache.txt in your build directory for
>>     CMAKE_CXX_COMPILER.
>>
>>     On Tue, Mar 24, 2015 at 9:45 AM, Matthew Hanson
>>     <mhanson at appliedgeosolutions.com
>>     <mailto:mhanson at appliedgeosolutions.com>> wrote:
>>
>>         Hi Ludovic,
>>         std::map::emplace is a c++11 feature, so it could be that
>>         your compiler is not compiling with c++11 support.  You could
>>         try to give it the C++ flag:
>>
>>         |-std=c++1
>>         1|
>>
>>         which I think you can pass to cmake with
>>         cmake -G "Unix Makefiles" ../ -Dstd=c++11
>>
>>         although i could be wrong.  I didn't run into this on Ubuntu
>>         using g++ 4.8.2
>>
>>
>>
>>         Matthew Hanson
>>         Applied GeoSolutions
>>         (603) 659-3363 x91 <tel:%28603%29%20659-3363%20x91>
>>         http://appliedgeosolutions.com
>>         mhanson at appliedgeosolutions.com
>>         <mailto:mhanson at appliedgeosolutions.com>
>>
>>
>>         On Tue, Mar 24, 2015 at 10:26 AM, Ludovic Granjon
>>         <ludovic.granjon at u-bourgogne.fr
>>         <mailto:ludovic.granjon at u-bourgogne.fr>> wrote:
>>
>>             Hi all
>>             I'm new to PDAL and I try to install on debian wheezy but
>>             I have some problem
>>             When I launch
>>             cmake -G "Unix Makefiles" ../
>>             All seems to be OK
>>
>>             But when I launch "make"
>>             I have
>>
>>             Scanning dependencies of target filter_stats
>>             [ 18%] Building CXX object
>>             filters/stats/CMakeFiles/filter_stats.dir/StatsFilter.cpp.o
>>             /home/ludo/pdal2/PDAL-0.9.9/filters/stats/StatsFilter.cpp: In
>>             member function ‘virtual void
>>             pdal::StatsFilter::ready(pdal::PointContext)’:
>>             /home/ludo/pdal2/PDAL-0.9.9/filters/stats/StatsFilter.cpp:121:17:
>>             error: ‘class std::map<pdal::Dimension::Id::Enum,
>>             pdal::stats::Summary>’ has no member named ‘emplace’
>>             make[2]: ***
>>             [filters/stats/CMakeFiles/filter_stats.dir/StatsFilter.cpp.o]
>>             Erreur 1
>>             make[1]: ***
>>             [filters/stats/CMakeFiles/filter_stats.dir/all] Erreur 2
>>             make: *** [all] Erreur 2
>>
>>             I tried also with the master branche
>>
>>             Have you an idea ?
>>
>>             Thanks a lot
>>
>>             Ludovic
>>
>>             PS : This is my result of cmake
>>
>>             -- Boost version: 1.57.0
>>             -- Found the following Boost libraries:
>>             --   program_options
>>             --   iostreams
>>             --   filesystem
>>             --   system
>>             --   thread
>>             -- 
>>             -- The following features have been enabled:
>>
>>              * PDAL application , the PDAL command line application
>>              * PostgreSQL PointCloud plugin , read/write PostgreSQL
>>             PointCloud objects
>>              * Unit tests , PDAL unit tests
>>
>>             -- The following OPTIONAL packages have been found:
>>
>>              * PkgConfig
>>              * LibXml2
>>              * GEOS (required version >= 3.3)
>>                Provides general purpose geometry support
>>              * GeoTIFF (required version >= 1.3.0)
>>              * PythonInterp
>>
>>             -- The following RECOMMENDED packages have been found:
>>
>>              * LASzip
>>                Provides LASzip compression
>>                Provides LASzip compression
>>
>>             -- The following REQUIRED packages have been found:
>>
>>              * Boost (required version >= 1.53)
>>                Boost provides fundamental functionality for PDAL
>>              * GDAL (required version >= 1.9.0)
>>                Provides general purpose raster, vector, and reference
>>             system support
>>              * ZLIB
>>                Compression support in BPF
>>              * Threads , The thread library of the system
>>              * PostgreSQL
>>
>>             -- The following features have been disabled:
>>
>>              * Attribute plugin , apply attributes to a subset of points
>>              * 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
>>              * Hexbin plugin , determine boundary and density of a
>>             point cloud
>>              * Icebridge plugin , read data in the Icebridge format
>>              * 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
>>              * SQLite plugin , read/write SQLite objects
>>              * RiVLib plugin , read data in the RXP format
>>              * Python plugin , add features that depend on python
>>
>>             -- Configuring done
>>             -- Generating done
>>             -- Build files have been written to:
>>             /home/lg465368/pdal2/PDAL-0.9.9/makefiles
>>
>>
>>
>>
>>             _______________________________________________
>>             pdal mailing list
>>             pdal at lists.osgeo.org <mailto:pdal at lists.osgeo.org>
>>             http://lists.osgeo.org/mailman/listinfo/pdal
>>
>>
>>
>>         _______________________________________________
>>         pdal mailing list
>>         pdal at lists.osgeo.org <mailto:pdal at lists.osgeo.org>
>>         http://lists.osgeo.org/mailman/listinfo/pdal
>>
>>
>>
>>
>>     -- 
>>     Andrew Bell
>>     andrew.bell.ia at gmail.com <mailto:andrew.bell.ia at gmail.com>
>
>
>
>
> -- 
> Andrew Bell
> andrew.bell.ia at gmail.com <mailto:andrew.bell.ia at gmail.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20150325/632fd525/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ludovic_granjon.vcf
Type: text/x-vcard
Size: 149 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20150325/632fd525/attachment-0001.vcf>


More information about the pdal mailing list