<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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 <font face="Courier" class="">--with-python</font> flag I do get a few warnings that mostly look like this:<div class=""><br class=""></div><div class=""><font face="Courier" class="">ld: warning: directory not found for option '-L/Users/username/src/gdal-2.0.2/lib'<br class="">ld: warning: could not create compact unwind for _MEMCreateRasterBand: dwarf uses DW_CFA_GNU_args_size<br class="">ld: warning: could not create compact unwind for __ZN10MEMDataset7AddBandE12GDALDataTypePPc: dwarf uses DW_CFA_GNU_args_size</font></div><div class=""><br class=""></div><div class="">I get about 13 more warnings regarding <span style="font-family: Courier;" class="">DW_CFA_GNU_args_size</span>.</div><div class=""><br class=""></div><div class="">I’m not sure if this is related. I can run <font face="Courier" class="">gdal-config --formats</font> and it does show hdf5 as an available format. But once I try:</div><div class=""><br class=""></div><div class=""><font face="Courier" class="">from osgeo import gdal </font></div><div class=""><br class=""></div><div class="">in Python, I get the following error:</div><div class=""><br class=""></div><div class=""><font face="Courier" class="">Traceback (most recent call last):<br class="">  File "<stdin>", line 1, in <module><br class="">  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><br class="">    _gdal = swig_import_helper()<br class="">  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<br class="">    _mod = imp.load_module('_gdal', fp, pathname, description)<br class="">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<br class="">  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<br class="">  Expected in: flat namespace<br class=""> 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</font></div><div class=""><br class=""></div><div class="">Does anybody know what the problem could be? Thanks.</div><div class=""><br class=""></div><div class="">Jason</div><div class=""><br class=""></div></body></html>