Bug 106831 - build issue 0.65
Summary: build issue 0.65
Status: RESOLVED NOTABUG
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-05 23:07 UTC by clark
Modified: 2018-06-06 07:39 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description clark 2018-06-05 23:07:44 UTC
# 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".
Comment 1 oliver.sander 2018-06-06 03:38:52 UTC
Do you have the FreeType development headers installed?  On my (Debian) system they are in the package libfreetype6-dev.
Comment 2 clark 2018-06-06 06:51:00 UTC
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".
Comment 3 clark 2018-06-06 06:56:39 UTC
Debian 9.4 stretch
Comment 4 oliver.sander 2018-06-06 07:08:59 UTC
apt install libfontconfig1-dev

?
Comment 5 clark 2018-06-06 07:14:11 UTC
yes

apt-get install libopenjp2-7-dev libfreetype6-dev
Comment 6 clark 2018-06-06 07:21:37 UTC
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".
Comment 7 clark 2018-06-06 07:26:37 UTC
After installing these it works :)

libjpeg-dev
libtiff5-dev
Comment 8 oliver.sander 2018-06-06 07:39:58 UTC
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.