On Mon, Jun 5, 2017 at 1:13 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
On 5 June 2017 at 00:51, Konstantin Sorokin wrote:
| This third party component is a compression library for which my
| provides bindings and I need to build this library first. Look at the
lines
| starting from
| https://github.com/thekvs/zstdr/blob/8ea428b33d986667494d940c66732d
bbc66871b3/configure.ac#L34
The common paradigm is to first build below src/, and to then link via
src/Makevars to the static library you just built.
I don't have a real go-to example of a package that does this but you
look into the BioConductor package RGBL (which builds Boost Graph first)
and/or the nloptr package (which, if need be, downloads nlopt and builds
it;
my contribution there was the other part of finding / using a libnlopt if
on
the system).
Thanks, Dirk, I'll look at nloptr package more closely.
I wondered about this when CRANberries told me about your package. I
you can't assume the Zstandard library to be present? Maybe one day the
hybrid approach of nloptr may work for you.
zstandard is a young project and I think it is a bit to early to assume
that zstandard library be present in the system. For example on my Ubuntu
16.04 (LTS) I have libzstd0/xenial 0.5.1-1 but the latest stable release
has version 1.2.
Btw, what about installing cmake on OSX and Solaris in CRAN build farm? Now
it is such a ubiquitous and widely used program!
--
Konstantin Sorokin
[[alternative HTML version deleted]]