<div dir="ltr">I open the source code using CMake, <div><br></div><div>I get some error informations:</div><div>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">Install libopenjpeg2 before trying to build poppler. You can also decide<br> to use the internal unmaintained JPX decoder or none at all.</span></p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"><br></span></p><br></div><div><br></div><div>I open the FindLIBOPENJPEG2.cmake file in the DIR path poppler-0.65/cmake/module</div><div><br></div><div>edit the code as follows:</div><div><br></div><div><div>set(LIBOPENJPEG2_FOUND TRUE)</div><div>set(LIBOPENJPEG2_INCLUDE_DIRS "E:/poppler-0.65.0/ext/openjpeg/include")</div><div>set(LIBOPENJPEG2_LIBRARIES "E:/poppler-0.65.0/ext/openjpeg/lib")</div><div><br></div><div>find_package(PkgConfig REQUIRED)</div><div>pkg_check_modules(LIBOPENJPEG2 libopenjp2)</div><div>if (LIBOPENJPEG2_FOUND)</div><div> add_definitions(-DUSE_OPENJPEG2)</div><div>endif ()</div></div><div><br></div><div> It does not work,when I open CMake, the same error information arise,</div><div>could any friends help me ?thanks alot</div></div>