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

Ryan Schmidt gdal at ryandesign.com
Wed Jun 17 16:20:09 PDT 2020


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

> To the right of the search box are 3 dots. Click that and 'view raw logs'
> 
> https://pipelines.actions.githubusercontent.com/yqaARdsLodWRtkoqajmNaa64Xp4JCsYwhgHYzJtTCVY8q4LFPT/_apis/pipelines/1/runs/546/signedlogcontent/3?urlExpires=2020-06-17T23%3A07%3A33.8599856Z&urlSigningMethod=HMACV1&urlSignature=lHpnB3bSeUyel1HOzHFRgrY3dg3RHkf4IQrqL%2BPKtu8%3D

Thanks. And there it is:


2020-06-17T10:10:44.5739190Z running build_ext
2020-06-17T10:10:44.7035530Z gcc -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl at 1.1/include -I/usr/local/opt/sqlite/include -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/local/Cellar/python at 2/2.7.17_1/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/Users/runner/runners/2.263.0/work/gdal/gdal/gdal/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o


It's building gdal_python_cxx11_test.cpp (a C++ file) using gcc (which is not a C++ compiler).

The question is how to get it to build using e.g. g++ instead, including honoring the CXX and CXXFLAGS environment variables.



More information about the gdal-dev mailing list