r-universe-org / help

Support and bug tracker for R-universe
https://docs.r-universe.dev/
8 stars 2 forks source link

cmake on MacOS #121

Closed shikokuchuo closed 2 years ago

shikokuchuo commented 2 years ago

Hi Jeroen, I uploaded a new package 'nanonext' that wraps the C library 'libnng'. It requires either the library itself or 'cmake' to build it from source.

The configure script is adapted from your own 'Anticonf' - but if a system installation is not detected it will download and attempt to build the library from source.

The MacOS build currently fails on R-universe as I am guessing there is no 'cmake' installed . If there is, please let me know if there is a better way of detecting cmake - configure already looks for the usual mac location if cmake is not on the $PATH, which seems to work for R-hub's MacOS High Sierra (CRAN's setup).

Otherwise, would be grateful if one of 'libnng' (Homebrew package 'nng') or 'cmake' is installed on the Mac setup. Thanks!

jeroen commented 2 years ago

Thank you for the suggestion. I have added cmake to the build image for macos. I think your package should work now.

shikokuchuo commented 2 years ago

Seems to have done the trick. Thanks for the super fast response!

shikokuchuo commented 2 years ago

Hi Jeroen, nanonext was admitted to CRAN today but the package was showing as nanonext/nanonext with a red question mark next to it (it was not shikokuchuo/nanonext as you'd expect - that might be a clue).

I then tried removing the universe repo from my Github and it has now completely disappeared. Something seems to be out of sync - is there a way you can do a reset so it recognises that nanonext is the correct repo for the CRAN package? Thanks!

jeroen commented 2 years ago

Our CRAN scraper only runs once every 24 hours. So the red question mark will have disappeared tomorrow.

jeroen commented 2 years ago

I've triggered an extra scrape run for you so the package should be there in a few minutes...