How to build poppler in windows and include poppler to QT Creator?
-
wrote on 26 Dec 2023, 08:40 last edited by
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?
-
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?
@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.
1/2