Error when compiling 6.26.06 on Ubuntu 22.04

ROOT 6.26.06
Ubuntu 22.04
CMAKE 3.22.1
gcc 11.2.0

I downloaded the ROOT source code from CERN website and followed the default instructions to compile it. I didn’t change any compilation flags. Here is the error I got:

/usr/bin/ld: …/…/FREETYPE-prefix/src/FREETYPE/objs/.libs/libfreetype.a(sfnt.o): in function sfnt_init_face': sfnt.c:(.text+0x1173a): undefined reference to BrotliDecoderDecompress’
[ 67%] Built target LLVMInstCombine
collect2: error: ld returned 1 exit status
make[2]: *** [graf3d/ftgl/CMakeFiles/FTGL.dir/build.make:439: lib/] Error 1
make[1]: *** [CMakeFiles/Makefile2:31009: graf3d/ftgl/CMakeFiles/FTGL.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…

Please help.


I will answer by myself.

I pulled out the stable release from github and followed exactly the same steps. The installation was smooth. Now, I have 6.26.06 running.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.