[Rcpp-devel] Rcpp, Windows and CMake

Jamie Olson jamie.f.olson at gmail.com
Wed Jan 29 19:03:09 CET 2014


Thanks!

The WIN.readme.txt instructs you to run

cmake -G "Unix Makefiles" ..

It seems that the only cmake on windows that supports "Unix Makefiles"
is the cygwin version, and from what you've said it sounds like that
can't be used with the native MinGW required for Rcpp.

--Jamie


Jamie Olson


On Wed, Jan 29, 2014 at 12:08 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> On 29 January 2014 at 11:42, Jamie Olson wrote:
> | Three more things:
> |
> | 1) Is the WIN.readme.txt in examples/eigen/cmake incorrect, then?
>
> What part?
>
> Setting the CYGWIN env var is to just shut a noisy warning from Rtools
> off. It does not suggest you should use Cygwin.
>
> The rest seems correct to me.
>
> | 2)  The Rtools documentation specifies that the Rtools paths should
> | come BEFORE cygwin paths.  Is there a similar rule for MSys?
>
> MSys is not needed, it is just for you convenience. But yes, I place its part
> before Cygwin too.
>
> | 3) Should I continue to just used the MinGW installed with Rtools or
> | should I/can I use a fresh install of MinGW?
>
> As it stated repeatedly in several places, use the same compiler that R was
> built on for Windows to build your add-ons such as Rcpp or RInside code.
>
> If you know what you're doing you can swap other compilers.  One guys
> apparently happily plugged in a newer MinGW:
> http://stackoverflow.com/questions/21355022/how-to-use-rcpp-with-tdm-gcc-4-8-1/
> I would not recommend that you start there.
>
> Keep it simple. Follow the documentation. Things tend to work if you do.
> Once you know the ropes, do whatever :)
>
> Dirk
>
> --
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list