[Bioc-devel] GSL on Windows

Dan Tenenbaum dtenenba at fredhutch.org
Sat Nov 19 01:49:46 CET 2016


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 -----
> 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



More information about the Bioc-devel mailing list