Hi Yixuan

That's very interesting, I didn't know Cairo used that trick. I'll look into it, many thanks!

Simon

Le 09/06/2015 10:28, Yixuan Qiu a écrit :
Hi Simon,
As far as I know CRAN provides all the libraries you listed except OpenCV (http://cran.r-project.org/bin/windows/contrib/ThirdPartySoftware.html). If you intend to publish your package to CRAN and let CRAN build the Windows version, I suppose you can directly make use of those libraries. For OpenCV, you can write a script to download the headers and pre-compiled library in installation. An example is the configure.win file in Cairo package.

Of course, the suggestion above is for building a Windows package with full external dependency support. I have no good idea how to test the existence of libraries on Windows anyway.


Best,
Yixuan

2015-06-09 3:38 GMT-04:00 Simon Barthelmé <simon.barthe...@gipsa-lab.fr <mailto:simon.barthe...@gipsa-lab.fr>>:

    Dear list,

    I've been working on an image processing package for R
    (https://github.com/dahtah/imager) that uses Rcpp to provide an
    interface to the CImg library.

    Cimg is contained in just one header file, which makes it easy to
    ship with an R package. It is relatively self-contained, but some
    functionality requires external dependencies, such as libpng,
    libjpeg, libfftw3 and opencv. These additional modules can be
    included at compile time via a #define statement, but of course
    the right headers and libraries need to be present.

    I'm trying to find a way to provide the additional functionality
    without forcing the user to install these dependencies. On
    Linux/Mac a possible way to do that would be to use autoconf, but
    from what I read Windows support is going to be headache. Does
    anyone have advice on alternatives? Much appreciated.

    Best

    Simon Barthelme
    _______________________________________________
    Rcpp-devel mailing list
    Rcpp-devel@lists.r-forge.r-project.org
    <mailto:Rcpp-devel@lists.r-forge.r-project.org>
    https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel




--
Yixuan Qiu <yixuan....@cos.name <mailto:yixuan....@cos.name>>
Department of Statistics,
Purdue University

_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to