Skip to content
Prev 10021 / 10988 Next

[Rcpp-devel] Getting different build commands on Linux vs. Mac OS

Hi Dirk

I appreciate the help.
root to make a library a system library -- and R CMD ... does not have that.

I think I was able to sidestep this.

After installing bamdb without 'sudo make install'/root privileges, I was
able to hack the Makevars to install bambi on Linux

```
CXX_STD = CXX11

PKG_CPPFLAGS += -I../inst/include/
PKG_LIBS= -lhts -L/nfs/sw/htslib/htslib-1.7 -llmdb -L/usr/local/lib -lbamdb
-L/blah/blah/bamdb/build
```

Given the R package structure, I was thinking it would be possible to link
to the C library (not installed with 'sudo make install') via the `-L`
flag, maybe `-L/something/src/bamdb/build`

If this would work, the unsolved problem would be using the Makevars to
accomplish the `cmake .. && make` step....

Does this sound crazy?
On Thu, May 3, 2018 at 6:38 PM, Dirk Eddelbuettel <edd at debian.org> wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20180503/a17f505e/attachment.html>