Installing evince locally with local poppler
Hello, I'm trying to build evince using my own locally installed version of poppler. Neither poppler nor evince are installed to the system path.
Poppler is built and installed with:
cmake -DCMAKE_INSTALL_PREFIX=/home/enrico/apps/poppler_glib_annot/ -DCMAKE_BUILD_TYPE=Debug -DENABLE_GTK_DOC=ON -DBUILD_GTK_TESTS=ON -DENABLE_QT5=OFF -DBUILD_QT5_TEST=OFF -DENABLE_CPP=OFF -DENABLE_CPP_TEST=OFF ..
I'm trying something similar with evince (only pdf enabled):
PKG_CONFIG_PATH=/home/enrico/apps/poppler_glib_annot/lib/pkgconfig/ meson build --prefix /home/enrico/apps/evince_ink/ -Ddjvu=disabled -Dps=disabled -Dnautilus=false -Dpdf=enabled -Dxps=disabled -Dtiff=disabled -Dt1lib=disabled -Dkeyring=disabled -Dgspell=disabled -Ddvi=disabled
Evince builds successfully but links to the system libraries:
$~/apps/evince_ink/bin$ ldd evince | grep evdocument
libevdocument3.so.4 => /usr/lib/x86_64-linux-gnu/libevdocument3.so.4 (0x00007fec7d15b000)
$~/apps/evince_ink/lib/x86_64-linux-gnu/evince/4/backends$ ldd libpdfdocument.so | grep popp
libpoppler-glib.so.8 => /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8 (0x00007ff6ce382000)
libpoppler.so.97 => /usr/lib/x86_64-linux-gnu/libpoppler.so.97 (0x00007ff6ccfbc000)
The evince executable links to system libevdocument, but even the backend module links to system poppler, so I'm doing something very wrong in the linking. Any idea on how to solve this