[H5r-commits] r87 - / inst

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Aug 8 22:10:35 CEST 2012


Author: extemporaneousb
Date: 2012-08-08 22:10:34 +0200 (Wed, 08 Aug 2012)
New Revision: 87

Added:
   inst/CRAN_prepare_h5r.sh
Modified:
   INSTALL
Log:
Adding a note about the location of the binaries for Windows and a script to prepare the package for CRAN.



Modified: INSTALL
===================================================================
--- INSTALL	2012-08-07 17:52:52 UTC (rev 86)
+++ INSTALL	2012-08-08 20:10:34 UTC (rev 87)
@@ -1,11 +1,20 @@
 INSTALLATION INSTRUCTIONS FOR THE h5r R PACKAGE
 
-Currently, this package works and has been tested with hdf5-1.8.4 on
-Mac OSX and Linux. The package will most likely work on most POSIX
-systems where R works. Windows support should be forthcoming and
-anyone who has experience there and would like to help please contact
-me: jbullard at pacificbiosciences.com. 
+Currently, this package works and has been tested with >= hdf5-1.8.4
+(we build with 1.8.8) on Mac OSX, Linux, and Windows. The package will
+most likely work on most POSIX systems where R (>= 2.10) works. 
 
+The hdf group (http://www.hdfgroup.org) provides binaries for common
+platforms. Unfortunately, the binaries they provide for Windows
+platforms are not compatible with R because they are based on
+Microsoft's compiler. Therefore, we provide MinGw-based static
+libraries to compile against. It is non-trivial to get a functioning
+MinGW-based Windows binary. These binaries are available in the source
+download at R-forge under the 'windows' directory.
+
+Unix
+----
+
 To install, a working hdf5 installation must exist. This can be
 downloaded at: http://www.hdfgroup.org/downloads/index.html#hdf5
 
@@ -22,5 +31,19 @@
 $HDF5_HOME/libs, otherwise, at run-time, there will be no means to
 find the hdf5.so. 
 
+WINDOWS
+-------
+
+The easiest way to get a working Windows version is to download the
+pre-built version from CRAN. However, if a user wants to build from
+scratch then they should directly download from the source repostitory
+at: https://r-forge.r-project.org/projects/h5r/
+
+That download will have pre-built static hdf5 libraries. One can then
+just build using 'R CMD INSTALL h5r' 
+
+
+HELP
+----
 Please contact jbullard at pacificbiosciences.com if you have any
 questions.

Added: inst/CRAN_prepare_h5r.sh
===================================================================
--- inst/CRAN_prepare_h5r.sh	                        (rev 0)
+++ inst/CRAN_prepare_h5r.sh	2012-08-08 20:10:34 UTC (rev 87)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+SOURCE=h5r
+TARGET=scratch/h5r-CRAN
+
+rm -rf $TARGET
+rsync -av $SOURCE/ $TARGET/
+
+# instructions from Uwe. 
+# 1. remove the windows directory
+rm -rf $TARGET/windows
+
+# 2. remove configure.win and cleanup.win
+rm -f $TARGET/configure.win
+rm -f $TARGET/cleanup.win
+rm -f $TARGET/src/Makevars.win
+rm -f $TARGET/inst/CRAN_*
+
+# 3. make Makevars.win
+echo 'PKG_CFLAGS = -I$(LIB_HDF5)$(R_ARCH)/include -DWINDOWS' > $TARGET/src/Makevars.win
+echo 'PKG_LIBS = -lm -L$(LIB_HDF5)$(R_ARCH)/lib -lhdf5 -lsz -lz' >> $TARGET/src/Makevars.win
+
+# 4. build
+R CMD build $TARGET
+
+# 5. check
+R CMD check --as-cran --timings --install-args="--no-lock --preclean" `ls h5r_*tar.gz`


Property changes on: inst/CRAN_prepare_h5r.sh
___________________________________________________________________
Added: svn:executable
   + *



More information about the H5r-commits mailing list