<div dir="ltr">Hi Simon,<div>As far as I know CRAN provides all the libraries you listed except OpenCV (<a href="http://cran.r-project.org/bin/windows/contrib/ThirdPartySoftware.html">http://cran.r-project.org/bin/windows/contrib/ThirdPartySoftware.html</a>). 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.</div><div>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.</div><div><br></div><div>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.</div><div><br></div><div><br></div><div>Best,</div><div>Yixuan</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-09 3:38 GMT-04:00 Simon Barthelmé <span dir="ltr"><<a href="mailto:simon.barthelme@gipsa-lab.fr" target="_blank">simon.barthelme@gipsa-lab.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear list,<br>
<br>
I've been working on an image processing package for R (<a href="https://github.com/dahtah/imager" target="_blank">https://github.com/dahtah/imager</a>) that uses Rcpp to provide an interface to the CImg library.<br>
<br>
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.<br>
<br>
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.<br>
<br>
Best<br>
<br>
Simon Barthelme<br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Yixuan Qiu <<a href="mailto:yixuan.qiu@cos.name" target="_blank">yixuan.qiu@cos.name</a>><br>Department of Statistics,<br>Purdue University<br></div>
</div>