[gdal-dev] Installation error messages on Mac OS 10.10.5 Yosemite

Even Rouault even.rouault at spatialys.com
Mon Sep 28 07:55:31 PDT 2015


Le lundi 28 septembre 2015 16:21:16, Phillips-Alonge, Kristin Eileen a écrit :
> Hello,
> 
> I am trying to install GDAL-2.0.1 on a Mac OS 10.10.5 and received some
> error messages.  I modified setup.cfg to point to the location of
> gdal_config after installing the gdal library (1.11.2_3) with homebrew.

That cannot work. If you use the GDAL 2.0.1 python bindings, you must build 
them on top of the GDAL 2.0.1 library, not on top of an older version.

> 
> These are some of the error messages I’m getting when I type “python
> setup.py build” in the distribution directory of GDAL-2.0.1.  Any ideas of
> what I can do to resolve this?  I do not have easy_install for Python and
> was not able to install pip for the installation of packages because I use
> a proxy server and have a password containing ‘#' which cuts off the rest
> of the password from being read.
> 
> 
> warning: unknown warning option
> 
>       '-Werror=unused-command-line-argument-hard-error-in-future'; did you
> mean
> 
>       '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
> 
> warning: unknown warning option
> 
>       '-Werror=unused-command-line-argument-hard-error-in-future'; did you
> mean
> 
>       '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
> 
> extensions/gdal_wrap.cpp:2230:11: warning: explicitly assigning value of
> 
>       variable of type 'int' to itself [-Wself-assign]
> 
>                     res = SWIG_AddCast(res);
> 
>                     ~~~ ^              ~~~
> 
> extensions/gdal_wrap.cpp:2233:11: warning: explicitly assigning value of
> 
>       variable of type 'int' to itself [-Wself-assign]
> 
>                     res = SWIG_AddCast(res);
> 
>                     ~~~ ^              ~~~
> 
> extensions/gdal_wrap.cpp:4265:47: error: use of undeclared identifier
> 
>       'GDALDatasetCreateLayer'; did you mean
> 'GDALDatasetShadow_CreateLayer'?
> 
>     OGRLayerShadow* layer = (OGRLayerShadow*) GDALDatasetCreateLayer( self,
> 
>                                               ^~~~~~~~~~~~~~~~~~~~~~
> 
>                                               GDALDatasetShadow_CreateLayer
> 
> extensions/gdal_wrap.cpp:4264:28: note: 'GDALDatasetShadow_CreateLayer'
> declared
> 
>       here
> 
> SWIGINTERN OGRLayerShadow *GDALDatasetShadow_CreateLayer(GDALDatasetShad...
> 
>                            ^
> 
> extensions/gdal_wrap.cpp:4273:47: error: use of undeclared identifier
> 
>       'GDALDatasetCopyLayer'
> 
>     OGRLayerShadow* layer = (OGRLayerShadow*) GDALDatasetCopyLayer( self,
> 
>                                               ^
> 
> extensions/gdal_wrap.cpp:4280:12: error: use of undeclared identifier
> 
>       'GDALDatasetDeleteLayer'; did you mean
> 'GDALDatasetShadow_DeleteLayer'?
> 
>     return GDALDatasetDeleteLayer(self, index);
> 
>            ^~~~~~~~~~~~~~~~~~~~~~
> 
>            GDALDatasetShadow_DeleteLayer
> 
> extensions/gdal_wrap.cpp:4279:19: note: 'GDALDatasetShadow_DeleteLayer'
> declared
> 
>       here
> 
> SWIGINTERN OGRErr GDALDatasetShadow_DeleteLayer(GDALDatasetShadow *self,...
> 
>                   ^
> 
> extensions/gdal_wrap.cpp:4306:8: error: use of undeclared identifier
> 
>       'OGRERR_NON_EXISTING_FEATURE'
> 
>   case OGRERR_NON_EXISTING_FEATURE:
> 
>        ^
> 
> extensions/gdal_wrap.cpp:4314:12: error: use of undeclared identifier
> 
>       'GDALDatasetGetLayerCount'; did you mean
> 
>       'GDALDatasetShadow_GetLayerCount'?
> 
>     return GDALDatasetGetLayerCount(self);
> 
>            ^~~~~~~~~~~~~~~~~~~~~~~~
> 
>            GDALDatasetShadow_GetLayerCount
> 
> extensions/gdal_wrap.cpp:4313:16: note: 'GDALDatasetShadow_GetLayerCount'
> 
>       declared here
> 
> SWIGINTERN int GDALDatasetShadow_GetLayerCount(GDALDatasetShadow *self){
> 
>                ^
> 
> extensions/gdal_wrap.cpp:4318:47: error: use of undeclared identifier
> 
>       'GDALDatasetGetLayer'
> 
>     OGRLayerShadow* layer = (OGRLayerShadow*) GDALDatasetGetLayer(self,
> index);
> 
>                                               ^
> 
> extensions/gdal_wrap.cpp:4322:47: error: use of undeclared identifier
> 
>       'GDALDatasetGetLayerByName'; did you mean
> 
>       'GDALDatasetShadow_GetLayerByName'?
> 
>   ...layer = (OGRLayerShadow*) GDALDatasetGetLayerByName(self, layer_name);
> 
>                                ^~~~~~~~~~~~~~~~~~~~~~~~~
> 
>                                GDALDatasetShadow_GetLayerByName
> 
> extensions/gdal_wrap.cpp:4321:28: note: 'GDALDatasetShadow_GetLayerByName'
> 
>       declared here
> 
> SWIGINTERN OGRLayerShadow *GDALDatasetShadow_GetLayerByName(GDALDatasetS...
> 
>                            ^
> 
> extensions/gdal_wrap.cpp:4326:13: error: use of undeclared identifier
> 
>       'GDALDatasetTestCapability'; did you mean
> 
>       'GDALDatasetShadow_TestCapability'?
> 
>     return (GDALDatasetTestCapability(self, cap) > 0);
> 
>             ^~~~~~~~~~~~~~~~~~~~~~~~~
> 
>             GDALDatasetShadow_TestCapability
> 
> extensions/gdal_wrap.cpp:4325:17: note: 'GDALDatasetShadow_TestCapability'
> 
>       declared here
> 
> SWIGINTERN bool GDALDatasetShadow_TestCapability(GDALDatasetShadow *self...
> 
>                 ^
> 
> extensions/gdal_wrap.cpp:4336:47: error: use of undeclared identifier
> 
>       'GDALDatasetExecuteSQL'; did you mean 'GDALDatasetShadow_ExecuteSQL'?
> 
>     OGRLayerShadow* layer = (OGRLayerShadow*) GDALDatasetExecuteSQL(self,
> 
>                                               ^~~~~~~~~~~~~~~~~~~~~
> 
>                                               GDALDatasetShadow_ExecuteSQL
> 
> extensions/gdal_wrap.cpp:4335:28: note: 'GDALDatasetShadow_ExecuteSQL'
> declared
> 
>       here
> 
> SWIGINTERN OGRLayerShadow *GDALDatasetShadow_ExecuteSQL(GDALDatasetShado...
> 
>                            ^
> 
> extensions/gdal_wrap.cpp:4343:5: error: use of undeclared identifier
> 
>       'GDALDatasetReleaseResultSet'; did you mean
> 
>       'GDALDatasetShadow_ReleaseResultSet'?
> 
>     GDALDatasetReleaseResultSet(self, layer);
> 
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
>     GDALDatasetShadow_ReleaseResultSet
> 
> extensions/gdal_wrap.cpp:4342:17: note:
> 'GDALDatasetShadow_ReleaseResultSet'
> 
>       declared here
> 
> SWIGINTERN void GDALDatasetShadow_ReleaseResultSet(GDALDatasetShadow *se...
> 
>                 ^
> 
> extensions/gdal_wrap.cpp:4346:35: error: use of undeclared identifier
> 
>       'GDALDatasetGetStyleTable'; did you mean
> 
>       'GDALDatasetShadow_GetStyleTable'?
> 
>     return (OGRStyleTableShadow*) GDALDatasetGetStyleTable(self);
> 
>                                   ^~~~~~~~~~~~~~~~~~~~~~~~
> 
>                                   GDALDatasetShadow_GetStyleTable
> 
> extensions/gdal_wrap.cpp:4345:33: note: 'GDALDatasetShadow_GetStyleTable'
> 
>       declared here
> 
> SWIGINTERN OGRStyleTableShadow *GDALDatasetShadow_GetStyleTable(GDALData...
> 
>                                 ^
> 
> extensions/gdal_wrap.cpp:4350:9: error: use of undeclared identifier
> 
>       'GDALDatasetSetStyleTable'; did you mean
> 
>       'GDALDatasetShadow_SetStyleTable'?
> 
>         GDALDatasetSetStyleTable(self, (OGRStyleTableH) table);
> 
>         ^~~~~~~~~~~~~~~~~~~~~~~~
> 
>         GDALDatasetShadow_SetStyleTable
> 
> extensions/gdal_wrap.cpp:4348:17: note: 'GDALDatasetShadow_SetStyleTable'
> 
>       declared here
> 
> SWIGINTERN void GDALDatasetShadow_SetStyleTable(GDALDatasetShadow *self,...
> 
>                 ^
> 
> extensions/gdal_wrap.cpp:4350:40: error: cannot initialize a parameter of
> type
> 
>       'OGRStyleTableShadow *' (aka 'OGRStyleTableHS *') with an rvalue of
> type
> 
>       'OGRStyleTableH' (aka 'void *')
> 
>         GDALDatasetSetStyleTable(self, (OGRStyleTableH) table);
> 
>                                        ^~~~~~~~~~~~~~~~~~~~~~
> 
> extensions/gdal_wrap.cpp:4348:94: note: passing argument to parameter
> 'table'
> 
>       here
> 
>   ...*self,OGRStyleTableShadow *table){
> 
>                                 ^
> 
> extensions/gdal_wrap.cpp:4353:12: error: use of undeclared identifier
> 
>       'GDALDatasetStartTransaction'; did you mean
> 
>       'GDALDatasetShadow_StartTransaction'?
> 
>     return GDALDatasetStartTransaction(self, force);
> 
>            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
>            GDALDatasetShadow_StartTransaction
> 
> extensions/gdal_wrap.cpp:4352:19: note:
> 'GDALDatasetShadow_StartTransaction'
> 
>       declared here
> 
> SWIGINTERN OGRErr GDALDatasetShadow_StartTransaction(GDALDatasetShadow *...
> 
>                   ^
> 
> extensions/gdal_wrap.cpp:4356:12: error: use of undeclared identifier
> 
>       'GDALDatasetCommitTransaction'; did you mean
> 
>       'GDALDatasetShadow_CommitTransaction'?
> 
>     return GDALDatasetCommitTransaction(self);
> 
>            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
>            GDALDatasetShadow_CommitTransaction
> 
> extensions/gdal_wrap.cpp:4355:19: note:
> 'GDALDatasetShadow_CommitTransaction'
> 
>       declared here
> 
> SWIGINTERN OGRErr GDALDatasetShadow_CommitTransaction(GDALDatasetShadow
> *self){
> 
>                   ^
> 
> extensions/gdal_wrap.cpp:4359:12: error: use of undeclared identifier
> 
>       'GDALDatasetRollbackTransaction'; did you mean
> 
>       'GDALDatasetShadow_RollbackTransaction'?
> 
>     return GDALDatasetRollbackTransaction(self);
> 
>            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
>            GDALDatasetShadow_RollbackTransaction
> 
> extensions/gdal_wrap.cpp:4358:19: note:
> 'GDALDatasetShadow_RollbackTransaction'
> 
>       declared here
> 
> SWIGINTERN OGRErr GDALDatasetShadow_RollbackTransaction(GDALDatasetShado...
> 
>                   ^
> 
> extensions/gdal_wrap.cpp:4361:294: error: unknown type name
> 
>       'GDALRIOResampleAlg'; did you mean 'GDALResampleAlg'?
> 
>   ...*buf_line_space=0,GIntBig *buf_band_space=0,GDALRIOResampleAlg
> resample_...
> 
>                                                  ^~~~~~~~~~~~~~~~~~
> 
>                                                  GDALResampleAlg
> 
> /usr/local/Cellar/gdal/1.11.2_3/include/gdalwarper.h:56:3: note:
> 
>       'GDALResampleAlg' declared here
> 
> } GDALResampleAlg;
> 
>   ^
> 
> extensions/gdal_wrap.cpp:4361:326: error: use of undeclared identifier
> 
>       'GRIORA_NearestNeighbour'; did you mean 'GRA_NearestNeighbour'?
> 
>   ...resample_alg=GRIORA_NearestNeighbour,GDALProgressFunc
> callback=NULL,voi...
> 
>                   ^~~~~~~~~~~~~~~~~~~~~~~
> 
>                   GRA_NearestNeighbour
> 
> /usr/local/Cellar/gdal/1.11.2_3/include/gdalwarper.h:49:56: note:
> 
>       'GRA_NearestNeighbour' declared here
> 
>   /*! Nearest neighbour (select on one input pixel) */
> GRA_NearestNeighbour=0,
> 
>                                                        ^
> 
> extensions/gdal_wrap.cpp:4425:5: error: unknown type name
> 'GDALRasterIOExtraArg'
> 
>     GDALRasterIOExtraArg sExtraArg;
> 
>     ^
> 
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 
> 4 warnings and 20 errors generated.
> 
> error: command '/usr/bin/clang' failed with exit status 1

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list