Subject: | libhdf5 is not detected on cygwin |
The PDL::IO::HDF5 Makefile.PL fails to detect an installed libhdf5 on
cygwin because the library is named libhdf5.dll.a and not either
libhdf5.a or libhdf5.so. Commenting out all the detection and
hardwiring in the -lhdf5 for the library allows the module to build.
For the PDL distribution, I am working to standardize external
library and include file detection using the Devel::CheckLib module.
The approach is to test compile, link, and run test codes using the
candidate library and include paths and library link arguments.
This avoids the problem of knowing how all the types of libraries
are implemented as files on each platform---the compiler and
linker take care of that.
cygwin because the library is named libhdf5.dll.a and not either
libhdf5.a or libhdf5.so. Commenting out all the detection and
hardwiring in the -lhdf5 for the library allows the module to build.
For the PDL distribution, I am working to standardize external
library and include file detection using the Devel::CheckLib module.
The approach is to test compile, link, and run test codes using the
candidate library and include paths and library link arguments.
This avoids the problem of knowing how all the types of libraries
are implemented as files on each platform---the compiler and
linker take care of that.