[R-pkg-devel] Problem building package depending on third party c++ source library.

Nils Lüschow N||@@Lue@chow @end|ng |rom un|-due@@e|dor|@de
Tue Apr 29 14:43:40 CEST 2025


Hello everybody,

as a new feature for the anticlust package 
(https://cran.r-project.org/web/packages/anticlust/index.html) we are 
trying to include a constraint programming model, written in C++ 
utilizing the Gecode solver. While we generally got this feature to work 
when Gecode is pre-installed on the system, we would like to spare the 
users this step and include it with the package (or inside a 
supplementary package) to install through the regular R tooling. 
However, we run into a problem when it comes to compiling Gecode during 
the packages build-process, which I describe in this SO post:

https://stackoverflow.com/questions/79596214/configure-script-does-not-generate-makefile-properly-for-3rd-party-library-used

I strongly suspect the Makevars file to be incorrect, if you want to 
take a look or try to compile it yourself, I have uploaded the code of 
the new feature as well as the source files of the Gecode library to 
GitHub:

https://github.com/nilslueschow/Anticlust-Dispersion-Constraint-Model/tree/main/RcppTestPackage/src

Thanks for your help!

Best,
Nils Lüschow



More information about the R-package-devel mailing list