[Rcpp-devel] libRInside.a and "base package"

Dirk Eddelbuettel edd at debian.org
Sun Sep 2 16:09:47 CEST 2012


Dan,

Trying to help here but I'm not a windows user...

On 2 September 2012 at 05:46, Dan Murphy wrote:
| I am still trying to debug my Windows setup and I have a couple of questions.
| 
| 1. In my download of the RInside package, I see the libRInside.a
| library in the ~\RInside\lib\i386 folder which is found when I set

Confirmed. I would have to look into the build recipe of why we only have one
static library.

| R_ARCH := --arch i386 in Makefile.win. However, there is no
| corresponding x64 folder, so when I set R_ARCH := x64 the RCPPLIBS
| variable gets the string "/libRInside.a". Could that be the reason the
| samples do not make? Here is the error displayed at the console:

Last time I was working on / overhauling / windows, I did use 32 and 64 bit
and it just worked.  That said, right now I am at home where I only have a
puny virtual win32 instance.

Now, as I recall, both 'just worked'.
 
| g++ -m64 -IC:/R/R-2.15.1/include -IC:/R/R-2.15.1/include/x64 -IC:/R/R-2.15.1/lib
| rary/Rcpp/include -IC:/R/R-2.15.1/library/RInside/include -O2 -Wall -mtune=core2
|  -Wall  -s  rinside_callbacks0.cpp  -LC:/R/R-2.15.1/bin/x64 -lR -LC:/R/R-2.15.1/
| bin/x64 -lRblas -LC:/R/R-2.15.1/bin/x64 -lRlapack "/libRInside.a" C:/R/R-2.15.1/
| library/Rcpp/lib/x64/libRcpp.a -o rinside_callbacks0
| g++.exe: error: /libRInside.a: No such file or directory
| make: *** [rinside_callbacks0] Error 1
| 
| 2. With --arch i386, Makefile.win compiles all the samples in
| examples\standard without error. As instructed, I copied all the dll
| files from C:\R\R-2.15.1\bin\i386 to
| C:\R\R-2.15.1\library\RInside\examples\standard. (I've done this
| multiple times now.) When I run rinside_sample0 I get the error "Fatal
| error: unable to open the base package". To help debug this, can you
| tell me if this error is generated by RInside or Rcpp?

I have seen that one before, it should not happen, but I believe it to be an
incomplete "setup". I may have been able to overcome this by defining RHOME.

I just tried on the small, slow virtual instance, and I got linking errors
with the i386 version of libRInside.a.  Sorry.

I'll try to have a look next week at work on the more powerful win7 / 64bit desktop.
In the meantime, maybe someone else can walk you through basic steps...

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list