Build fail if libpoppler-dev is available but not libpoppler-cpp-dev
Hello,
I had libpoppler-dev installed, but not libpoppler-cpp-dev. meson setup --reconfigure ..
did not complain and indicated:
Run-time dependency poppler found: YES 22.12.0
Run-time dependency poppler-cpp found: NO (tried pkgconfig and cmake)
However, build failed with the following error:
../plug-ins/pdf/pdf-import.cpp:43:10: fatal error: poppler/cpp/poppler-version.h: not found
43 | #include <poppler/cpp/poppler-version.h>
The issue was solved by installing libpoppler-cpp-dev
.
I attach a patch 0001-Also-check-libpoppler-cpp-dev-to-enable-PDF-plugin.patch that enables the PDF plugin only if both libpoppler-dev
and libpoppler-cpp-dev
are found (I was going to make a MR, but I cannot fork the repository, even after registering an SSH key... it worked few days latter: see MR !118 (merged)).
FTR, this problem was introduced by commit 99bdcc6f
Edited by Philippe SWARTVAGHER