Git Product home page Git Product logo

delaunay's Introduction

delaunay

R-CMD-check R-CMD-check-valgrind

Elevated Delaunay triangulation

Bivariate Gaussian density:

Volcano:

Constrained Delaunay triangulation

Face:

Voronoï tessellation

3D Delaunay triangulation

delaunay's People

Contributors

stla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

eddelbuettel

delaunay's Issues

Build fails for lack of required (and stated, but not tested for) libraries

The CRANberries post on delaunay noted 'OS_type` so I got curious. In a quick Docker container (using my r2u where all required packages can be installed in seconds as binaries) we do see

g++ -std=gnu++14 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o delaunay.so RcppExports.o del2D.o del2DC.o del3D.o delXY.o -lmpfr -lgmp -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -lmpfr: No such file or directory                                                                                                                                                         
/usr/bin/ld: cannot find -lgmp: No such file or directory                                                
collect2: error: ld returned 1 exit status                                                                                                                                                                         
make: *** [/usr/share/R/share/make/shlib.mk:10: delaunay.so] Error 1                                     
ERROR: compilation failed for package ‘delaunay’                                                         
* removing ‘/usr/local/lib/R/site-library/delaunay’                 

and indeed you state this unconditionally in src/Makevars:

PKG_LIBS = -lmpfr -lgmp

(and leaving aside the gymnastics on BH which clearly violate the Suggests: nature, but let's leave that for another day) your (very impressive) journey through R packages is now at the point where you need to deal with external libraries which typically involves

  • a script configure to check if package GNU gmp and GNU mpfr are installed (for example via pkg-config --exists gmp && echo "yes")
  • possible use of pkg-config --libs (and pkg-config --cflags) to set the -L and -I options.

My container is based on Ubuntu jammy so I just did apt install libgmp-dev libmpfr-dev after which build succeeded with

g++ -std=gnu++14 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o delaunay.so RcppExports.o del2D.o del2DC.o del3D.o delXY.o -lmpfr -lgmp -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/00LOCK-delaunay/00new/delaunay/libs
** R
** inst
** byte-compile and prepare package for lazy loading
Warning: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'.
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Warning: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'.
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
Warning: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'.
** testing if installed package keeps a record of temporary installation path
* DONE (delaunay)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.