I open the source code using CMake,

I get some error informations:

Install libopenjpeg2 before trying to build poppler. You can also decide
to use the internal unmaintained JPX decoder or none at all.






I open the FindLIBOPENJPEG2.cmake file in the  DIR path
poppler-0.65/cmake/module

edit the code as follows:

set(LIBOPENJPEG2_FOUND TRUE)
set(LIBOPENJPEG2_INCLUDE_DIRS  "E:/poppler-0.65.0/ext/openjpeg/include")
set(LIBOPENJPEG2_LIBRARIES  "E:/poppler-0.65.0/ext/openjpeg/lib")

find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBOPENJPEG2 libopenjp2)
if (LIBOPENJPEG2_FOUND)
  add_definitions(-DUSE_OPENJPEG2)
endif ()

 It does not work,when I open CMake, the same error information arise,
could any friends  help me ?thanks alot
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to