[Rcpp-devel] Using Rcpp with <nloptrApi.h> results in "shared object 'nloptC.so' not found"

Simon Zehnder simon.zehnder at googlemail.com
Wed Aug 18 19:27:56 CEST 2021


Hi Dirk,

thanks for the quick reply. Running the RcppNLoptExample ran also on my
side, however running my code from the repo resulted in an error. I was so
used to having a complicated setup when using nlopt in my C++ code from
before that In over-complicated things.

Thanks for pushing me towards the solution.

Best
Simon

Am Mi., 18. Aug. 2021 um 17:18 Uhr schrieb Dirk Eddelbuettel <edd at debian.org
>:

>
> On 18 August 2021 at 16:36, Simon Zehnder wrote:
> | I am using R 4.0.5 on a Fedora 34 System, Rcpp 1.0.6 and nloptr 1.2.2.2.
>
> Works here (Ubuntu 21.04, Rcpp 1.0.7) (see [1] below)
>
> Works at CRAN (see [2] below)
>
> Works at universe (see [3] below)
>
> I would suspect the error is at your end.
>
> Dirk
>
> [1] Running via rcc.r from littler wrapping rcmdcheck
>
> edd at rob:~/git/rcppnloptexample(master)$ rcc.r
> RcppNLoptExample_0.1.0.tar.gz
> ── R CMD check
> ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> ─  using log directory ‘/tmp/file2b4b7523aee48f/RcppNLoptExample.Rcheck’
> ─  using R version 4.1.1 (2021-08-10)
>
> ─  using platform: x86_64-pc-linux-gnu (64-bit)
> ─  using session charset: UTF-8
> ✔  checking for file ‘RcppNLoptExample/DESCRIPTION’ ...
> ─  checking extension type ... Package
> ─  this is package ‘RcppNLoptExample’ version ‘0.1.0’
> ─  package encoding: UTF-8
> ✔  checking package namespace information ...
> ✔  checking package dependencies (803ms)
> ✔  checking package namespace information ...
> ✔  checking package dependencies (803ms)
> ✔  checking if this is a source package
> ✔  checking if there is a namespace
> ✔  checking for executable files ...
> ✔  checking for hidden files and directories
> ✔  checking for portable file names
> ✔  checking for sufficient/correct file permissions
> ✔  checking whether package ‘RcppNLoptExample’ can be installed (6.3s)
> ✔  checking installed package size ...
> ✔  checking package directory
> ✔  checking DESCRIPTION meta-information ...
> ✔  checking top-level files
> ✔  checking for left-over files
> ✔  checking index information
> ✔  checking package subdirectories ...
> ✔  checking R files for non-ASCII characters ...
> ✔  checking R files for syntax errors ...
> ✔  checking whether the package can be loaded ...
> ✔  checking whether the package can be loaded with stated dependencies ...
> ✔  checking whether the package can be unloaded cleanly ...
> ✔  checking whether the namespace can be loaded with stated dependencies
> ...
> ✔  checking whether the namespace can be unloaded cleanly ...
> ✔  checking loading without being on the library search path ...
> ✔  checking dependencies in R code ...
> ✔  checking S3 generic/method consistency (430ms)
> ✔  checking replacement functions ...
> ✔  checking foreign function calls ...
> ✔  checking R code for possible problems (931ms)
> ✔  checking Rd files ...
> ✔  checking Rd metadata ...
> ✔  checking Rd cross-references ...
> ✔  checking for missing documentation entries ...
> ✔  checking for code/documentation mismatches (679ms)
> ✔  checking Rd \usage sections (549ms)
> ✔  checking Rd contents ...
> ✔  checking for unstated dependencies in examples ...
> ✔  checking line endings in C/C++/Fortran sources/headers
> ✔  checking line endings in Makefiles
> ✔  checking compilation flags in Makevars ...
> ✔  checking for GNU extensions in Makefiles
> ✔  checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS)
> ✔  checking use of PKG_*FLAGS in Makefiles
> ✔  checking compilation flags used
> ✔  checking compiled code ...
> ✔  checking examples (424ms)
> ✔  checking PDF version of manual (2.5s)
>
>
> edd at rob:~/git/rcppnloptexample(master)$
>
> [2]
> https://cloud.r-project.org/web/checks/check_results_RcppNLoptExample.html
>
> [3] https://eddelbuettel.r-universe.dev/ui#builds and also
>     https://github.com/r-universe/eddelbuettel/actions/runs/1047649769
>
>
> |
> | Thanks for any time and efforts you spent on my problem.
> | Simon
> | _______________________________________________
> | Rcpp-devel mailing list
> | Rcpp-devel at lists.r-forge.r-project.org
> | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
> --
> https://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20210818/98bc8925/attachment.html>


More information about the Rcpp-devel mailing list