Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to build poppler in windows and include poppler to QT Creator?
Forum Updated to NodeBB v4.3 + New Features

How to build poppler in windows and include poppler to QT Creator?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    King DEV
    wrote on last edited by
    #1

    I am trying to use Poppler in QT5,6 But error when using it.

    The steps I took:

    Step1: I downloaded poppler-23.12.0.tar.xz and poppler-data-0.4.12.tar.gz on the website: https://poppler.freedesktop.org/

    Step2: I unpack them and and add set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};C:\Users\ntronghoa\Music\poppler-23.12.0\poppler") set(Poppler_DIR "C:\Users\ntronghoa\Music\poppler\poppler-23.11.0\Library\lib\pkgconfig")

    find_package(Poppler REQUIRED) to CMakeList on Qt Creator

    but error C:\Users\ntronghoa\Documents\ERGFFF\CMakeLists.txt:14: error: By not providing "FindPoppler.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Poppler", but CMake did not find one.

    Could not find a package configuration file provided by "Poppler" with any of the following names:

    PopplerConfig.cmake poppler-config.cmake

    Add the installation prefix of "Poppler" to CMAKE_PREFIX_PATH or set "Poppler_DIR" to a directory containing one of the above files. If "Poppler" provides a separate development package or SDK, be sure it has been installed.

    So can anyone help me build poppler and include them in qt creator?

    Christian EhrlicherC 1 Reply Last reply
    0
    • K King DEV

      I am trying to use Poppler in QT5,6 But error when using it.

      The steps I took:

      Step1: I downloaded poppler-23.12.0.tar.xz and poppler-data-0.4.12.tar.gz on the website: https://poppler.freedesktop.org/

      Step2: I unpack them and and add set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};C:\Users\ntronghoa\Music\poppler-23.12.0\poppler") set(Poppler_DIR "C:\Users\ntronghoa\Music\poppler\poppler-23.11.0\Library\lib\pkgconfig")

      find_package(Poppler REQUIRED) to CMakeList on Qt Creator

      but error C:\Users\ntronghoa\Documents\ERGFFF\CMakeLists.txt:14: error: By not providing "FindPoppler.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Poppler", but CMake did not find one.

      Could not find a package configuration file provided by "Poppler" with any of the following names:

      PopplerConfig.cmake poppler-config.cmake

      Add the installation prefix of "Poppler" to CMAKE_PREFIX_PATH or set "Poppler_DIR" to a directory containing one of the above files. If "Poppler" provides a separate development package or SDK, be sure it has been installed.

      So can anyone help me build poppler and include them in qt creator?

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @King-DEV You have to compile and install poppler first. You can not use the sources directly. There may be per compiled windows builds out there.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved