lionel- / freetypeharfbuzz

Other
1 stars 1 forks source link

Compilation error on OpenSUSE #4

Open rickhelmus opened 5 years ago

rickhelmus commented 5 years ago

Hello,

At the moment I cannot install this package because of a compilation error about a missing library:

/tmp/RtmpUY5G7N/R.INSTALL472750f70e4e/freetypeharfbuzz/src/target/lib/libharfbuzz.a

The actual library is there, it's just in the lib64/ directory. A workaround is to symlink this directory to lib/ and re-run devtools::install() with build = FALSE.

Cheers, Rick

tpilz commented 5 years ago

Thanks for the hint, I had the same problem.

rickhelmus commented 5 years ago

I had some trouble applying this workaround with R 3.6; editing src/Makevars.in worked though:

LIB_DIR = $(TARGET_DIR)/lib64
TimTaylor commented 4 years ago

Just got the same error on TumbleWeed. Couldn't work the fix out.

lionel- commented 4 years ago

Note that freetypeharfbuzz is not needed for any real user-facing task. It's only used in vdiffr for unit-testing graphical packages like ggplot.

Since this package embeds foreign code that causes SAN warnings (these won't be fixed upstream), I'm unlikely to send an update to CRAN unless it's really needed, because the CRAN maintainers might take the opportunity to require the warnings to be fixed.

TimTaylor commented 4 years ago

Cheers for the reply. Got it working in the end. The workaround above still works in R 4.0:

I had some trouble applying this workaround with R 3.6; editing src/Makevars.in worked though:

LIB_DIR = $(TARGET_DIR)/lib64