J Conrado <jorge.confo...@inpe.br> writes: > Hi, > > > I'm trying to install GDAL. I used conda and PIP and I didn't have sucess. > > > I used for pip to insatal GDAL3.0.4: > > > pip install GDAL > > > Collecting GDAL > Using cached GDAL-3.0.4.tar.gz (577 kB) > > <snipped output> > > cc1plus: warning: command line option "-Wstrict-prototypes" is > valid for Ada/C/ObjC but not for C++ > extensions/gdal_wrap.cpp:4075: error: expected constructor, > destructor, or type conversion before ‘*’ token > extensions/gdal_wrap.cpp:4123: error: ‘VSIDIR’ was not declared in > this scope > extensions/gdal_wrap.cpp:4123: error: ‘dir’ was not declared in > this scope > extensions/gdal_wrap.cpp:4124: error: expected ‘,’ or ‘;’ before > ‘{’ token > extensions/gdal_wrap.cpp:3225: warning: ‘char* > get_aligned_buffer(char*, GDALDataType)’ defined but not used > extensions/gdal_wrap.cpp:3244: warning: ‘void > update_buffer_size(void*, char*, char*, size_t)’ defined but not used > extensions/gdal_wrap.cpp:3299: warning: ‘int GetUseExceptions()’ > defined but not used > extensions/gdal_wrap.cpp:3305: warning: ‘void UseExceptions()’ > defined but not used > extensions/gdal_wrap.cpp:3322: warning: ‘void DontUseExceptions()’ > defined but not used > extensions/gdal_wrap.cpp:3370: warning: ‘void ClearErrorState()’ > defined but not used > error: command 'gcc' failed with exit status 1
I'd guess you don't have a recent-enough (or maybe too recent? I've not kept track of C++ changes) version of gcc installed. Since you're using anaconda, you can just install the pre-built version provided there by following the instructions at https://anaconda.org/conda-forge/gdal -- regards, kushal -- https://mail.python.org/mailman/listinfo/python-list