google / woff2

MIT License
1.52k stars 188 forks source link

Build failed on Pop_os #145

Open M0hammedImran opened 2 years ago

M0hammedImran commented 2 years ago

I'm unable to build the project. I have brotli installed. When ever I try to build, I get this error.

-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libbrotlidec'
--   No package 'libbrotlidec' found
-- Could NOT find BrotliDec (missing: BROTLIDEC_INCLUDE_DIRS BROTLIDEC_LIBRARIES) (found version "")
CMake Error at CMakeLists.txt:38 (message):
  librotlidec is needed to build woff2.

-- Configuring incomplete, errors occurred!
See also "/home/imran/Downloads/woff2/out/CMakeFiles/CMakeOutput.log".

This is my setup.

$ cat /etc/*release
DISTRIB_ID=Pop
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Pop!_OS 21.04"
NAME="Pop!_OS"
VERSION="21.04"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 21.04"
VERSION_ID="21.04"

$ uname -r
5.13.0-7620-generic
athxx commented 2 years ago

You need to install brotli lib, I don't know how to install in pop_os, but in Ubuntu you can use do these to install

apt search libbrotli*
apt install libbrotli-dev libbrotli1

Or in AlpineOS

apk search libbrotli*
apk add brotli-libs brotli-dev