Can't build Android: 'brotli/encode.h' file not found

I tried to install this library on Fedora and Ubuntu, but it didn’t help. I built APK as written in the manual savoirfairelinux / jami-client-android · GitLab

In file included from compress.c:56:
./dlwrap/brotlienc.h:11:10: fatal error: 'brotli/encode.h' file not found
11 | #include <brotli/encode.h>

brotli header files are installed on the system, but the build failed. Why?

Expected output is:

C/C++: checking for libbrotlienc >= 1.0.0... no
C/C++: configure: WARNING:
C/C++: ***
C/C++: *** LIBBROTLI was not found. You will not be able to use BROTLI compressi
on.
C/C++: *** 

Because it’s cross build.

:thinking:brotli support should be disabled automatically. Maybe the environment was not clean. I suggest building in a container.

Another option is adding “–without-brotli” to GNUTLS_CONF in daemon/contrib/src/gnutls/rules.mak

1 Like