Skip to content

[Bioc-devel] GSL on Windows

2 messages · Dan Tenenbaum, Dong Li

#
You need to make sure both i386 and x64 versions of GSL are installed under c:\GnuWin32, for a directory structure like this:

c:\GnuWin32\i386
c:\GnuWin32\x64

(Also I would recommend using a more descriptive name than c:\GnuWin32, perhaps call it c:\GSL?)

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.

Dan


----- Original Message -----
1 day later
#
Thanks for all replies. Now it works.

I did not choose RcppGSL package because transforming arrays into
RcppGSL objects
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.

https://code.google.com/archive/p/oscats/downloads

As Dan pointed out, build two directories:

C
:\GSL\i386
C:\GSL\x64

and set the
?
environment variable `LIB_GSL` as  `
C
:/GSL` instead of `
C
:\GSL`. And add C:\GSL\x64\bin to the Path in case missing the DLLs.


Best regards,

Dong
On 19 November 2016 at 00:49, Dan Tenenbaum <dtenenba at fredhutch.org> wrote: