From: Peter K. <pet...@wa...> - 2013-11-21 08:11:24
|
On 11/21/2013 02:07 AM, ryan scott wrote: > I have installed all dependencies for ccplot. However, when attempting to build ccplot before installation, I receive the following error message: > > "ccplot/hdf.c:317:10: fatal error: 'hntdefs.h' file not found > #include "hntdefs.h" > ^ > 1 error generated. > error: command 'clang' failed with exit status 1" > > I do, however, have the hdf4 library installed (via MacPorts), the following > > bash-3.2$ locate hntdefs.h > /opt/local/include/hntdefs.h > > shows that I do have this file. Could anyone please point me in the right direction? > > Any help is very much appreciated. Thanks, > > Ryan Dear Ryan, Sorry - I think this is a problem with ccplot rather than your configuration. It assumes that hdf is available under either /usr/include/hdf or /usr/local/include/hdf, which is a valid assumption on linux, but not on mac. For now, could you please just add the path to hdf_include_dirs in setup.py? - hdf_include_dirs = ['/usr/include/hdf', '/usr/local/include/hdf'] + hdf_include_dirs = ['/usr/include/hdf', '/usr/local/include/hdf', '/opt/local/include'] (line 24) Unfortunately, I don't have access to a mac system for testing now, so I would not find out. Hopefully, darwin will be good enough for this. I'll try to fix these issues soon. Thank you very much for reporting the problem. Regards, Peter |