[gdal-dev] How to build py-gdal using the C++ compiler

Ryan Schmidt gdal at ryandesign.com
Wed Jun 17 18:24:40 PDT 2020

On Jun 17, 2020, at 18:38, Chris Marsh wrote:

> I don't have anything to do with the gdal project, so I don't have a proper answer for you.
> However, I use this project
> https://github.com/nextgis/pygdal
> for using python gdal in my venvs as it behaves much better. 
> It uses setuptools and does C++11 checks, which requires a c++ compiler. Might help you out if you can't get a good answer here.

It looks like there are many changes between the pypi version of gdal that I've been using and the one you referred to above. I don't have anything to do with the gdal project either so I'm not qualified to judge whether those changes are appropriate but my default reaction is to be uncomfortable using forks of software projects, especially when the original version of the project is still active.

Nevertheless I tried building the extension from the code you posted above, and it has the same problem: the C++ code gets built using the C compiler, not the C++ compiler. Do you see a different result when you build it? If so can you tell me more about your system?

More information about the gdal-dev mailing list