[Rcpp-devel] Rcpp, Windows and CMake

Dirk Eddelbuettel edd at debian.org
Wed Jan 29 21:13:02 CET 2014


On 29 January 2014 at 15:07, Jamie Olson wrote:
| I'm trying to build the Avro-C
| library[http://avro.apache.org/docs/1.7.5/api/c/index.html].  There is
| a README for building in
| windows[http://svn.apache.org/repos/asf/avro/trunk/lang/c/README.maintaining_win32.txt]
| but it only has instructions for Visual Studio.  I've recently been
| wondering if that was intentional, since now cmake-generated MSYS
| Makefiles are giving errors.
| 
| Are you suggesting that I build the library with MinGW(in
| cygwin/linux?) and then just copy it to link to when building the
| package with Rcpp?

In a nutshell, yes.  

If you want to / need to package Avro as a library it may be trickier. At a
first pass try to build a static library, then link your Rcpp package to that. 

Dirk

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


More information about the Rcpp-devel mailing list