[Bioc-devel] GSL on Windows
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:
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