[gdal-dev] Python/SWIG Build Error

Andrew Bell andrew.bell.ia at gmail.com
Wed Jan 16 14:41:26 PST 2019


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 seems like a header file is missing in the swig configuration, but that
seems like something that others would have run into.

Any ideas appreciated,

-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190116/3a671803/attachment.html>


More information about the gdal-dev mailing list