tce-load -i compiletc cmake nss-dev tiff-dev cairo-dev lcms2-dev gobject-introspection-dev openjpeg-dev curl-dev qt-5.x-dev boost-1.74-dev gperf wget https://poppler.freedesktop.org/poppler-21.10.0.tar.xz cd poppler-21.10.0 mkdir build cd build cmake -LAH -DCMAKE_CXX_FLAGS="-flto -mtune=generic -Os -pipe" -DCMAKE_C_FLAGS="-flto -mtune=generic -Os -pipe" -DCMAKE_C_FLAGS_RELEASE="-flto -mtune=generic -Os -pipe" -DCMAKE_CXX_FLAGS_RELEASE="-flto -mtune=generic -Os -pipe" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=TRUE -DENABLE_QT5=ON -DWITH_GTK=OFF -DENABLE_UNSTABLE_API_ABI_HEADERS=ON -DENABLE_QT6=OFF ../ find . -name flags.make -type f -exec sed -i 's/-O2//g' {} \; find . -name link.txt -type f -exec sed -i 's/-O2//g' {} \; [does not respect Release] [qt5 wrapper fails with -DENABLE_SPLASH=OFF] make [6m 25.35s] make install Building Poppler with support for: font configuration: fontconfig use boost (Splash): yes cairo output: yes qt5 wrapper: yes qt6 wrapper: no glib wrapper: yes introspection: yes gtk-doc: no cpp wrapper: yes use libjpeg: yes use libpng: yes use libtiff: yes use zlib compress: yes use zlib uncompress: no use nss3: yes use curl: yes use libopenjpeg2: yes use lcms2: yes command line utils: yes fuzz target: no test data dir: /usr/src/poppler-21.10.0/../test wget https://poppler.freedesktop.org/poppler-data-0.4.11.tar.gz cd poppler-data-0.4.11 sudo make prefix=/usr/local install