[Bioc-devel] GSL on Windows
donggeat at gmail.com
Sun Nov 20 16:23:10 CET 2016
Thanks for all replies. Now it works.
I did not choose RcppGSL package because transforming arrays into
would cause additional overhead. Although it is much easier to use
packages. I compared both under Linux and pure C runs faster.
On Windows I found the useful resources for GSL Windows DLL and headers for
both 32 and 64-bit.
As Dan pointed out, build two directories:
and set the
environment variable `LIB_GSL` as `
:/GSL` instead of `
:\GSL`. And add C:\GSL\x64\bin to the Path in case missing the DLLs.
On 19 November 2016 at 00:49, Dan Tenenbaum <dtenenba at fredhutch.org> wrote:
> You need to make sure both i386 and x64 versions of GSL are installed
> under c:\GnuWin32, for a directory structure like this:
> (Also I would recommend using a more descriptive name than c:\GnuWin32,
> perhaps call it
> And then notice how the DirichletMultinomial Makevars.win references
> R_ARCH, will will have the value of 'i386' when building the 32-bit DLL of
> your package, and 'x64' when building the 64-bit DLL.
> ----- Original Message -----
> > From: "Dong Li" <dxl466 at cs.bham.ac.uk>
> > To: "bioc-devel" <bioc-devel at r-project.org>
> > Sent: Friday, November 18, 2016 10:08:56 AM
> > Subject: [Bioc-devel] GSL on Windows
> > Hi
> > Sorry about previous post on support.bioconductor.org.
> > I am trying to use GSL on Windows to build my package. And I use
> > src/Makevars.win as Martin's package
> > https://github.com/Bioconductor-mirror/DirichletMultinomial.
> > PKG_LIBS += -L$(LIB_GSL)/lib -lgsl -lgslcblas
> > PKG_CPPFLAGS += -I$(RHOME)/src/include -I$(LIB_GSL)/include
> > I set an
> environment variable `LIB_GSL` as `C:\GnuWin32` since I
> > download http://gnuwin32.sourceforge.net/packages/gsl.htm and installed
> > it to that default location. Compilation seems fine but got the
> > following error:
> > Error in inDL(x, as.logical(local), as.logical(now), ...) :
> > unable to load shared object
> > 'D:/Soft/Rlibrary/AMOUNTAIN/libs/x64/AMOUNTAIN.dll':
> > LoadLibrary failure: %1 is not a valid Win32 application
> > Any suggestions? Thanks.
> > --
> > Best regards,
> > Dong
> > _______________________________________________
> > Bioc-devel at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/bioc-devel
[[alternative HTML version deleted]]
More information about the Bioc-devel