Paraview superbuild fails due to error in freetype 2.8.1 on Ubuntu 16.04
I can't seem to build paraview via the superbuild with the new freetype 2.8.1. It fails with the following error message.
A quick search shows that others are having the same issue just building freetype on its own: http://forum.directadmin.com/showthread.php?t=55304. They claim that disabling HarfBuzz will allow the build to complete. I'll try this with the superbuild as well but since I don't know what either freetype nor HarfBuzz does, I don't know if it will have ill effects on the rest of the code base.
Setting the version to freetype 2.8.1 seems to be done from this repository, so thus I filed an issue here.
libtool: compile: gcc -pedantic -ansi -I/home/shuhao/apps/pv/build/superbuild/freetype/src/src/psaux -I/home/shuhao/apps/pv/build/superbuild/freetype/build -I/home/shuhao/apps/pv/build/superbuild/freetype/src/builds/unix -I/home/shuhao/apps/pv/build/superbuild/freetype/src/include -O3 -DNDEBUG -c -Wall -fPIC -O3 -DNDEBUG -I/home/shuhao/apps/pv/build/install/include -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DFT_CONFIG_OPTION_USE_BZIP2 -I/usr/include/libpng12 -DFT_CONFIG_OPTION_USE_PNG -I/usr/include/harfbuzz -DFT_CONFIG_OPTION_USE_HARFBUZZ "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY "-DFT_CONFIG_MODULES_H=<ftmodule.h>" /home/shuhao/apps/pv/build/superbuild/freetype/src/src/psaux/psaux.c -fPIC -DPIC -o /home/shuhao/apps/pv/build/superbuild/freetype/build/.libs/psaux.o
In file included from /usr/include/harfbuzz/hb-blob.h:34:0,
from /usr/include/harfbuzz/hb.h:31,
from /home/shuhao/apps/pv/build/superbuild/freetype/src/src/autofit/afshaper.h:29,
from /home/shuhao/apps/pv/build/superbuild/freetype/src/src/autofit/afglobal.h:26,
from /home/shuhao/apps/pv/build/superbuild/freetype/src/src/autofit/afcjk.c:29,
from /home/shuhao/apps/pv/build/superbuild/freetype/src/src/autofit/autofit.c:24:
/usr/include/harfbuzz/hb-common.h:93:29: warning: ISO C restricts enumerator values to range of ‘int’ [-Wpedantic]
#define HB_TAG(c1,c2,c3,c4) ((hb_tag_t)((((uint8_t)(c1))<<24)|(((uint8_t)(c2))<<16)|(((uint8_t)(c3))<<8)|((uint8_t)(c4))))
^
/usr/include/harfbuzz/hb-common.h:97:20: note: in expansion of macro ‘HB_TAG’
#define HB_TAG_MAX HB_TAG(0xff,0xff,0xff,0xff)
^
/usr/include/harfbuzz/hb-common.h:316:29: note: in expansion of macro ‘HB_TAG_MAX’
_HB_SCRIPT_MAX_VALUE = HB_TAG_MAX, /*< skip >*/
^
In file included from /home/shuhao/apps/pv/build/superbuild/freetype/src/src/autofit/autofit.c:35:0:
/home/shuhao/apps/pv/build/superbuild/freetype/src/src/autofit/afscript.h:35:11: error: ‘HB_SCRIPT_ADLAM’ undeclared here (not in a function)
HB_SCRIPT_ADLAM,
^
/home/shuhao/apps/pv/build/superbuild/freetype/src/src/autofit/afshaper.c:90:38: note: in definition of macro ‘SCRIPT’
#define SCRIPT( s, S, d, h, H, ss ) h,
^
/home/shuhao/apps/pv/build/superbuild/freetype/src/src/autofit/afscript.h:278:11: error: ‘HB_SCRIPT_OSAGE’ undeclared here (not in a function)
HB_SCRIPT_OSAGE,
^
/home/shuhao/apps/pv/build/superbuild/freetype/src/src/autofit/afshaper.c:90:38: note: in definition of macro ‘SCRIPT’
#define SCRIPT( s, S, d, h, H, ss ) h,
^
/home/shuhao/apps/pv/build/superbuild/freetype/src/src/autofit/rules.mk:74: recipe for target '/home/shuhao/apps/pv/build/superbuild/freetype/build/autofit.lo' failed
make[3]: *** [/home/shuhao/apps/pv/build/superbuild/freetype/build/autofit.lo] Error 1
make[3]: *** Waiting for unfinished jobs....