<div dir="ltr">Dear all,<br><br>I am trying to build Poppler 0.63.0 statically with openjpeg2. I run into the error below when using CMake. Has anyone seen this issue and able to point me in the right direction?<br><br>As on previous requests. 

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I am roughly following instructions from </span><a href="http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html" target="_blank" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">http://www.<wbr>linuxfromscratch.org/blfs/<wbr>view/svn/general/poppler.html</a><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>I'm building everything statically as our we are using an old OS. </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I've already installed all dependencies and using pkg-config as my dependency management tool.</span>

<br><br><b>Command<br></b><div>cmake  -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr/ -DENABLE_QT5=OFF -DENABLE_LIBOPENJPEG=openjpeg2 .. && make</div><div><br></div><div><br></div><b>Output<br></b><div>Scanning dependencies of target pdftoppm</div><div>make[2]: Leaving directory `/root/Poppler_Update/poppler-0.63.0/build'</div><div>make -f utils/CMakeFiles/pdftoppm.dir/build.make utils/CMakeFiles/pdftoppm.dir/build</div><div>make[2]: Entering directory `/root/Poppler_Update/poppler-0.63.0/build'</div><div>[ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/parseargs.cc.o</div><div>cd /root/Poppler_Update/poppler-0.63.0/build/utils && /usr/bin/c++  -DUSE_OPENJPEG2 -I/root/Poppler_Update/poppler-0.63.0 -I/root/Poppler_Update/poppler-0.63.0/fofi -I/root/Poppler_Update/poppler-0.63.0/goo -I/root/Poppler_Update/poppler-0.63.0/poppler -I/root/Poppler_Update/poppler-0.63.0/build -I/root/Poppler_Update/poppler-0.63.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/openjpeg-2.3  -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG    -std=c++11 -o CMakeFiles/pdftoppm.dir/parseargs.cc.o -c /root/Poppler_Update/poppler-0.63.0/utils/parseargs.cc</div><div>[ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/Win32Console.cc.o</div><div>cd /root/Poppler_Update/poppler-0.63.0/build/utils && /usr/bin/c++  -DUSE_OPENJPEG2 -I/root/Poppler_Update/poppler-0.63.0 -I/root/Poppler_Update/poppler-0.63.0/fofi -I/root/Poppler_Update/poppler-0.63.0/goo -I/root/Poppler_Update/poppler-0.63.0/poppler -I/root/Poppler_Update/poppler-0.63.0/build -I/root/Poppler_Update/poppler-0.63.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/openjpeg-2.3  -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG    -std=c++11 -o CMakeFiles/pdftoppm.dir/Win32Console.cc.o -c /root/Poppler_Update/poppler-0.63.0/utils/Win32Console.cc</div><div>[ 62%] Building CXX object utils/CMakeFiles/pdftoppm.dir/pdftoppm.cc.o</div><div>cd /root/Poppler_Update/poppler-0.63.0/build/utils && /usr/bin/c++  -DUSE_OPENJPEG2 -I/root/Poppler_Update/poppler-0.63.0 -I/root/Poppler_Update/poppler-0.63.0/fofi -I/root/Poppler_Update/poppler-0.63.0/goo -I/root/Poppler_Update/poppler-0.63.0/poppler -I/root/Poppler_Update/poppler-0.63.0/build -I/root/Poppler_Update/poppler-0.63.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/openjpeg-2.3  -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG    -std=c++11 -o CMakeFiles/pdftoppm.dir/pdftoppm.cc.o -c /root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc</div><div>/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc:213:1: warning: missing initializer for member ‘ArgDesc::arg’ [-Wmissing-field-initializers]</div><div> };</div><div> ^</div><div>/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc:213:1: warning: missing initializer for member ‘ArgDesc::kind’ [-Wmissing-field-initializers]</div><div>/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc:213:1: warning: missing initializer for member ‘ArgDesc::val’ [-Wmissing-field-initializers]</div><div>/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc:213:1: warning: missing initializer for member ‘ArgDesc::size’ [-Wmissing-field-initializers]</div><div>/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc:213:1: warning: missing initializer for member ‘ArgDesc::usage’ [-Wmissing-field-initializers]</div><div>[ 62%] Linking CXX executable pdftoppm</div><div>cd /root/Poppler_Update/poppler-0.63.0/build/utils && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/pdftoppm.dir/link.txt --verbose=1</div><div>/usr/bin/c++  -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG    -Wl,--as-needed -rdynamic CMakeFiles/pdftoppm.dir/parseargs.cc.o CMakeFiles/pdftoppm.dir/Win32Console.cc.o CMakeFiles/pdftoppm.dir/pdftoppm.cc.o  -o pdftoppm ../libpoppler.a -L/usr/local/lib -lfontconfig -luuid -lxml2 -lm -lfreetype -lz /usr/local/lib/libjpeg.a -lz -lopenjp2 /usr/local/lib/liblcms2.a /usr/local/lib/libpng.a -lz -lopenjp2 /usr/local/lib/liblcms2.a /usr/local/lib/libpng.a /usr/local/lib/libfreetype.a -pthread</div><div>/usr/bin/ld: cannot find -lopenjp2</div><div>/usr/bin/ld: cannot find -lopenjp2</div><div>collect2: error: ld returned 1 exit status</div><div>make[2]: *** [utils/pdftoppm] Error 1</div><div>make[2]: Leaving directory `/root/Poppler_Update/poppler-0.63.0/build'</div><div>make[1]: *** [utils/CMakeFiles/pdftoppm.dir/all] Error 2</div><div>make[1]: Leaving directory `/root/Poppler_Update/poppler-0.63.0/build'</div><div>make: *** [all] Error 2</div><div><br></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><p><span style="font-size:10.5pt;line-height:105%;font-family:Arial,sans-serif">Kind regards,</span><br><font face="Arial, sans-serif"><span style="font-size:14px;line-height:14.7px">Simon Lee Shugar</span></font><br>
<br>
<span style="font-size:10.5pt;line-height:105%;font-family:Arial,sans-serif">--</span><br style="font-size:12.8px"></p><div style="font-size:12.8px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p><span style="font-size:12.8px"><img width="96" height="22" src="cid:image001.jpg@01D0FFA2.70341270" alt="Veeva Systems - Zinc Team"></span><br></p></div></div></div></div></div></div></div></div></div></div></div><p>
<span style="font-size:10.5pt;line-height:105%;font-family:Arial,sans-serif"><b><font color="#666666">Simon Shugar</font></b></span><br><font face="Arial, sans-serif"><span style="font-size:14px;line-height:14.7px">Software Engineer</span></font><br>
<span style="font-size:10.5pt;line-height:105%;font-family:Arial,sans-serif"><font color="#e69138"><b>Veeva
Systems </b></font></span><br>
<span style="font-size:10.5pt;line-height:105%;font-family:Arial,sans-serif;color:rgb(78,135,160)"><a href="mailto:simon.shugar@veeva.com" target="_blank"><span style="color:rgb(78,135,160)">simon.shugar@veeva.com</span></a></span><br>
<span style="font-size:10.5pt;line-height:105%;font-family:Arial,sans-serif;color:rgb(78,135,160)"><a href="http://www.veeva.com" target="_blank"><span style="color:rgb(78,135,160)">www.veeva.com</span></a></span><br>
<br>
<i><span style="font-size:7.5pt;line-height:105%;font-family:Arial,sans-serif;color:rgb(113,113,113)">This email and the information it contains are intended for the
intended recipient only, are confidential and may be privileged information
exempt from disclosure by law.</span></i><br>
<i><span style="font-size:7.5pt;line-height:105%;font-family:Arial,sans-serif;color:rgb(113,113,113)">If you have received this email in error, please notify us
immediately by reply email and delete this message from your computer.</span></i><br>
<i><span style="font-size:7.5pt;line-height:105%;font-family:Arial,sans-serif;color:rgb(113,113,113)">Please do not retain, copy or distribute this email.</span></i><span style="color:rgb(31,73,125)"></span></p></div></div></div></div></div></div></div></div>
</div>