[pdal] Centos 7, python3, gcc 4.8: pip3 fails to build PDAL

Howard Butler howard at hobu.co
Wed Jun 14 08:27:47 PDT 2017


> On Jun 14, 2017, at 1:17 AM, Adam Steer <Adam.Steer at anu.edu.au> wrote:
> 
> Hiya
> 
> I’m rebuilding a PDAL instance on centos 7 with python 3.4.5. PDAL is compiled from release 1.5.0 with python 3.4.5.
> 
> When I get to installing PDAL in a virtual environment, I get the message below - any pointers on how to resolve it and get the PDAL python interface going in python3 would be great!
> 


>    In file included from /usr/include/python3.4m/pyatomic.h:8:0,
>                     from /usr/include/python3.4m/Python.h:53,
>                     from /local/skua/pywps-venv/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>                     from /local/skua/pywps-venv/lib/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4,
>                     from pdal/PyPipeline.hpp:52,
>                     from pdal/PyPipeline.cpp:35:
>    /usr/include/python3.4m/dynamic_annotations.h:472:3: error: template with C linkage
>       template <class T>
>       ^
>    error: command 'gcc' failed with exit status 1

I've only ever tried Python 3.5 and 3.6, not 3.4. This error appears to be from Numpy's header thinking it should only be C. I think the libpdalpython.pyx that sets extern for PyPipeline.hpp is possibly incorrect. Newer Python versions must not care though.

Howard


More information about the pdal mailing list