[R] Using packages built in linux in windows
Duncan Murdoch
murdoch.duncan at gmail.com
Wed Sep 1 18:01:06 CEST 2010
On 01/09/2010 11:51 AM, rajesh j wrote:
> I thought building a binary took care of that issue. How do I port a linux
> library to windows?
>
Building a binary package links the package to the library, but if the
library doesn't exist, there's nothing to link to.
Porting a Linux library to Windows just means getting it to compile on
Windows. It can be easy if the package is written to be portable, or
impossible if it depends on something in Linux that can't be simulated
on Windows; usually it is not easy but not impossible. I'd recommend
looking for ports by other people rather than trying it yourself if you
haven't done it before. Aim for ports using the same MinGW compiler
tools that R uses for the easiest route.
Duncan Murdoch
> On Wed, Sep 1, 2010 at 9:12 PM, Duncan Murdoch <murdoch.duncan at gmail.com>wrote:
>
> > On 01/09/2010 11:34 AM, rajesh j wrote:
> >
> >> This problem doesnt seem to have anything to do with Rcpp. I can't build
> >> it
> >> on windows because I'm using a library thats only available in linux. Isnt
> >> this a resolvable error?
> >>
> >>
> >
> > The resolution looks pretty obvious: port the library to Windows.
> >
> > Duncan Murdoch
> >
> > On Wed, Sep 1, 2010 at 9:07 PM, <romain at r-enthusiasts.com> wrote:
> >>
> >> > Hi,
> >> >
> >> > The proper venue for Rcpp related questions is the Rcpp-devel mailing
> >> list:
> >> > http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
> >> >
> >> > Of course you can build a package that uses Rcpp on windows, once all
> >> the
> >> > proper tools are installed, it is just the same as building it on any
> >> other
> >> > supported system :
> >> >
> >> > R CMD INSTALL wonderland
> >> >
> >> > Otherwise, you can use win-builder: http://win-builder.r-project.org/
> >> >
> >> > Romain
> >> >
> >> > Le 01/09/10 17:05, rajesh j a écrit :
> >> > >
> >> > > Hi,
> >> > >
> >> > > I built a package in linux and would like to use it in windows. I cant
> >> > build
> >> > > the package again in windows because it would miss the necessary
> >> > libraries
> >> > > etc(I'm using Rcpp). So I need to generate a binary version and try to
> >> > > install it in windows. I tried this and I get the error
> >> > >
> >> > > /cygdrive/RTools/bin/cp: target 'xf->>' is not a directory
> >> > >
> >> > > Can someone help me with this?
> >> >
> >> >
> >> >
> >> > --
> >> > Romain Francois
> >> > Professional R Enthusiast
> >> > +33(0) 6 28 91 30 30
> >> > http://romainfrancois.blog.free.fr
> >> > |- http://bit.ly/bzoWrs : Rcpp svn revision 2000
> >> > |- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th
> >> > `- http://bit.ly/aAyra4 : highlight 0.2-2
> >> >
> >> >
> >> >
> >>
> >>
> >> ------------------------------------------------------------------------
> >>
> >> ______________________________________________
> >> R-help at r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide
> >> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
> >>
> >>
> >
> >
>
>
>
More information about the R-help
mailing list