[gdal-dev] Python/SWIG Build Error

Andrew Bell andrew.bell.ia at gmail.com
Wed Jan 16 15:47:32 PST 2019


Seems strange that configure would place other directories before the
location for the current source tree. Is this by design? Is there a way to
change the behavior?

On Wed, Jan 16, 2019, 6:22 PM Even Rouault <even.rouault at spatialys.com
wrote:

> On mercredi 16 janvier 2019 17:41:26 CET Andrew Bell wrote:
> > I'm trying to build GDAL master branch with the python wrappers and I'm
> > getting an error on OSX with clang:
> >
> > --------------------
> >
> > creating build/temp.macosx-10.7-x86_64-3.6
> > creating build/temp.macosx-10.7-x86_64-3.6/extensions
> > gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g
> > -fwrapv -O3 -Wall -Wstrict-prototypes
> > -I/Users/acbell/miniconda2/envs/pdal/include
> > -I/Users/acbell/miniconda2/envs/pdal/include
> > -Wno-error=unused-command-line-argument-hard-error-in-future
> > -Wno-error=unused-command-line-argument-hard-error-in-future -I../../port
> > -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts
> -I../../gnm
> > -I../../apps -I/Users/acbell/miniconda2/envs/pdal/include/python3.6m
> >
> -I/Users/acbell/miniconda2/envs/pdal/lib/python3.6/site-packages/numpy/core/
> > include -I/Users/acbell/gdal/gdal/include -c extensions/gdal_wrap.cpp -o
> > build/temp.macosx-10.7-x86_64-3.6/extensions/gdal_wrap.o -std=c++11
> > -I/Users/acbell/gdal/gdal/port -I/Users/acbell/gdal/gdal/gcore
> > -I/Users/acbell/gdal/gdal/alg -I/Users/acbell/gdal/gdal/ogr
> > -I/Users/acbell/gdal/gdal/ogr/ogrsf_frmts
> > -I/Users/acbell/gdal/gdal/frmts/vrt -I/Users/acbell/gdal/gdal/apps
> >
> > extensions/gdal_wrap.cpp:4087:1: error: unknown type name 'VSIDIR'
> > VSIDIR* wrapper_VSIOpenDir( const char * utf8_path,
> > ^
> > extensions/gdal_wrap.cpp:4091:12: error: use of undeclared identifier
> >       'VSIOpenDir'
> >     return VSIOpenDir(utf8_path, nRecurseDepth, options);
> >            ^
> > extensions/gdal_wrap.cpp:4135:38: error: unknown type name 'VSIDIR'
> > DirEntry* wrapper_VSIGetNextDirEntry(VSIDIR* dir)
> >                                      ^
> > extensions/gdal_wrap.cpp:4137:11: error: unknown type name 'VSIDIREntry'
> >     const VSIDIREntry* vsiEntry = VSIGetNextDirEntry(dir);
>
> It smells like you'd have cpl_xxxx.h files from older GDAL versions in
> your
> include paths.
> /Users/acbell/miniconda2/envs/pdal/include might be a candidate for
> examination.
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190116/4c767392/attachment.html>


More information about the gdal-dev mailing list