[R-sig-Debian] Problem with R package while building KDEStateMachineEditor
Dirk Eddelbuettel
edd @end|ng |rom deb|@n@org
Mon Jan 13 19:36:26 CET 2025
Hi Sylvain,
Thanks for posting here (even if this is more of a CMake than a Debian
question ...).
On 13 January 2025 at 19:27, Sylvain Sécherre via R-SIG-Debian wrote:
| Hello everyone!
|
| I have a big problem that takes me mad since 3 days...
|
| I try to build KDEStateMachineEditor with cmake. This soft includes
| GraphViz, which includes himself SWIG which needs R.
|
| With cmake, when I configure KDEStateMachineEditor before a generation,
| I am told that the R package is missing:
|
| "---------------------------------------------------------------------------------"
| /Checking for module 'R'
| Package 'R', required by 'virtual:world', not found
| setting -DENABLE_R=OFF/
|
| "---------------------------------------------------------------------------------"
|
| ... but every necessary R packages seem to be installed on my computer.
|
| I have found the line of the GraphViz's *CMakeList.txt* involved:
|
| "---------------------------------------------------------------------------------"
|
| /find_package(SWIG COMPONENTS csharp d go guile java javascript lua
| perl5 php7 python *r* )/
|
| "---------------------------------------------------------------------------------"
|
| After a look at the cmake doc, it seems that I should have a file like
| FindR.cmake, but there not such a file on my disk. Instead I do have
| this file : */usr/lib/R/site-library/qtl/contrib/bin/FindRLibs.cmake*
|
| So, what must I do to solve this problem?
Ask CMake experts? R itself uses GNU autoconf extensively (and fixed scripts
on Windows). For the same reason, CMake is not that widely used for R
package builds. However, given that more and more _external_ libraries use
CMake, you see it used in R packages to provide these external libraries.
Now, R is also not that often embedded [1] which may explain why you don't
find many FindR.cmake or FindRLibs.cmake.
That said, searching at GitHub (a good resource for this!!) find
285 hits for FindR.cmake: https://github.com/search?q=FindR.cmake&type=repositories
57 hist for FindRLibs.cmake: https://github.com/search?q=FindRLibs.cmake&type=code
Maybe those can help you?
Cheers, Dirk
[1] I wrote a package for that: RInside. It's on CRAN and at my GitHub, but
again no CMake apart for an older contributed examples configuration.
|
| Thanks!
|
| Sylvain
|
| (France)
|
| [[alternative HTML version deleted]]
|
| _______________________________________________
| R-SIG-Debian mailing list
| R-SIG-Debian using r-project.org
| https://stat.ethz.ch/mailman/listinfo/r-sig-debian
--
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
More information about the R-SIG-Debian
mailing list