Created attachment 784127 [details] build log Software version : poppler-22.05.0 cmake-3.22.4 media-libs/freetype-2.12.0-r1 use flags for poppler : [ebuild U ] app-text/poppler-22.05.0 [22.03.0] USE="cairo cjk cxx introspection jpeg jpeg2k lcms png qt5 tiff utils -boost -curl -debug -doc -nss" poppler-22.05.0 failed to build with error messages : CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Freetype: Found unsuitable version "2.1.10", but required is at least "2.8" (found /usr/lib64/libfreetype.so) Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake/Modules/FindFreetype.cmake:162 (find_package_handle_standard_args) CMakeLists.txt:146 (find_package) Please note that poppler-22.03.0 compiled without any issues.
Created attachment 784130 [details] emerge info
Created attachment 784133 [details] build environment
Something's off here but not yet sure what. Was discussed on forums at https://forums.gentoo.org/viewtopic-t-1151438.html but no more information than is here.
Diff b/t 22.03.0 and 22.05.0 has: ``` +set(FREETYPE_VERSION "2.8") -find_package(Freetype REQUIRED) +find_package(Freetype ${FREETYPE_VERSION} REQUIRED) ```
This feels like confusion between the soname version and the library version. Had issues with this with pkg-config and freetype before.
After the "hint" from Comment #4. I found a old version of libfreetype (from year 2005) installed in /usr/local by running : find /usr -name "ft2build.h" poppler build correctly when the old version was removed. Many thanks to Sam for his assistance.