<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">The compile warnings might be from an old compiler.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<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>
<br>
You can get a view of the code at <a href="https://cgit.freedesktop.org/poppler/poppler/tree/utils/pdftoppm.cc?h=poppler-0.63.0#n200" class="OWAAutoLink" id="LPlnk454896">https://cgit.freedesktop.org/poppler/poppler/tree/utils/pdftoppm.cc?h=poppler-0.63.0#n200</a>
<div><br>
</div>
<div>In the initialization for <span>ArgDesc argDesc[], the final item on line 212 is {}, which I suppose should make an item that is all null or 0.</span></div>
<div><span>Older versions of poppler had {NULL} instead. You could try that.</span></div>
<div><span><span>findArg() in utils/parseargs.cc uses an item with a null argument pointer (the first field) as a marker for the end of the list.</span><br>
</span></div>
<div><span><span><br>
</span></span></div>
<div><span><span>>/usr/bin/ld: cannot find -lopenjp2</span><br>
</span></div>
<div><span><span><br>
</span></span></div>
<div><span><span>That is likely from not having libopenjp2.a in the right place, or if you want it to use libopenjpeg2.a, you might need to grep for libopenjp2 to see what code is adding it. At worst, as a last resort, if it is a one-time build and you do not
want -lopenjp2, you could edit the makefiles.</span></span></div>
<div><span><span><br>
</span></span></div>
<div><span><span>Regards, William</span></span></div>
<div><span><br>
</span></div>
<div>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> poppler <poppler-bounces@lists.freedesktop.org> on behalf of Simon Shugar <simon.shugar@veeva.com><br>
<b>Sent:</b> Friday, April 6, 2018 6:51 PM<br>
<b>To:</b> poppler@lists.freedesktop.org<br>
<b>Subject:</b> [poppler] Unable to build Poppler 0.63.0 with Openjpeg2</font>
<div> </div>
</div>
<div>
<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-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); 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-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)" id="LPlnk839101" previewremoved="true">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-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); 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-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)">
<br style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:12.8px; font-style: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)">
<span style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:12.8px; font-style: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); 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="x_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 naturalheight="33" naturalwidth="141" width="96" height="22" alt="Veeva Systems - Zinc Team" tabindex="0" style="user-select: none;" src="cid:image001.jpg@01D0FFA2.70341270"></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" id="LPlnk872681" previewremoved="true"><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" id="LPlnk676433" previewremoved="true"><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>
</div>
</div>
</div>
</div>
</body>
</html>