r-lib / vdiffr

Visual regression testing and graphical diffing with testthat
https://vdiffr.r-lib.org
Other
180 stars 31 forks source link

How to build on macOS arm64? #134

Open krlmlr opened 1 year ago

krlmlr commented 1 year ago

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?

DavisVaughan commented 11 months ago

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