Il 8/8/2013 2:40 PM, Alasdhair Beaton ha scritto:
Hi All,

I'm trying to use the C HDF5 api in my application.

Have tried using the pre-compiled binary but I get compatibility issues
when compiling (using gcc) application.

which issue ?


/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld:
skipping incompatible
/home/hdf-winadmin/autotest/HDF518ATReleaseTAR/build/hdf5/lib/libhdf5_hl.a
when searching for -lhdf5_hl

/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld:
skipping incompatible
/home/hdf-winadmin/autotest/HDF518ATReleaseTAR/build/hdf5/lib/libhdf5.a
when searching for -lhdf5

/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld:
skipping incompatible
/home/hdf-winadmin/autotest/HDF518ATReleaseTAR/build/hdf5/lib/libsz.a
when searching for -lsz

libhdf5-devel was built with only shared lib

/usr/lib/libhdf5.dll.a
/usr/lib/libhdf5.settings
/usr/lib/libhdf5_cpp.dll.a
/usr/lib/libhdf5_hl.dll.a
/usr/lib/libhdf5_hl_cpp.dll.a



I'm now trying to compile from source. Had to remove the following from
h5ls.c because it was causing an error using make:

#elif defined(H5_HAVE_GETCONSOLESCREENBUFFERINFO)
     {
         /* Win32 C */
         CONSOLE_SCREEN_BUFFER_INFO scr;
         GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &scr);
         width = scr.srWindow.Right - scr.srWindow.Left + 1;
     }


H5_HAVE_GETCONSOLESCREENBUFFERINFO should be not defined.

Unfortunately the check for GetConsoleScreenBufferInfo
is a false positive on cygwin64.
http://cygwin.com/ml/cygwin-apps/2013-05/msg00049.html

I suppose you are using cmake, while I built the package using autoconf.
Attached patch for my case.

Make now finishes with no error codes, however make check always hangs at:
Testing  big.exe

This problem exist also in 32 bit.


I also note that in configure

checking if large (64-bit) files are supported on this system....
  takes a large duration followed by


skipping test for lseek64(), fseeko64 , ftello64, ftruncate64() because
off64_t is not defined"

as off_t is 64 bit.  off64_t is superflous


I hope that someone can please give me some help as I'm currently out of
ideas!



Cheers,

Alasdhair


--- origsrc/hdf5-1.8.11/configure.ac    2013-05-08 08:34:56.000000000 +0200
+++ src/hdf5-1.8.11/configure.ac        2013-05-18 22:57:11.985530700 +0200
@@ -2188,7 +2188,15 @@ AC_TRY_COMPILE([
 ## ----------------------------------------------------------------------
 ## How do we figure out the width of a tty in characters?
 ##
-AC_CHECK_FUNCS([_getvideoconfig gettextinfo GetConsoleScreenBufferInfo])
+AC_CHECK_FUNCS([_getvideoconfig gettextinfo])
+case "`uname`" in
+  CYGWIN*)
+    ;;
+  *)
+    AC_CHECK_FUNCS([GetConsoleScreenBufferInfo])
+    ;;
+esac
+
 AC_CHECK_FUNCS([_scrsize ioctl])
 
 AC_MSG_CHECKING([for struct videoconfig])
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

Reply via email to