I am trying to build gdal from source and use it with Python. It seems I can
build and install HDF5 with out problems. However, when build GDAL using the
--with-python flag I do get a few warnings that mostly look like this:
ld: warning: directory not found for option
'-L/Users/username/src/gdal-2.0.2/lib'
ld: warning: could not create compact unwind for _MEMCreateRasterBand: dwarf
uses DW_CFA_GNU_args_size
ld: warning: could not create compact unwind for
__ZN10MEMDataset7AddBandE12GDALDataTypePPc: dwarf uses DW_CFA_GNU_args_size
I get about 13 more warnings regarding DW_CFA_GNU_args_size.
I’m not sure if this is related. I can run gdal-config --formats and it does
show hdf5 as an available format. But once I try:
from osgeo import gdal
in Python, I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-2.0.2-py2.7-macosx-10.11-x86_64.egg/osgeo/__init__.py",
line 21, in <module>
_gdal = swig_import_helper()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-2.0.2-py2.7-macosx-10.11-x86_64.egg/osgeo/__init__.py",
line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-2.0.2-py2.7-macosx-10.11-x86_64.egg/osgeo/_gdal.so,
2): Symbol not found: _H5T_NATIVE_DOUBLE_g
Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-2.0.2-py2.7-macosx-10.11-x86_64.egg/osgeo/_gdal.so
Expected in: flat namespace
in
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-2.0.2-py2.7-macosx-10.11-x86_64.egg/osgeo/_gdal.so
Does anybody know what the problem could be? Thanks.
Jason
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev