# apt-get install libopenjp2-7-dev # cd /var/bin && wget https://poppler.freedesktop.org/poppler-0.65.0.tar.xz && tar -xvf poppler-0.65.0.tar.xz # cd poppler-0.65.0 && mkdir build && cd build # cmake .. && make && make install error ----------- CMake Warning at CMakeLists.txt:73 (message): No test data found in $testdatadir. You will not be able to run 'make test' successfully. The test data is not included in the source packages and is also not part of the main git repository. Instead, you can checkout the test data from its own git repository with: git clone git://git.freedesktop.org/git/poppler/test You should checkout the test data as a sibling of your poppler source folder or specify the location of your checkout with -DTESTDATADIR=/path/to/checkoutdir/test. CMake Error at /var/bin/cmake-3.11.3/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS) Call Stack (most recent call first): /var/bin/cmake-3.11.3/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /var/bin/cmake-3.11.3/Modules/FindFreetype.cmake:156 (find_package_handle_standard_args) CMakeLists.txt:125 (find_package) -- Configuring incomplete, errors occurred! See also "/var/bin/poppler-0.65.0/build/CMakeFiles/CMakeOutput.log". See also "/var/bin/poppler-0.65.0/build/CMakeFiles/CMakeError.log".
Do you have the FreeType development headers installed? On my (Debian) system they are in the package libfreetype6-dev.
after installing it I still get an error CMake Warning at CMakeLists.txt:73 (message): No test data found in $testdatadir. You will not be able to run 'make test' successfully. The test data is not included in the source packages and is also not part of the main git repository. Instead, you can checkout the test data from its own git repository with: git clone git://git.freedesktop.org/git/poppler/test You should checkout the test data as a sibling of your poppler source folder or specify the location of your checkout with -DTESTDATADIR=/path/to/checkoutdir/test. -- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.6. 3") -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) CMake Error at /var/bin/cmake-3.11.3/Modules/FindPackageHandleStandardArgs.cmake :137 (message): Could NOT find Fontconfig (missing: FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR) Call Stack (most recent call first): /var/bin/cmake-3.11.3/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_ FAILURE_MESSAGE) cmake/modules/FindFontconfig.cmake:45 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:127 (find_package) -- Configuring incomplete, errors occurred! See also "/var/bin/poppler-0.65.0/build/CMakeFiles/CMakeOutput.log". See also "/var/bin/poppler-0.65.0/build/CMakeFiles/CMakeError.log".
Debian 9.4 stretch
apt install libfontconfig1-dev ?
yes apt-get install libopenjp2-7-dev libfreetype6-dev
ok I also installed apt-get install libopenjp2-7-dev libfreetype6-dev libfontconfig1-dev Have tried to install "libnss3" but it is already installed Now I get -- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.6.3") -- Checking for module 'fontconfig' -- Found fontconfig, version 2.11.0 -- Found Fontconfig: /usr/lib/x86_64-linux-gnu/libfontconfig.so -- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.28") -- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) -- Checking for module 'nss>=3.19' -- No package 'nss' found -- Could NOT find NSS3 (missing: NSS3_LIBRARIES NSS3_CFLAGS) CMake Error at CMakeLists.txt:137 (message): Install libjpeg before trying to build poppler. You can also decide to use the internal unmaintained DCT decoder or none at all. -- Configuring incomplete, errors occurred! See also "/var/bin/poppler-0.65.0/build/CMakeFiles/CMakeOutput.log". See also "/var/bin/poppler-0.65.0/build/CMakeFiles/CMakeError.log".
After installing these it works :) libjpeg-dev libtiff5-dev
Great to hear. Enjoy!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.