Pariksheet,
dynamic linking won't work, compile a static version with PIC enabled. If the
subproject is autoconf-compatible this means using --disable-shared --with-pic.
Then you only need to add libfoo.a to your PKG_LIBS.
Cheers,
Simon
> On Oct 19, 2021, at 4:13 PM, Pariksheet Nanda
>
Hi Simon and Vladimir,
>> On Oct 19, 2021, at 4:13 PM, Pariksheet Nanda
wrote:
>> The trouble is, R's installation process will only copy compiled
files from ./libs/ that have exactly the extension ".so" and files
ending with ".so.1" are ignored.
--snip--
>> library(tsshmm)
>> ...
>> Error:
The simplest thing to try is to compile the library statically and link it
into your package. No extra files - no trouble.
You can also try renaming the file from *.so.1 to *.so.
best
Vladimir Dergachev
__
R-package-devel@r-project.org mailing
Hi folks,
On 10/18/21 11:13 PM, Pariksheet Nanda wrote:
The trouble is, R's installation process will only copy compiled files
from ./libs/ that have exactly the extension ".so" and files ending with
".so.1" are ignored.
--snip--
So is there some mechanism to copy arbitrary files or
Hi folks,
My package [1] depends on a C library libghmm-dev that's available in
many GNU/Linux package managers. However, it's not available on all
platforms and if this dependency is not installed, my autoconf generated
configure script defaults to falling back to compiling and installing