vdiffr icon indicating copy to clipboard operation
vdiffr copied to clipboard

How to build on macOS arm64?

Open krlmlr opened this issue 2 years ago • 1 comments

I had to add the following to ~/.R/Makevars to be able to build locally:

CPPFLAGS = -I/opt/homebrew/include
LDFLAGS = -L/opt/homebrew/lib

Is this expected? Would it work out of the box if I installed libpng elsewhere? Should the package perhaps get an anticonf file? Can we document this better?

krlmlr avatar May 21 '23 07:05 krlmlr

I also have this issue. I think it also occurs when installing svglite, i.e. https://github.com/r-lib/svglite/issues/169 (both need libpng)

Possibly the configure script used by systemfonts can be used here too https://github.com/r-lib/svglite/issues/169#issuecomment-1652541180

DavisVaughan avatar Jul 26 '23 21:07 DavisVaughan